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

Balancer doesn't honor dfs.blocksize value defined with suffix k(kilo), m(mega), g(giga)

    Details

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

      Description

      While running HDFS Balancer I get error given below when dfs.blockSize is defined with suffix k(kilo), m(mega), g(giga) in hdfs-site.xml. In my deployment dfs.blocksize is set to 128m.

      hdfs@bcpc-vm1:/home/ubuntu$ hdfs balancer
      16/04/19 08:49:51 INFO balancer.Balancer: namenodes  = [hdfs://Test-Laptop]
      16/04/19 08:49:51 INFO balancer.Balancer: parameters = Balancer.BalancerParameters [BalancingPolicy.Node, threshold = 10.0, max idle iteration = 5, #excluded nodes = 0, #included nodes = 0, #source 
      nodes = 0, #blockpools = 0, run during upgrade = false]
      16/04/19 08:49:51 INFO balancer.Balancer: included nodes = []
      16/04/19 08:49:51 INFO balancer.Balancer: excluded nodes = []
      16/04/19 08:49:51 INFO balancer.Balancer: source nodes = []
      Time Stamp               Iteration#  Bytes Already Moved  Bytes Left To Move  Bytes Being Moved
      16/04/19 08:49:52 INFO balancer.KeyManager: Block token params received from NN: update interval=10hrs, 0sec, token lifetime=10hrs, 0sec
      16/04/19 08:49:52 INFO block.BlockTokenSecretManager: Setting block keys
      16/04/19 08:49:52 INFO balancer.KeyManager: Update block keys every 2hrs, 30mins, 0sec
      16/04/19 08:49:52 INFO balancer.Balancer: dfs.balancer.movedWinWidth = 5400000 (default=5400000)
      16/04/19 08:49:52 INFO balancer.Balancer: dfs.balancer.moverThreads = 1000 (default=1000)
      16/04/19 08:49:52 INFO balancer.Balancer: dfs.balancer.dispatcherThreads = 200 (default=200)
      16/04/19 08:49:52 INFO balancer.Balancer: dfs.datanode.balance.max.concurrent.moves = 5 (default=5)
      16/04/19 08:49:52 INFO balancer.Balancer: dfs.balancer.getBlocks.size = 2147483648 (default=2147483648)
      16/04/19 08:49:52 INFO balancer.Balancer: dfs.balancer.getBlocks.min-block-size = 10485760 (default=10485760)
      16/04/19 08:49:52 INFO block.BlockTokenSecretManager: Setting block keys
      16/04/19 08:49:52 INFO balancer.Balancer: dfs.balancer.max-size-to-move = 10737418240 (default=10737418240)
      Apr 19, 2016 8:49:52 AM  Balancing took 1.408 seconds
      16/04/19 08:49:52 ERROR balancer.Balancer: Exiting balancer due an exception
      java.lang.NumberFormatException: For input string: "128m"
              at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
              at java.lang.Long.parseLong(Long.java:589)
              at java.lang.Long.parseLong(Long.java:631)
              at org.apache.hadoop.conf.Configuration.getLong(Configuration.java:1311)
              at org.apache.hadoop.hdfs.server.balancer.Balancer.getLong(Balancer.java:221)
              at org.apache.hadoop.hdfs.server.balancer.Balancer.<init>(Balancer.java:281)
              at org.apache.hadoop.hdfs.server.balancer.Balancer.run(Balancer.java:660)
              at org.apache.hadoop.hdfs.server.balancer.Balancer$Cli.run(Balancer.java:774)
              at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:76)
              at org.apache.hadoop.hdfs.server.balancer.Balancer.main(Balancer.java:903)
      

      However, the workaround for this is to run hdfs balancer with passing numeric value for dfs.blocksize or change your hdfs-site.xml.

      hdfs balancer -Ddfs.blocksize=134217728
      
      1. HDFS-10309.01.patch
        1 kB
        Amit Anand
      2. HDFS-10309.02.patch
        2 kB
        Amit Anand

        Activity

        Hide
        hudson Hudson added a comment -

        FAILURE: Integrated in Hadoop-trunk-Commit #9650 (See https://builds.apache.org/job/Hadoop-trunk-Commit/9650/)
        HDFS-10309 Balancer doesn't honor dfs.blocksize value defined with (szetszwo: rev 14ab7a81e2519935ff28ad40519649599e204732)

        • hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/balancer/Balancer.java
        Show
        hudson Hudson added a comment - FAILURE: Integrated in Hadoop-trunk-Commit #9650 (See https://builds.apache.org/job/Hadoop-trunk-Commit/9650/ ) HDFS-10309 Balancer doesn't honor dfs.blocksize value defined with (szetszwo: rev 14ab7a81e2519935ff28ad40519649599e204732) hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/balancer/Balancer.java
        Hide
        szetszwo Tsz Wo Nicholas Sze added a comment -

        I have committed this. Thanks, Amit!

        Show
        szetszwo Tsz Wo Nicholas Sze added a comment - I have committed this. Thanks, Amit!
        Hide
        hadoopqa Hadoop QA added a comment -
        -1 overall



        Vote Subsystem Runtime Comment
        0 reexec 0m 14s Docker mode activated.
        +1 @author 0m 0s The patch does not contain any @author tags.
        -1 test4tests 0m 0s The patch doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch.
        +1 mvninstall 6m 52s trunk passed
        +1 compile 0m 41s trunk passed with JDK v1.8.0_77
        +1 compile 0m 41s trunk passed with JDK v1.7.0_95
        +1 checkstyle 0m 21s trunk passed
        +1 mvnsite 0m 51s trunk passed
        +1 mvneclipse 0m 13s trunk passed
        +1 findbugs 1m 54s trunk passed
        +1 javadoc 1m 4s trunk passed with JDK v1.8.0_77
        +1 javadoc 1m 48s trunk passed with JDK v1.7.0_95
        +1 mvninstall 0m 46s the patch passed
        +1 compile 0m 35s the patch passed with JDK v1.8.0_77
        +1 javac 0m 35s the patch passed
        +1 compile 0m 41s the patch passed with JDK v1.7.0_95
        +1 javac 0m 41s the patch passed
        +1 checkstyle 0m 18s the patch passed
        +1 mvnsite 0m 48s the patch passed
        +1 mvneclipse 0m 11s the patch passed
        +1 whitespace 0m 0s Patch has no whitespace issues.
        +1 findbugs 2m 10s the patch passed
        +1 javadoc 1m 7s the patch passed with JDK v1.8.0_77
        +1 javadoc 1m 45s the patch passed with JDK v1.7.0_95
        -1 unit 71m 38s hadoop-hdfs in the patch failed with JDK v1.8.0_77.
        -1 unit 71m 17s hadoop-hdfs in the patch failed with JDK v1.7.0_95.
        +1 asflicense 0m 25s Patch does not generate ASF License warnings.
        168m 27s



        Reason Tests
        JDK v1.8.0_77 Failed junit tests hadoop.hdfs.TestHFlush
        JDK v1.7.0_95 Failed junit tests hadoop.hdfs.TestHFlush



        Subsystem Report/Notes
        Docker Image:yetus/hadoop:fbe3e86
        JIRA Patch URL https://issues.apache.org/jira/secure/attachment/12799804/HDFS-10309.02.patch
        JIRA Issue HDFS-10309
        Optional Tests asflicense compile javac javadoc mvninstall mvnsite unit findbugs checkstyle
        uname Linux 49a4c63a98be 3.13.0-36-lowlatency #63-Ubuntu SMP PREEMPT Wed Sep 3 21:56:12 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
        Build tool maven
        Personality /testptch/hadoop/patchprocess/precommit/personality/provided.sh
        git revision trunk / ad36fa6
        Default Java 1.7.0_95
        Multi-JDK versions /usr/lib/jvm/java-8-oracle:1.8.0_77 /usr/lib/jvm/java-7-openjdk-amd64:1.7.0_95
        findbugs v3.0.0
        unit https://builds.apache.org/job/PreCommit-HDFS-Build/15222/artifact/patchprocess/patch-unit-hadoop-hdfs-project_hadoop-hdfs-jdk1.8.0_77.txt
        unit https://builds.apache.org/job/PreCommit-HDFS-Build/15222/artifact/patchprocess/patch-unit-hadoop-hdfs-project_hadoop-hdfs-jdk1.7.0_95.txt
        unit test logs https://builds.apache.org/job/PreCommit-HDFS-Build/15222/artifact/patchprocess/patch-unit-hadoop-hdfs-project_hadoop-hdfs-jdk1.8.0_77.txt https://builds.apache.org/job/PreCommit-HDFS-Build/15222/artifact/patchprocess/patch-unit-hadoop-hdfs-project_hadoop-hdfs-jdk1.7.0_95.txt
        JDK v1.7.0_95 Test Results https://builds.apache.org/job/PreCommit-HDFS-Build/15222/testReport/
        modules C: hadoop-hdfs-project/hadoop-hdfs U: hadoop-hdfs-project/hadoop-hdfs
        Console output https://builds.apache.org/job/PreCommit-HDFS-Build/15222/console
        Powered by Apache Yetus 0.2.0 http://yetus.apache.org

        This message was automatically generated.

        Show
        hadoopqa Hadoop QA added a comment - -1 overall Vote Subsystem Runtime Comment 0 reexec 0m 14s Docker mode activated. +1 @author 0m 0s The patch does not contain any @author tags. -1 test4tests 0m 0s The patch doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch. +1 mvninstall 6m 52s trunk passed +1 compile 0m 41s trunk passed with JDK v1.8.0_77 +1 compile 0m 41s trunk passed with JDK v1.7.0_95 +1 checkstyle 0m 21s trunk passed +1 mvnsite 0m 51s trunk passed +1 mvneclipse 0m 13s trunk passed +1 findbugs 1m 54s trunk passed +1 javadoc 1m 4s trunk passed with JDK v1.8.0_77 +1 javadoc 1m 48s trunk passed with JDK v1.7.0_95 +1 mvninstall 0m 46s the patch passed +1 compile 0m 35s the patch passed with JDK v1.8.0_77 +1 javac 0m 35s the patch passed +1 compile 0m 41s the patch passed with JDK v1.7.0_95 +1 javac 0m 41s the patch passed +1 checkstyle 0m 18s the patch passed +1 mvnsite 0m 48s the patch passed +1 mvneclipse 0m 11s the patch passed +1 whitespace 0m 0s Patch has no whitespace issues. +1 findbugs 2m 10s the patch passed +1 javadoc 1m 7s the patch passed with JDK v1.8.0_77 +1 javadoc 1m 45s the patch passed with JDK v1.7.0_95 -1 unit 71m 38s hadoop-hdfs in the patch failed with JDK v1.8.0_77. -1 unit 71m 17s hadoop-hdfs in the patch failed with JDK v1.7.0_95. +1 asflicense 0m 25s Patch does not generate ASF License warnings. 168m 27s Reason Tests JDK v1.8.0_77 Failed junit tests hadoop.hdfs.TestHFlush JDK v1.7.0_95 Failed junit tests hadoop.hdfs.TestHFlush Subsystem Report/Notes Docker Image:yetus/hadoop:fbe3e86 JIRA Patch URL https://issues.apache.org/jira/secure/attachment/12799804/HDFS-10309.02.patch JIRA Issue HDFS-10309 Optional Tests asflicense compile javac javadoc mvninstall mvnsite unit findbugs checkstyle uname Linux 49a4c63a98be 3.13.0-36-lowlatency #63-Ubuntu SMP PREEMPT Wed Sep 3 21:56:12 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux Build tool maven Personality /testptch/hadoop/patchprocess/precommit/personality/provided.sh git revision trunk / ad36fa6 Default Java 1.7.0_95 Multi-JDK versions /usr/lib/jvm/java-8-oracle:1.8.0_77 /usr/lib/jvm/java-7-openjdk-amd64:1.7.0_95 findbugs v3.0.0 unit https://builds.apache.org/job/PreCommit-HDFS-Build/15222/artifact/patchprocess/patch-unit-hadoop-hdfs-project_hadoop-hdfs-jdk1.8.0_77.txt unit https://builds.apache.org/job/PreCommit-HDFS-Build/15222/artifact/patchprocess/patch-unit-hadoop-hdfs-project_hadoop-hdfs-jdk1.7.0_95.txt unit test logs https://builds.apache.org/job/PreCommit-HDFS-Build/15222/artifact/patchprocess/patch-unit-hadoop-hdfs-project_hadoop-hdfs-jdk1.8.0_77.txt https://builds.apache.org/job/PreCommit-HDFS-Build/15222/artifact/patchprocess/patch-unit-hadoop-hdfs-project_hadoop-hdfs-jdk1.7.0_95.txt JDK v1.7.0_95 Test Results https://builds.apache.org/job/PreCommit-HDFS-Build/15222/testReport/ modules C: hadoop-hdfs-project/hadoop-hdfs U: hadoop-hdfs-project/hadoop-hdfs Console output https://builds.apache.org/job/PreCommit-HDFS-Build/15222/console Powered by Apache Yetus 0.2.0 http://yetus.apache.org This message was automatically generated.
        Hide
        szetszwo Tsz Wo Nicholas Sze added a comment -

        +1 the new patch looks good. Thanks.

        Show
        szetszwo Tsz Wo Nicholas Sze added a comment - +1 the new patch looks good. Thanks.
        Hide
        szetszwo Tsz Wo Nicholas Sze added a comment -

        Hi Amit, thanks for working on this. Could you also change getBlocksSize, getBlocksMinBlockSize and maxSizeToMove to use getLongBytes(..)?

        Show
        szetszwo Tsz Wo Nicholas Sze added a comment - Hi Amit, thanks for working on this. Could you also change getBlocksSize, getBlocksMinBlockSize and maxSizeToMove to use getLongBytes(..)?
        Hide
        hadoopqa Hadoop QA added a comment -
        -1 overall



        Vote Subsystem Runtime Comment
        0 reexec 0m 23s Docker mode activated.
        +1 @author 0m 0s The patch does not contain any @author tags.
        -1 test4tests 0m 0s The patch doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch.
        +1 mvninstall 9m 7s trunk passed
        +1 compile 0m 53s trunk passed with JDK v1.8.0_77
        +1 compile 0m 49s trunk passed with JDK v1.7.0_95
        +1 checkstyle 0m 20s trunk passed
        +1 mvnsite 0m 58s trunk passed
        +1 mvneclipse 0m 15s trunk passed
        +1 findbugs 2m 2s trunk passed
        +1 javadoc 1m 21s trunk passed with JDK v1.8.0_77
        +1 javadoc 2m 1s trunk passed with JDK v1.7.0_95
        +1 mvninstall 0m 56s the patch passed
        +1 compile 1m 19s the patch passed with JDK v1.8.0_77
        +1 javac 1m 19s the patch passed
        +1 compile 1m 0s the patch passed with JDK v1.7.0_95
        +1 javac 1m 0s the patch passed
        +1 checkstyle 0m 19s the patch passed
        +1 mvnsite 0m 59s the patch passed
        +1 mvneclipse 0m 14s the patch passed
        +1 whitespace 0m 0s Patch has no whitespace issues.
        +1 findbugs 2m 42s the patch passed
        +1 javadoc 2m 10s the patch passed with JDK v1.8.0_77
        +1 javadoc 3m 22s the patch passed with JDK v1.7.0_95
        -1 unit 105m 23s hadoop-hdfs in the patch failed with JDK v1.8.0_77.
        -1 unit 88m 26s hadoop-hdfs in the patch failed with JDK v1.7.0_95.
        +1 asflicense 0m 22s Patch does not generate ASF License warnings.
        229m 10s



        Reason Tests
        JDK v1.8.0_77 Failed junit tests hadoop.hdfs.TestHFlush
          hadoop.hdfs.server.namenode.TestNamenodeRetryCache
          hadoop.hdfs.server.namenode.ha.TestEditLogTailer
          hadoop.hdfs.shortcircuit.TestShortCircuitCache
          hadoop.hdfs.server.blockmanagement.TestBlockManager
          hadoop.hdfs.TestDataTransferKeepalive
          hadoop.hdfs.server.namenode.ha.TestRetryCacheWithHA
          hadoop.hdfs.TestErasureCodeBenchmarkThroughput
          hadoop.hdfs.security.TestDelegationTokenForProxyUser
          hadoop.hdfs.TestRollingUpgrade
          hadoop.hdfs.web.TestWebHdfsTokens
          hadoop.hdfs.TestFileCreationDelete
          hadoop.hdfs.server.namenode.ha.TestHAAppend
          hadoop.fs.TestSymlinkHdfsFileContext
          hadoop.hdfs.qjournal.TestSecureNNWithQJM
          hadoop.hdfs.TestEncryptionZonesWithKMS
        JDK v1.7.0_95 Failed junit tests hadoop.hdfs.server.namenode.TestNamenodeRetryCache
          hadoop.hdfs.TestMissingBlocksAlert
          hadoop.hdfs.server.namenode.ha.TestRetryCacheWithHA
          hadoop.hdfs.security.TestDelegationTokenForProxyUser
          hadoop.hdfs.TestRollingUpgrade
          hadoop.hdfs.server.namenode.ha.TestHAAppend
          hadoop.hdfs.qjournal.TestSecureNNWithQJM



        Subsystem Report/Notes
        Docker Image:yetus/hadoop:fbe3e86
        JIRA Patch URL https://issues.apache.org/jira/secure/attachment/12799731/HDFS-10309.01.patch
        JIRA Issue HDFS-10309
        Optional Tests asflicense compile javac javadoc mvninstall mvnsite unit findbugs checkstyle
        uname Linux c6e83e3b9d81 3.13.0-36-lowlatency #63-Ubuntu SMP PREEMPT Wed Sep 3 21:56:12 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
        Build tool maven
        Personality /testptch/hadoop/patchprocess/precommit/personality/provided.sh
        git revision trunk / af9bdbe
        Default Java 1.7.0_95
        Multi-JDK versions /usr/lib/jvm/java-8-oracle:1.8.0_77 /usr/lib/jvm/java-7-openjdk-amd64:1.7.0_95
        findbugs v3.0.0
        unit https://builds.apache.org/job/PreCommit-HDFS-Build/15216/artifact/patchprocess/patch-unit-hadoop-hdfs-project_hadoop-hdfs-jdk1.8.0_77.txt
        unit https://builds.apache.org/job/PreCommit-HDFS-Build/15216/artifact/patchprocess/patch-unit-hadoop-hdfs-project_hadoop-hdfs-jdk1.7.0_95.txt
        unit test logs https://builds.apache.org/job/PreCommit-HDFS-Build/15216/artifact/patchprocess/patch-unit-hadoop-hdfs-project_hadoop-hdfs-jdk1.8.0_77.txt https://builds.apache.org/job/PreCommit-HDFS-Build/15216/artifact/patchprocess/patch-unit-hadoop-hdfs-project_hadoop-hdfs-jdk1.7.0_95.txt
        JDK v1.7.0_95 Test Results https://builds.apache.org/job/PreCommit-HDFS-Build/15216/testReport/
        modules C: hadoop-hdfs-project/hadoop-hdfs U: hadoop-hdfs-project/hadoop-hdfs
        Console output https://builds.apache.org/job/PreCommit-HDFS-Build/15216/console
        Powered by Apache Yetus 0.2.0 http://yetus.apache.org

        This message was automatically generated.

        Show
        hadoopqa Hadoop QA added a comment - -1 overall Vote Subsystem Runtime Comment 0 reexec 0m 23s Docker mode activated. +1 @author 0m 0s The patch does not contain any @author tags. -1 test4tests 0m 0s The patch doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch. +1 mvninstall 9m 7s trunk passed +1 compile 0m 53s trunk passed with JDK v1.8.0_77 +1 compile 0m 49s trunk passed with JDK v1.7.0_95 +1 checkstyle 0m 20s trunk passed +1 mvnsite 0m 58s trunk passed +1 mvneclipse 0m 15s trunk passed +1 findbugs 2m 2s trunk passed +1 javadoc 1m 21s trunk passed with JDK v1.8.0_77 +1 javadoc 2m 1s trunk passed with JDK v1.7.0_95 +1 mvninstall 0m 56s the patch passed +1 compile 1m 19s the patch passed with JDK v1.8.0_77 +1 javac 1m 19s the patch passed +1 compile 1m 0s the patch passed with JDK v1.7.0_95 +1 javac 1m 0s the patch passed +1 checkstyle 0m 19s the patch passed +1 mvnsite 0m 59s the patch passed +1 mvneclipse 0m 14s the patch passed +1 whitespace 0m 0s Patch has no whitespace issues. +1 findbugs 2m 42s the patch passed +1 javadoc 2m 10s the patch passed with JDK v1.8.0_77 +1 javadoc 3m 22s the patch passed with JDK v1.7.0_95 -1 unit 105m 23s hadoop-hdfs in the patch failed with JDK v1.8.0_77. -1 unit 88m 26s hadoop-hdfs in the patch failed with JDK v1.7.0_95. +1 asflicense 0m 22s Patch does not generate ASF License warnings. 229m 10s Reason Tests JDK v1.8.0_77 Failed junit tests hadoop.hdfs.TestHFlush   hadoop.hdfs.server.namenode.TestNamenodeRetryCache   hadoop.hdfs.server.namenode.ha.TestEditLogTailer   hadoop.hdfs.shortcircuit.TestShortCircuitCache   hadoop.hdfs.server.blockmanagement.TestBlockManager   hadoop.hdfs.TestDataTransferKeepalive   hadoop.hdfs.server.namenode.ha.TestRetryCacheWithHA   hadoop.hdfs.TestErasureCodeBenchmarkThroughput   hadoop.hdfs.security.TestDelegationTokenForProxyUser   hadoop.hdfs.TestRollingUpgrade   hadoop.hdfs.web.TestWebHdfsTokens   hadoop.hdfs.TestFileCreationDelete   hadoop.hdfs.server.namenode.ha.TestHAAppend   hadoop.fs.TestSymlinkHdfsFileContext   hadoop.hdfs.qjournal.TestSecureNNWithQJM   hadoop.hdfs.TestEncryptionZonesWithKMS JDK v1.7.0_95 Failed junit tests hadoop.hdfs.server.namenode.TestNamenodeRetryCache   hadoop.hdfs.TestMissingBlocksAlert   hadoop.hdfs.server.namenode.ha.TestRetryCacheWithHA   hadoop.hdfs.security.TestDelegationTokenForProxyUser   hadoop.hdfs.TestRollingUpgrade   hadoop.hdfs.server.namenode.ha.TestHAAppend   hadoop.hdfs.qjournal.TestSecureNNWithQJM Subsystem Report/Notes Docker Image:yetus/hadoop:fbe3e86 JIRA Patch URL https://issues.apache.org/jira/secure/attachment/12799731/HDFS-10309.01.patch JIRA Issue HDFS-10309 Optional Tests asflicense compile javac javadoc mvninstall mvnsite unit findbugs checkstyle uname Linux c6e83e3b9d81 3.13.0-36-lowlatency #63-Ubuntu SMP PREEMPT Wed Sep 3 21:56:12 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux Build tool maven Personality /testptch/hadoop/patchprocess/precommit/personality/provided.sh git revision trunk / af9bdbe Default Java 1.7.0_95 Multi-JDK versions /usr/lib/jvm/java-8-oracle:1.8.0_77 /usr/lib/jvm/java-7-openjdk-amd64:1.7.0_95 findbugs v3.0.0 unit https://builds.apache.org/job/PreCommit-HDFS-Build/15216/artifact/patchprocess/patch-unit-hadoop-hdfs-project_hadoop-hdfs-jdk1.8.0_77.txt unit https://builds.apache.org/job/PreCommit-HDFS-Build/15216/artifact/patchprocess/patch-unit-hadoop-hdfs-project_hadoop-hdfs-jdk1.7.0_95.txt unit test logs https://builds.apache.org/job/PreCommit-HDFS-Build/15216/artifact/patchprocess/patch-unit-hadoop-hdfs-project_hadoop-hdfs-jdk1.8.0_77.txt https://builds.apache.org/job/PreCommit-HDFS-Build/15216/artifact/patchprocess/patch-unit-hadoop-hdfs-project_hadoop-hdfs-jdk1.7.0_95.txt JDK v1.7.0_95 Test Results https://builds.apache.org/job/PreCommit-HDFS-Build/15216/testReport/ modules C: hadoop-hdfs-project/hadoop-hdfs U: hadoop-hdfs-project/hadoop-hdfs Console output https://builds.apache.org/job/PreCommit-HDFS-Build/15216/console Powered by Apache Yetus 0.2.0 http://yetus.apache.org This message was automatically generated.
        Hide
        aanand001c Amit Anand added a comment -

        After building the patched jar I was able to test it successfully:

        hdfs@bcpc-vm3:~$ hdfs balancer
        16/04/20 08:05:54 INFO balancer.Balancer: namenodes  = [hdfs://Test-Laptop]
        16/04/20 08:05:54 INFO balancer.Balancer: parameters = Balancer.BalancerParameters [BalancingPolicy.Node, threshold = 10.0, max idle iteration = 5, #excluded nodes = 0, #included nodes = 0, #source nodes = 0, #blockpools = 0, run during upgrade = false]
        16/04/20 08:05:54 INFO balancer.Balancer: included nodes = []
        16/04/20 08:05:54 INFO balancer.Balancer: excluded nodes = []
        16/04/20 08:05:54 INFO balancer.Balancer: source nodes = []
        Time Stamp               Iteration#  Bytes Already Moved  Bytes Left To Move  Bytes Being Moved
        16/04/20 08:05:55 INFO balancer.KeyManager: Block token params received from NN: update interval=10hrs, 0sec, token lifetime=10hrs, 0sec
        16/04/20 08:05:55 INFO block.BlockTokenSecretManager: Setting block keys
        16/04/20 08:05:55 INFO balancer.KeyManager: Update block keys every 2hrs, 30mins, 0sec
        16/04/20 08:05:55 INFO balancer.Balancer: dfs.balancer.movedWinWidth = 5400000 (default=5400000)
        16/04/20 08:05:55 INFO balancer.Balancer: dfs.balancer.moverThreads = 1000 (default=1000)
        16/04/20 08:05:55 INFO balancer.Balancer: dfs.balancer.dispatcherThreads = 200 (default=200)
        16/04/20 08:05:55 INFO balancer.Balancer: dfs.datanode.balance.max.concurrent.moves = 5 (default=5)
        16/04/20 08:05:55 INFO balancer.Balancer: dfs.balancer.getBlocks.size = 2147483648 (default=2147483648)
        16/04/20 08:05:55 INFO balancer.Balancer: dfs.balancer.getBlocks.min-block-size = 10485760 (default=10485760)
        16/04/20 08:05:55 INFO block.BlockTokenSecretManager: Setting block keys
        16/04/20 08:05:55 INFO balancer.Balancer: dfs.balancer.max-size-to-move = 10737418240 (default=10737418240)
        16/04/20 08:05:55 INFO balancer.Balancer: dfs.blocksize = 134217728 (default=134217728)
        16/04/20 08:05:55 INFO net.NetworkTopology: Adding a new node: /default-rack/192.168.100.14:1004
        16/04/20 08:05:55 INFO net.NetworkTopology: Adding a new node: /default-rack/192.168.100.15:1004
        16/04/20 08:05:55 INFO net.NetworkTopology: Adding a new node: /default-rack/192.168.100.13:1004
        16/04/20 08:05:55 INFO balancer.Balancer: 0 over-utilized: []
        16/04/20 08:05:55 INFO balancer.Balancer: 0 underutilized: []
        The cluster is balanced. Exiting...
        Apr 20, 2016 8:05:55 AM           0                  0 B                 0 B               -1 B
        Apr 20, 2016 8:05:56 AM  Balancing took 2.179 seconds
        
        Show
        aanand001c Amit Anand added a comment - After building the patched jar I was able to test it successfully: hdfs@bcpc-vm3:~$ hdfs balancer 16/04/20 08:05:54 INFO balancer.Balancer: namenodes = [hdfs: //Test-Laptop] 16/04/20 08:05:54 INFO balancer.Balancer: parameters = Balancer.BalancerParameters [BalancingPolicy.Node, threshold = 10.0, max idle iteration = 5, #excluded nodes = 0, #included nodes = 0, #source nodes = 0, #blockpools = 0, run during upgrade = false ] 16/04/20 08:05:54 INFO balancer.Balancer: included nodes = [] 16/04/20 08:05:54 INFO balancer.Balancer: excluded nodes = [] 16/04/20 08:05:54 INFO balancer.Balancer: source nodes = [] Time Stamp Iteration# Bytes Already Moved Bytes Left To Move Bytes Being Moved 16/04/20 08:05:55 INFO balancer.KeyManager: Block token params received from NN: update interval=10hrs, 0sec, token lifetime=10hrs, 0sec 16/04/20 08:05:55 INFO block.BlockTokenSecretManager: Setting block keys 16/04/20 08:05:55 INFO balancer.KeyManager: Update block keys every 2hrs, 30mins, 0sec 16/04/20 08:05:55 INFO balancer.Balancer: dfs.balancer.movedWinWidth = 5400000 ( default =5400000) 16/04/20 08:05:55 INFO balancer.Balancer: dfs.balancer.moverThreads = 1000 ( default =1000) 16/04/20 08:05:55 INFO balancer.Balancer: dfs.balancer.dispatcherThreads = 200 ( default =200) 16/04/20 08:05:55 INFO balancer.Balancer: dfs.datanode.balance.max.concurrent.moves = 5 ( default =5) 16/04/20 08:05:55 INFO balancer.Balancer: dfs.balancer.getBlocks.size = 2147483648 ( default =2147483648) 16/04/20 08:05:55 INFO balancer.Balancer: dfs.balancer.getBlocks.min-block-size = 10485760 ( default =10485760) 16/04/20 08:05:55 INFO block.BlockTokenSecretManager: Setting block keys 16/04/20 08:05:55 INFO balancer.Balancer: dfs.balancer.max-size-to-move = 10737418240 ( default =10737418240) 16/04/20 08:05:55 INFO balancer.Balancer: dfs.blocksize = 134217728 ( default =134217728) 16/04/20 08:05:55 INFO net.NetworkTopology: Adding a new node: / default -rack/192.168.100.14:1004 16/04/20 08:05:55 INFO net.NetworkTopology: Adding a new node: / default -rack/192.168.100.15:1004 16/04/20 08:05:55 INFO net.NetworkTopology: Adding a new node: / default -rack/192.168.100.13:1004 16/04/20 08:05:55 INFO balancer.Balancer: 0 over-utilized: [] 16/04/20 08:05:55 INFO balancer.Balancer: 0 underutilized: [] The cluster is balanced. Exiting... Apr 20, 2016 8:05:55 AM 0 0 B 0 B -1 B Apr 20, 2016 8:05:56 AM Balancing took 2.179 seconds

          People

          • Assignee:
            aanand001c Amit Anand
            Reporter:
            aanand001c Amit Anand
          • Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development