java.net.ConnectException

If you like a tip written by other Samebug users, mark is as helpful! Marks help our algorithm provide you better solutions and also help other users.
tip

This was a bug at HBase 1.0.1, it has been patched, so an update to 1.0.2 or further should solve the problem. URL for the Jira thread: https://goo.gl/c5oa6f

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

  • HBase Java Api gets stuck at put()
    via Stack Overflow by GregStone
    ,
  • GitHub comment 22#171450398
    via GitHub by mihairaulea
    ,
  • quickstart error
    via GitHub by liuhaif
    ,
  • Failure to connect to Elasticsearch should be logged at an ERROR level rather an an INFO: {noformat} 2016-05-18 18:02:46,274 INFO [pool-5-thread-1] c.a.b.s.s.i.t.DefaultElasticsearchConnectionTester Testing connection with Elasticsearch failed due to exception java.util.concurrent.CompletionException: java.net.ConnectException: Connection refused: no further information at java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:292) ~[na:1.8.0_65] at java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:308) ~[na:1.8.0_65] at java.util.concurrent.CompletableFuture.uniApply(CompletableFuture.java:593) ~[na:1.8.0_65] at java.util.concurrent.CompletableFuture$UniApply.tryFire(CompletableFuture.java:577) ~[na:1.8.0_65] at java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:474) ~[na:1.8.0_65] at java.util.concurrent.CompletableFuture.completeExceptionally(CompletableFuture.java:1977) ~[na:1.8.0_65] at com.atlassian.elasticsearch.client.apache.httpclient.ApacheRequestExecutor$1.failed(ApacheRequestExecutor.java:144) ~[bitbucket-search-common-2.0.0.jar:na] at org.apache.http.concurrent.BasicFuture.failed(BasicFuture.java:134) ~[bitbucket-search-common-2.0.0.jar:4.4.4] at org.apache.http.impl.nio.client.AbstractClientExchangeHandler.failed(AbstractClientExchangeHandler.java:414) ~[bitbucket-search-common-2.0.0.jar:na] at org.apache.http.impl.nio.client.AbstractClientExchangeHandler.connectionRequestFailed(AbstractClientExchangeHandler.java:330) ~[bitbucket-search-common-2.0.0.jar:na] at org.apache.http.impl.nio.client.AbstractClientExchangeHandler.access$100(AbstractClientExchangeHandler.java:61) ~[bitbucket-search-common-2.0.0.jar:na] at org.apache.http.impl.nio.client.AbstractClientExchangeHandler$1.failed(AbstractClientExchangeHandler.java:373) ~[bitbucket-search-common-2.0.0.jar:na] at org.apache.http.concurrent.BasicFuture.failed(BasicFuture.java:134) ~[bitbucket-search-common-2.0.0.jar:4.4.4] at org.apache.http.impl.nio.conn.PoolingNHttpClientConnectionManager$InternalPoolEntryCallback.failed(PoolingNHttpClientConnectionManager.java:503) ~[bitbucket-search-common-2.0.0.jar:na] at org.apache.http.concurrent.BasicFuture.failed(BasicFuture.java:134) ~[bitbucket-search-common-2.0.0.jar:4.4.4] at org.apache.http.nio.pool.RouteSpecificPool.failed(RouteSpecificPool.java:165) ~[bitbucket-search-common-2.0.0.jar:na] at org.apache.http.nio.pool.AbstractNIOConnPool.requestFailed(AbstractNIOConnPool.java:541) ~[bitbucket-search-common-2.0.0.jar:na] at org.apache.http.nio.pool.AbstractNIOConnPool$InternalSessionRequestCallback.failed(AbstractNIOConnPool.java:816) ~[bitbucket-search-common-2.0.0.jar:na] at org.apache.http.impl.nio.reactor.SessionRequestImpl.failed(SessionRequestImpl.java:159) ~[bitbucket-search-common-2.0.0.jar:na] at org.apache.http.impl.nio.reactor.DefaultConnectingIOReactor.processEvent(DefaultConnectingIOReactor.java:175) ~[bitbucket-search-common-2.0.0.jar:na] at org.apache.http.impl.nio.reactor.DefaultConnectingIOReactor.processEvents(DefaultConnectingIOReactor.java:147) ~[bitbucket-search-common-2.0.0.jar:na] at org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor.execute(AbstractMultiworkerIOReactor.java:350) ~[bitbucket-search-common-2.0.0.jar:na] at org.apache.http.impl.nio.conn.PoolingNHttpClientConnectionManager.execute(PoolingNHttpClientConnectionManager.java:191) ~[bitbucket-search-common-2.0.0.jar:na] at org.apache.http.impl.nio.client.CloseableHttpAsyncClientBase$1.run(CloseableHttpAsyncClientBase.java:64) ~[bitbucket-search-common-2.0.0.jar:na] at java.lang.Thread.run(Thread.java:745) ~[na:1.8.0_65] Caused by: java.net.ConnectException: Connection refused: no further information at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method) ~[na:1.8.0_65] at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:717) ~[na:1.8.0_65] at org.apache.http.impl.nio.reactor.DefaultConnectingIOReactor.processEvent(DefaultConnectingIOReactor.java:173) ~[bitbucket-search-common-2.0.0.jar:na] ... 5 common frames omitted {noformat}
    via by Gurleen Anand [Atlassian],
  • Hbase Connection Issue?
    via GitHub by crazedmeph
    ,
  • Failure to connect to Elasticsearch should be logged at an ERROR level rather an an INFO: {noformat} 2016-05-18 18:02:46,274 INFO [pool-5-thread-1] c.a.b.s.s.i.t.DefaultElasticsearchConnectionTester Testing connection with Elasticsearch failed due to exception java.util.concurrent.CompletionException: java.net.ConnectException: Connection refused: no further information at java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:292) ~[na:1.8.0_65] at java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:308) ~[na:1.8.0_65] at java.util.concurrent.CompletableFuture.uniApply(CompletableFuture.java:593) ~[na:1.8.0_65] at java.util.concurrent.CompletableFuture$UniApply.tryFire(CompletableFuture.java:577) ~[na:1.8.0_65] at java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:474) ~[na:1.8.0_65] at java.util.concurrent.CompletableFuture.completeExceptionally(CompletableFuture.java:1977) ~[na:1.8.0_65] at com.atlassian.elasticsearch.client.apache.httpclient.ApacheRequestExecutor$1.failed(ApacheRequestExecutor.java:144) ~[bitbucket-search-common-2.0.0.jar:na] at org.apache.http.concurrent.BasicFuture.failed(BasicFuture.java:134) ~[bitbucket-search-common-2.0.0.jar:4.4.4] at org.apache.http.impl.nio.client.AbstractClientExchangeHandler.failed(AbstractClientExchangeHandler.java:414) ~[bitbucket-search-common-2.0.0.jar:na] at org.apache.http.impl.nio.client.AbstractClientExchangeHandler.connectionRequestFailed(AbstractClientExchangeHandler.java:330) ~[bitbucket-search-common-2.0.0.jar:na] at org.apache.http.impl.nio.client.AbstractClientExchangeHandler.access$100(AbstractClientExchangeHandler.java:61) ~[bitbucket-search-common-2.0.0.jar:na] at org.apache.http.impl.nio.client.AbstractClientExchangeHandler$1.failed(AbstractClientExchangeHandler.java:373) ~[bitbucket-search-common-2.0.0.jar:na] at org.apache.http.concurrent.BasicFuture.failed(BasicFuture.java:134) ~[bitbucket-search-common-2.0.0.jar:4.4.4] at org.apache.http.impl.nio.conn.PoolingNHttpClientConnectionManager$InternalPoolEntryCallback.failed(PoolingNHttpClientConnectionManager.java:503) ~[bitbucket-search-common-2.0.0.jar:na] at org.apache.http.concurrent.BasicFuture.failed(BasicFuture.java:134) ~[bitbucket-search-common-2.0.0.jar:4.4.4] at org.apache.http.nio.pool.RouteSpecificPool.failed(RouteSpecificPool.java:165) ~[bitbucket-search-common-2.0.0.jar:na] at org.apache.http.nio.pool.AbstractNIOConnPool.requestFailed(AbstractNIOConnPool.java:541) ~[bitbucket-search-common-2.0.0.jar:na] at org.apache.http.nio.pool.AbstractNIOConnPool$InternalSessionRequestCallback.failed(AbstractNIOConnPool.java:816) ~[bitbucket-search-common-2.0.0.jar:na] at org.apache.http.impl.nio.reactor.SessionRequestImpl.failed(SessionRequestImpl.java:159) ~[bitbucket-search-common-2.0.0.jar:na] at org.apache.http.impl.nio.reactor.DefaultConnectingIOReactor.processEvent(DefaultConnectingIOReactor.java:175) ~[bitbucket-search-common-2.0.0.jar:na] at org.apache.http.impl.nio.reactor.DefaultConnectingIOReactor.processEvents(DefaultConnectingIOReactor.java:147) ~[bitbucket-search-common-2.0.0.jar:na] at org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor.execute(AbstractMultiworkerIOReactor.java:350) ~[bitbucket-search-common-2.0.0.jar:na] at org.apache.http.impl.nio.conn.PoolingNHttpClientConnectionManager.execute(PoolingNHttpClientConnectionManager.java:191) ~[bitbucket-search-common-2.0.0.jar:na] at org.apache.http.impl.nio.client.CloseableHttpAsyncClientBase$1.run(CloseableHttpAsyncClientBase.java:64) ~[bitbucket-search-common-2.0.0.jar:na] at java.lang.Thread.run(Thread.java:745) ~[na:1.8.0_65] Caused by: java.net.ConnectException: Connection refused: no further information at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method) ~[na:1.8.0_65] at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:717) ~[na:1.8.0_65] at org.apache.http.impl.nio.reactor.DefaultConnectingIOReactor.processEvent(DefaultConnectingIOReactor.java:173) ~[bitbucket-search-common-2.0.0.jar:na] ... 5 common frames omitted {noformat}
    via by Gurleen Anand,
    • java.net.ConnectException: Connection refused: no further information at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method) at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:717) at org.apache.hadoop.hbase.shaded.org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:361) at org.apache.hadoop.hbase.shaded.org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1081)

    Users with the same issue

    jf-ast
    7 times, last one,
    Raggyman
    30496 times, last one,
    nolessan
    9 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor2 times, last one,
    114 more bugmates