Ke Han created HDFS-17169:
-----------------------------
Summary: 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
When using *du* command in dfs shell, I noticed that the return value of du
command is inconsistent according to the
[document|[https://hadoop.apache.org/docs/r2.10.2/hadoop-project-dist/hadoop-common/FileSystemShell.html#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}
I got:
*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]