Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-8613

Improve logging when BindException is received at startup time.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 0.98.0, 0.95.1
    • None
    • None
    • 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)
      

      Attachments

        1. HBASE-8613-v0-trunk.patch
          0.6 kB
          Jean-Marc Spaggiari

        Activity

          People

            jmspaggi Jean-Marc Spaggiari
            jmspaggi Jean-Marc Spaggiari
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: