#创建hdfs目录 hadoop fs -mkdir [路径] #删除目录/文件 -r为递归删除 hadoop fs -rm -r [路径] #上传文件 hadoop fs -put [本地路径] [hdfs路径]