Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-2845

dfsadmin disk utilization report on Solaris is wrong

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.16.0
    • 0.17.0
    • fs
    • None

    Description

      dfsadmin reports 2x disk utilization on some platforms (Solaris, MacOS). The reason for this is that org.apache.hadoop.fs.DU is relying on du's default block size when reporting sizes and assuming they are 1024 byte blocks. This works fine on Linux, but du Solaris and MacOS uses 512-byte blocks to report disk usage.

      DU should use "du -sk" instead of "du -s" to force the command to report sizes based on 1024 byte blocks.

      Attachments

        1. HADOOP-2845-2.patch
          7 kB
          Martin Traverso
        2. HADOOP-2845-1.patch
          7 kB
          Martin Traverso
        3. HADOOP-2845.patch
          0.6 kB
          Martin Traverso

        Activity

          People

            martint Martin Traverso
            martint Martin Traverso
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: