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

WARN when users set the block balanced preference percent below 0.5 or above 1.0

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0.4-alpha
    • Fix Version/s: 2.1.0-beta
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      With the new feature added in HDFS-1804 (Add a new block-volume device choosing policy that looks at free space), it'd be useful to have a WARN log if the operator sets dfs.datanode.fsdataset.volume.choosing.balanced-space-preference-percent to a value greater than 1.0. This might happen if the operator mistakenly assumes that this setting takes in a percentage number from 0.0-100.0, while the setting actually takes a range 0.0-1.0.

      Also, it'd be useful to WARN in the case that value is set below 0.5, which would cause disks with less free space to get more block allocations.

        Attachments

        1. HDFS-4804.patch
          1 kB
          Stephen Chu

          Activity

            People

            • Assignee:
              schu Stephen Chu
              Reporter:
              schu Stephen Chu
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: