HDFS shell 常用命令
创建多级目录(-p):
hadoop fs -mkdir -p /test/a/b
展示目录:
hadoop fs -ls /
递归展示:
hadoop fs -ls -R /
从HDFS上下载文件到本地:
hadoop fs -get /test/a/b/h.txt
hadoop fs -copyToLocal /test/a/b/h.txt
从本地上传文件到HDFS:
hadoop fs -copyFromLocal hello.txt /test/a/b/h.txt
hadoop fs -put hello.txt /test/a/b/h.txt
本文来自博客园,作者:咔咔皮卡丘,转载请注明原文链接:https://www.cnblogs.com/anquing/p/17635774.html