You need to enable JavaScript to run this app.
文档中心
大数据文件存储

大数据文件存储

复制全文
下载 pdf
附录
hdfs dfs 命令说明
复制全文
下载 pdf
hdfs dfs 命令说明
支持的 hdfs dfs 命令​
下表列举了支持的 hdfs dfs 命令。​
​
子命令​
示例​
-ls​
hdfs dfs -ls /​
-mkdir​
hdfs dfs -mkdir /some_dir​
-put / -copyFromLocal​
hdfs dfs -put ./local_file /remote_file​
-get / -copyToLocal​
hdfs dfs -get /remote_file ./local_file​
-appendToFile​
hdfs dfs -get ./local_file /remote_file​
-cat​
hdfs dfs -cat /remote_file​
-count​
hdfs dfs -count /remote_path​
-cp​
hdfs dfs -cp /remote_file_a /remote_file_b​
-df​
hdfs dfs -df /remote_path​
-du​
hdfs dfs -du /remote_path​
-expunge​
hdfs dfs -expunge​
-getfacl​
hdfs dfs -getfacl /remote_path​
-getfattr​
hdfs dfs -getfattr -n attr_name /remote_path​
-getmerge​
hdfs dfs -getmerge /remote_file ./local_file​
-moveFromLocal​
hdfs dfs -moveFromLocal ./local_file /remote_file​
-mv​
hdfs dfs -mv /remote_file_a /remote_file_b​
-rm​
hdfs dfs -rm /remote_path​
-rmdir​
hdfs dfs -rmdir /remote_dir​
-setfattr​
hdfs dfs -setfattr -n name [-v value] /remote_path​
-stat​
hdfs dfs -stat /remote_path​
-tail​
hdfs dfs -tail /remote_file​
-text​
hdfs dfs -text /remote_file​
-touchz​
hdfs dfs -touchz /remote_file​
-help​
hdfs dfs -help cmd​
-usage​
hdfs dfs -usage cmd​
​
不支持的 hdfs dfs 命令​
暂不支持以下 hdfs dfs 命令行工具的相关操作:​
  • 不支持快照(snapshot)相关命令(createSnapshot、deleteSnapshot、renameSnapshot)。​
  • 不支持 ACL 相关命令(setfacl、getfacl)。​
  • 不支持 XAttr 相关命令(setfattr、getfattr)。​
  • 不支持 checksum 相关指令(checksum)。​
  • 不支持设置副本数相关指令,通过页面操作(setrep)。​
  • 不支持文件截断相关命令(truncate)。​
​
最近更新时间:2025.07.25 18:37:27
这个页面对您有帮助吗?
有用
有用
无用
无用