从hdfs上下载文件的命令:
hdfs dfs -get /user/root/data/wc/* ./
上传文件的命令:
hdfs dfs -put ./test.txt /user/root/data/wc/
[root@node11 ~]# hdfs dfs -ls ./test.txt /user/root/data/wc/output01
-rw-r--r-- 2 root supergroup 1737845 2018-12-20 17:12 test.txt
[root@node11 ~]# hdfs dfs -cat ./test.txt /user/root/data/wc/output01/test.txt