Details
-
Bug
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
2.10.2
-
None
-
None
Description
When using du command in dfs shell, I noticed that the return value of du command is inconsistent according to the document.]
The du returns three columns with the following format: size disk_space_consumed_with_all_replicas full_path_name
However, when executing the following commands on 4 nodes 2.10.2 hdfs cluster
> 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
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.