一、查看文件
hdfs dfs -ls /user/hadoopDemo 查看目录
hdfs dfs -cat /user/hadoopDemo/hadoop/output
二、文件操作
hdfs dfs -mkdir /user/hadoopDemo 创建目录
hdfs dfs -put hadoop/ /user/hadoopDemo 上传本地文件到hdfs
hdfs dfs -rmr /user/hadoopDemo/hadoop/output
Hadoop常用命令总结
原文:https://www.cnblogs.com/robots2/p/15239867.html