创建目录
hadoop fs -mkdir -p /user/hadoop/input
上传文件到目录
hadoop fs -put file:///E:/input/input.txt /user/hadoop/input/
查看目录
hadoop fs -ls /user/hadoop/input
查看上传的文件内容
hadoop fs -cat /user/hadoop/input/input.txt
检查文件系统使用情况
hadoop fs -df -h
删除文件或目录
# 删除文件
hadoop fs -rm /user/hadoop/input/input.txt
#删除目录
hadoop fs -rm r /user/hadoop/input