[
https://issues.apache.org/jira/browse/HDFS-17169?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ke Han updated HDFS-17169:
--------------------------
Attachment: local_folder.tar.gz
> Incorrect results format for du command in 2.10.2
> -------------------------------------------------
>
> Key: HDFS-17169
> URL: https://issues.apache.org/jira/browse/HDFS-17169
> Project: Hadoop HDFS
> Issue Type: Bug
> Components: dfs
> Affects Versions: 2.10.2
> Reporter: Ke Han
> Priority: Minor
> Attachments: local_folder.tar.gz
>
>
> When using *du* command in dfs shell, I noticed that the return value of du
> command is inconsistent according to the [document|#du].]
> {code:java}
> The du returns three columns with the following format:
> size disk_space_consumed_with_all_replicas full_path_name {code}
> However, when executing the following commands on 4 nodes 2.10.2 hdfs cluster
> {code:java}
> > bin/hdfs dfs -mkdir /uYePouSe
> > bin/hdfs dfs -put -f -p -d /tmp/local_folder/Gm /uYePouSe/
> > bin/hdfs dfs -du -s -x /uYePouSe/Gm
> 0 /uYePouSe/Gm{code}
> The results are
> *0 /uYePouSe/Gm*
> however, the expected results should be 3 columns:
> *0 0 /uYePouSe/Gm*
>
> The fix should probably be modifying the document or adding a patch to the du
> command to correct the return results.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]