You need to enable JavaScript to run this app.
导航

hdfs dfs 命令说明

最近更新时间2023.01.13 10:39:42

首次发布时间2022.05.26 14:18:33

支持的 hdfs dfs 命令

下表列举了支持的 hdfs dfs 命令。

子命令示例
-lshdfs dfs -ls /
-mkdirhdfs dfs -mkdir /some_dir
-put / -copyFromLocalhdfs dfs -put ./local_file /remote_file
-get / -copyToLocalhdfs dfs -get /remote_file ./local_file
-appendToFilehdfs dfs -get ./local_file /remote_file
-cathdfs dfs -cat /remote_file
-counthdfs dfs -count /remote_path
-cphdfs dfs -cp /remote_file_a /remote_file_b
-dfhdfs dfs -df /remote_path
-duhdfs dfs -du /remote_path
-expungehdfs dfs -expunge
-getfaclhdfs dfs -getfacl /remote_path
-getfattrhdfs dfs -getfattr -n attr_name /remote_path
-getmergehdfs dfs -getmerge /remote_file ./local_file
-moveFromLocalhdfs dfs -moveFromLocal ./local_file /remote_file
-mvhdfs dfs -mv /remote_file_a /remote_file_b
-rmhdfs dfs -rm /remote_path
-rmdirhdfs dfs -rmdir /remote_dir
-setfattrhdfs dfs -setfattr -n name [-v value] /remote_path
-stathdfs dfs -stat /remote_path
-tailhdfs dfs -tail /remote_file
-texthdfs dfs -text /remote_file
-touchzhdfs dfs -touchz /remote_file
-helphdfs dfs -help cmd
-usagehdfs dfs -usage cmd

不支持的 hdfs dfs 命令

暂不支持以下 hdfs dfs 命令行工具的相关操作:

  • 不支持快照(snapshot)相关命令(createSnapshot、deleteSnapshot、renameSnapshot)。

  • 不支持 ACL 相关命令(setfacl、getfacl)。

  • 不支持 XAttr 相关命令(setfattr、getfattr)。

  • 不支持 checksum 相关指令(checksum)。

  • 不支持设置副本数相关指令,通过页面操作(setrep)。

  • 不支持文件截断相关命令(truncate)。