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

dfsadmin -setBalancerBandwidth doesnot validate -ve value

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.7.1
    • Fix Version/s: 2.8.0, 3.0.0-alpha1
    • Component/s: balancer & mover
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      $ hadoop dfsadmin -setBalancerBandwidth -10000

      does not throw any message that it is invalid although in DN log we are not getting
      "DNA_BALANCERBANDWIDTHUPDATE".

      I think it should throw some message that -ve numbers are not valid , as it does
      for decimal numbers or non-numbers like -

      $ hadoop dfsadmin -setBalancerBandwidth 12.34
      NumberFormatException: For input string: "12.34"
      Usage: java DFSAdmin [-setBalancerBandwidth <bandwidth in bytes per second>]

        Attachments

        1. HDFS-2390-4.patch
          2 kB
          Gautam Gopalakrishnan
        2. HDFS-2390-3.patch
          2 kB
          Gautam Gopalakrishnan
        3. HDFS-2390-2.patch
          2 kB
          Gautam Gopalakrishnan
        4. HDFS-2390-1.patch
          2 kB
          Gautam Gopalakrishnan

          Activity

            People

            • Assignee:
              ggop Gautam Gopalakrishnan
              Reporter:
              rajsaha Rajit Saha
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: