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

dfsadmin -setBalancerBandwidth doesnot validate -ve value

VotersStop watchingWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.7.1
    • 2.8.0, 3.0.0-alpha1
    • balancer & mover
    • None
    • 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-1.patch
          2 kB
          Gautam Gopalakrishnan
        2. HDFS-2390-2.patch
          2 kB
          Gautam Gopalakrishnan
        3. HDFS-2390-3.patch
          2 kB
          Gautam Gopalakrishnan
        4. HDFS-2390-4.patch
          2 kB
          Gautam Gopalakrishnan

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            ggop Gautam Gopalakrishnan
            rajsaha Rajit Saha
            Votes:
            0 Vote for this issue
            Watchers:
            3 Stop watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment