HBase
  1. HBase
  2. HBASE-8613

Improve logging when BindException is received at startup time.

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.98.0, 0.95.1
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      When a RS try to start by the address/port is already used, it's lacking some information. Display the address and the port might be useful to troubleshot the issue.

      Goal of this JIRA is just to improve the logging.

      2013-05-24 10:36:46,182 WARN org.apache.hadoop.hbase.regionserver.HRegionServer: Exception in region server : 
      java.net.BindException: Adresse déjà utilisée
      	at sun.nio.ch.Net.bind0(Native Method)
      	at sun.nio.ch.Net.bind(Net.java:344)
      	at sun.nio.ch.Net.bind(Net.java:336)
      	at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:199)
      	at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)
      	at org.mortbay.jetty.nio.SelectChannelConnector.open(SelectChannelConnector.java:216)
      	at org.apache.hadoop.http.HttpServer.start(HttpServer.java:581)
      	at org.apache.hadoop.hbase.regionserver.HRegionServer.putUpWebUI(HRegionServer.java:1716)
      	at org.apache.hadoop.hbase.regionserver.HRegionServer.startServiceThreads(HRegionServer.java:1674)
      	at org.apache.hadoop.hbase.regionserver.HRegionServer.handleReportForDutyResponse(HRegionServer.java:1099)
      	at org.apache.hadoop.hbase.regionserver.HRegionServer.run(HRegionServer.java:741)
      	at java.lang.Thread.run(Thread.java:722)
      2013-05-24 10:36:46,206 INFO org.apache.hadoop.hbase.regionserver.HRegionServer: STOPPED: Failed initialization
      2013-05-24 10:36:46,209 ERROR org.apache.hadoop.hbase.regionserver.HRegionServer: Failed init
      java.net.BindException: Adresse déjà utilisée
      	at sun.nio.ch.Net.bind0(Native Method)
      	at sun.nio.ch.Net.bind(Net.java:344)
      	at sun.nio.ch.Net.bind(Net.java:336)
      	at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:199)
      	at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)
      	at org.mortbay.jetty.nio.SelectChannelConnector.open(SelectChannelConnector.java:216)
      	at org.apache.hadoop.http.HttpServer.start(HttpServer.java:581)
      	at org.apache.hadoop.hbase.regionserver.HRegionServer.putUpWebUI(HRegionServer.java:1716)
      	at org.apache.hadoop.hbase.regionserver.HRegionServer.startServiceThreads(HRegionServer.java:1674)
      	at org.apache.hadoop.hbase.regionserver.HRegionServer.handleReportForDutyResponse(HRegionServer.java:1099)
      	at org.apache.hadoop.hbase.regionserver.HRegionServer.run(HRegionServer.java:741)
      	at java.lang.Thread.run(Thread.java:722)
      2013-05-24 10:36:46,210 FATAL org.apache.hadoop.hbase.regionserver.HRegionServer: ABORTING region server node2,60020,1369406202844: Unhandled exception: Adresse déjà utilisée
      java.net.BindException: Adresse déjà utilisée
      	at sun.nio.ch.Net.bind0(Native Method)
      	at sun.nio.ch.Net.bind(Net.java:344)
      	at sun.nio.ch.Net.bind(Net.java:336)
      	at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:199)
      	at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)
      	at org.mortbay.jetty.nio.SelectChannelConnector.open(SelectChannelConnector.java:216)
      	at org.apache.hadoop.http.HttpServer.start(HttpServer.java:581)
      	at org.apache.hadoop.hbase.regionserver.HRegionServer.putUpWebUI(HRegionServer.java:1716)
      	at org.apache.hadoop.hbase.regionserver.HRegionServer.startServiceThreads(HRegionServer.java:1674)
      	at org.apache.hadoop.hbase.regionserver.HRegionServer.handleReportForDutyResponse(HRegionServer.java:1099)
      	at org.apache.hadoop.hbase.regionserver.HRegionServer.run(HRegionServer.java:741)
      	at java.lang.Thread.run(Thread.java:722)
      
      1. HBASE-8613-v0-trunk.patch
        0.6 kB
        Jean-Marc Spaggiari

        Activity

        Hide
        Jean-Marc Spaggiari added a comment -

        VERY small patch, but still useful to quickly know which port is faulty.

        Show
        Jean-Marc Spaggiari added a comment - VERY small patch, but still useful to quickly know which port is faulty.
        Hide
        stack added a comment -

        Committed to 0.95 and to trunk. Thanks for the patch Jean-Marc.

        Show
        stack added a comment - Committed to 0.95 and to trunk. Thanks for the patch Jean-Marc.
        Hide
        Hadoop QA added a comment -

        -1 overall. Here are the results of testing the latest attachment
        http://issues.apache.org/jira/secure/attachment/12584814/HBASE-8613-v0-trunk.patch
        against trunk revision .

        +1 @author. The patch does not contain any @author tags.

        -1 tests included. 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 hadoop1.0. The patch compiles against the hadoop 1.0 profile.

        +1 hadoop2.0. The patch compiles against the hadoop 2.0 profile.

        +1 javadoc. The javadoc tool did not generate any warning messages.

        +1 javac. The applied patch does not increase the total number of javac compiler warnings.

        +1 findbugs. The patch does not introduce any new Findbugs (version 1.3.9) warnings.

        +1 release audit. The applied patch does not increase the total number of release audit warnings.

        +1 lineLengths. The patch does not introduce lines longer than 100

        +1 site. The mvn site goal succeeds with this patch.

        +1 core tests. The patch passed unit tests in .

        Test results: https://builds.apache.org/job/PreCommit-HBASE-Build/5829//testReport/
        Findbugs warnings: https://builds.apache.org/job/PreCommit-HBASE-Build/5829//artifact/trunk/patchprocess/newPatchFindbugsWarningshbase-prefix-tree.html
        Findbugs warnings: https://builds.apache.org/job/PreCommit-HBASE-Build/5829//artifact/trunk/patchprocess/newPatchFindbugsWarningshbase-client.html
        Findbugs warnings: https://builds.apache.org/job/PreCommit-HBASE-Build/5829//artifact/trunk/patchprocess/newPatchFindbugsWarningshbase-common.html
        Findbugs warnings: https://builds.apache.org/job/PreCommit-HBASE-Build/5829//artifact/trunk/patchprocess/newPatchFindbugsWarningshbase-protocol.html
        Findbugs warnings: https://builds.apache.org/job/PreCommit-HBASE-Build/5829//artifact/trunk/patchprocess/newPatchFindbugsWarningshbase-server.html
        Findbugs warnings: https://builds.apache.org/job/PreCommit-HBASE-Build/5829//artifact/trunk/patchprocess/newPatchFindbugsWarningshbase-hadoop1-compat.html
        Findbugs warnings: https://builds.apache.org/job/PreCommit-HBASE-Build/5829//artifact/trunk/patchprocess/newPatchFindbugsWarningshbase-examples.html
        Findbugs warnings: https://builds.apache.org/job/PreCommit-HBASE-Build/5829//artifact/trunk/patchprocess/newPatchFindbugsWarningshbase-hadoop-compat.html
        Console output: https://builds.apache.org/job/PreCommit-HBASE-Build/5829//console

        This message is automatically generated.

        Show
        Hadoop QA added a comment - -1 overall . Here are the results of testing the latest attachment http://issues.apache.org/jira/secure/attachment/12584814/HBASE-8613-v0-trunk.patch against trunk revision . +1 @author . The patch does not contain any @author tags. -1 tests included . 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 hadoop1.0 . The patch compiles against the hadoop 1.0 profile. +1 hadoop2.0 . The patch compiles against the hadoop 2.0 profile. +1 javadoc . The javadoc tool did not generate any warning messages. +1 javac . The applied patch does not increase the total number of javac compiler warnings. +1 findbugs . The patch does not introduce any new Findbugs (version 1.3.9) warnings. +1 release audit . The applied patch does not increase the total number of release audit warnings. +1 lineLengths . The patch does not introduce lines longer than 100 +1 site . The mvn site goal succeeds with this patch. +1 core tests . The patch passed unit tests in . Test results: https://builds.apache.org/job/PreCommit-HBASE-Build/5829//testReport/ Findbugs warnings: https://builds.apache.org/job/PreCommit-HBASE-Build/5829//artifact/trunk/patchprocess/newPatchFindbugsWarningshbase-prefix-tree.html Findbugs warnings: https://builds.apache.org/job/PreCommit-HBASE-Build/5829//artifact/trunk/patchprocess/newPatchFindbugsWarningshbase-client.html Findbugs warnings: https://builds.apache.org/job/PreCommit-HBASE-Build/5829//artifact/trunk/patchprocess/newPatchFindbugsWarningshbase-common.html Findbugs warnings: https://builds.apache.org/job/PreCommit-HBASE-Build/5829//artifact/trunk/patchprocess/newPatchFindbugsWarningshbase-protocol.html Findbugs warnings: https://builds.apache.org/job/PreCommit-HBASE-Build/5829//artifact/trunk/patchprocess/newPatchFindbugsWarningshbase-server.html Findbugs warnings: https://builds.apache.org/job/PreCommit-HBASE-Build/5829//artifact/trunk/patchprocess/newPatchFindbugsWarningshbase-hadoop1-compat.html Findbugs warnings: https://builds.apache.org/job/PreCommit-HBASE-Build/5829//artifact/trunk/patchprocess/newPatchFindbugsWarningshbase-examples.html Findbugs warnings: https://builds.apache.org/job/PreCommit-HBASE-Build/5829//artifact/trunk/patchprocess/newPatchFindbugsWarningshbase-hadoop-compat.html Console output: https://builds.apache.org/job/PreCommit-HBASE-Build/5829//console This message is automatically generated.
        Hide
        Hudson added a comment -

        Integrated in hbase-0.95-on-hadoop2 #111 (See https://builds.apache.org/job/hbase-0.95-on-hadoop2/111/)
        HBASE-8613 Improve logging when BindException is received at startup time (Revision 1486290)

        Result = FAILURE
        stack :
        Files :

        • /hbase/branches/0.95/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java
        Show
        Hudson added a comment - Integrated in hbase-0.95-on-hadoop2 #111 (See https://builds.apache.org/job/hbase-0.95-on-hadoop2/111/ ) HBASE-8613 Improve logging when BindException is received at startup time (Revision 1486290) Result = FAILURE stack : Files : /hbase/branches/0.95/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java
        Hide
        Hudson added a comment -

        Integrated in HBase-TRUNK-on-Hadoop-2.0.0 #542 (See https://builds.apache.org/job/HBase-TRUNK-on-Hadoop-2.0.0/542/)
        HBASE-8613 Improve logging when BindException is received at startup time (Revision 1486289)

        Result = FAILURE
        stack :
        Files :

        • /hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java
        Show
        Hudson added a comment - Integrated in HBase-TRUNK-on-Hadoop-2.0.0 #542 (See https://builds.apache.org/job/HBase-TRUNK-on-Hadoop-2.0.0/542/ ) HBASE-8613 Improve logging when BindException is received at startup time (Revision 1486289) Result = FAILURE stack : Files : /hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java
        Hide
        Hudson added a comment -

        Integrated in HBase-TRUNK #4143 (See https://builds.apache.org/job/HBase-TRUNK/4143/)
        HBASE-8613 Improve logging when BindException is received at startup time (Revision 1486289)

        Result = SUCCESS
        stack :
        Files :

        • /hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java
        Show
        Hudson added a comment - Integrated in HBase-TRUNK #4143 (See https://builds.apache.org/job/HBase-TRUNK/4143/ ) HBASE-8613 Improve logging when BindException is received at startup time (Revision 1486289) Result = SUCCESS stack : Files : /hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java
        Hide
        Hudson added a comment -

        Integrated in hbase-0.95 #215 (See https://builds.apache.org/job/hbase-0.95/215/)
        HBASE-8613 Improve logging when BindException is received at startup time (Revision 1486290)

        Result = FAILURE
        stack :
        Files :

        • /hbase/branches/0.95/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java
        Show
        Hudson added a comment - Integrated in hbase-0.95 #215 (See https://builds.apache.org/job/hbase-0.95/215/ ) HBASE-8613 Improve logging when BindException is received at startup time (Revision 1486290) Result = FAILURE stack : Files : /hbase/branches/0.95/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java

          People

          • Assignee:
            Jean-Marc Spaggiari
            Reporter:
            Jean-Marc Spaggiari
          • Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development