# 创建目录
hadoop fs -mkdir /storage
# 递归创建目录
hadoop fs -mkdir /storage/johnny/data
# 将服务器上的文件上传到hdfs
hadoop fs -put file_path hdfs_path