Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-17169

Incorrect results format for du command in 2.10.2

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 2.10.2
    • None
    • dfs
    • 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.

      Attachments

        1. local_folder.tar.gz
          0.2 kB
          Ke Han

        Activity

          People

            Unassigned Unassigned
            kehan5800 Ke Han
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: