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.

  • Trying to import file from non-hadoop cluster laptop web ui, shows the filesystem (ie, completes the file extension but fails during import) HTTPD: GET /2/ImportFiles2.html path=hdfs://192.168.1.164/ 04:27:00.714 # Session INFO WATER: ImportHDFS processing (hdfs://192.168.1.164/) 04:27:15.397 # Session ERRR WATER: + java.net.ConnectException: Call From shiva.0xdata.loc/192.168.1.39 to mr-0xb4.0xdata.loc:8020 failed on connection exception: java.net.ConnectException: Connection refused; For more details see: http://wiki.apache.org/hadoop/ConnectionRefused + at org.apache.hadoop.net.NetUtils.wrapException(NetUtils.java:727) + at org.apache.hadoop.ipc.Client.call(Client.java:1165) + at org.apache.hadoop.ipc.ProtobufRpcEngine$Invoker.invoke(ProtobufRpcEngine.java:184) + at $Proxy11.getFileInfo(Unknown Source) + at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) + at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.lang.reflect.Method.invoke(Method.java:601) + at org.apache.hadoop.io.retry.RetryInvocationHandler.invokeMethod(RetryInvocationHandler.java:165) + at org.apache.hadoop.io.retry.RetryInvocationHandler.invoke(RetryInvocationHandler.java:84) + at $Proxy11.getFileInfo(Unknown Source) + at org.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB.getFileInfo(ClientNamenodeProtocolTranslatorPB.java:612) + at org.apache.hadoop.hdfs.DFSClient.getFileInfo(DFSClient.java:1366) + at org.apache.hadoop.hdfs.DistributedFileSystem.getFileStatus(DistributedFileSystem.java:732) + at org.apache.hadoop.fs.FileSystem.exists(FileSystem.java:1197) + at water.persist.PersistHdfs.addFolder2(PersistHdfs.java:288) + at water.api.ImportFiles2.serveHdfs(ImportFiles2.java:87) + at water.api.ImportFiles2.serve(ImportFiles2.java:69) + at water.api.Request.serveGrid(Request.java:137) + at water.Request2.superServeGrid(Request2.java:478) + at water.Request2.serveGrid(Request2.java:399) + at water.api.Request.serve(Request.java:114) + at water.api.RequestServer.serve(RequestServer.java:372) + at water.NanoHTTPD$HTTPSession.run(NanoHTTPD.java:421) + at java.lang.Thread.run(Thread.java:722) + Caused by: java.net.ConnectException: Connection refused + at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method) + at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:692) + at org.apache.hadoop.net.SocketIOWithTimeout.connect(SocketIOWithTimeout.java:206) + at org.apache.hadoop.net.NetUtils.connect(NetUtils.java:524) + at org.apache.hadoop.net.NetUtils.connect(NetUtils.java:489) + at org.apache.hadoop.ipc.Client$Connection.setupConnection(Client.java:472) + at org.apache.hadoop.ipc.Client$Connection.setupIOstreams(Client.java:566) + at org.apache.hadoop.ipc.Client$Connection.access$2000(Client.java:215) + at org.apache.hadoop.ipc.Client.getConnection(Client.java:1271) + at org.apache.hadoop.ipc.Client.call(Client.java:1141)
    via by SriSatish Ambati,
  • Trying to import file from non-hadoop cluster laptop web ui, shows the filesystem (ie, completes the file extension but fails during import) HTTPD: GET /2/ImportFiles2.html path=hdfs://192.168.1.164/ 04:27:00.714 # Session INFO WATER: ImportHDFS processing (hdfs://192.168.1.164/) 04:27:15.397 # Session ERRR WATER: + java.net.ConnectException: Call From shiva.0xdata.loc/192.168.1.39 to mr-0xb4.0xdata.loc:8020 failed on connection exception: java.net.ConnectException: Connection refused; For more details see: http://wiki.apache.org/hadoop/ConnectionRefused + at org.apache.hadoop.net.NetUtils.wrapException(NetUtils.java:727) + at org.apache.hadoop.ipc.Client.call(Client.java:1165) + at org.apache.hadoop.ipc.ProtobufRpcEngine$Invoker.invoke(ProtobufRpcEngine.java:184) + at $Proxy11.getFileInfo(Unknown Source) + at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) + at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.lang.reflect.Method.invoke(Method.java:601) + at org.apache.hadoop.io.retry.RetryInvocationHandler.invokeMethod(RetryInvocationHandler.java:165) + at org.apache.hadoop.io.retry.RetryInvocationHandler.invoke(RetryInvocationHandler.java:84) + at $Proxy11.getFileInfo(Unknown Source) + at org.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB.getFileInfo(ClientNamenodeProtocolTranslatorPB.java:612) + at org.apache.hadoop.hdfs.DFSClient.getFileInfo(DFSClient.java:1366) + at org.apache.hadoop.hdfs.DistributedFileSystem.getFileStatus(DistributedFileSystem.java:732) + at org.apache.hadoop.fs.FileSystem.exists(FileSystem.java:1197) + at water.persist.PersistHdfs.addFolder2(PersistHdfs.java:288) + at water.api.ImportFiles2.serveHdfs(ImportFiles2.java:87) + at water.api.ImportFiles2.serve(ImportFiles2.java:69) + at water.api.Request.serveGrid(Request.java:137) + at water.Request2.superServeGrid(Request2.java:478) + at water.Request2.serveGrid(Request2.java:399) + at water.api.Request.serve(Request.java:114) + at water.api.RequestServer.serve(RequestServer.java:372) + at water.NanoHTTPD$HTTPSession.run(NanoHTTPD.java:421) + at java.lang.Thread.run(Thread.java:722) + Caused by: java.net.ConnectException: Connection refused + at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method) + at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:692) + at org.apache.hadoop.net.SocketIOWithTimeout.connect(SocketIOWithTimeout.java:206) + at org.apache.hadoop.net.NetUtils.connect(NetUtils.java:524) + at org.apache.hadoop.net.NetUtils.connect(NetUtils.java:489) + at org.apache.hadoop.ipc.Client$Connection.setupConnection(Client.java:472) + at org.apache.hadoop.ipc.Client$Connection.setupIOstreams(Client.java:566) + at org.apache.hadoop.ipc.Client$Connection.access$2000(Client.java:215) + at org.apache.hadoop.ipc.Client.getConnection(Client.java:1271) + at org.apache.hadoop.ipc.Client.call(Client.java:1141)
    via by SriSatish Ambati,
  • running hadoop wordcount program
    via Stack Overflow by nbbk
    ,
  • NodeManager on slave does not start
    via by Unknown author,
    • java.net.ConnectException: Call From shiva.0xdata.loc/192.168.1.39 to mr-0xb4.0xdata.loc:8020 failed on connection exception: java.net.ConnectException: Connection refused; For more details see: http://wiki.apache.org/hadoop/ConnectionRefused at org.apache.hadoop.net.NetUtils.wrapException(NetUtils.java:727) at org.apache.hadoop.ipc.Client.call(Client.java:1165) at org.apache.hadoop.ipc.ProtobufRpcEngine$Invoker.invoke(ProtobufRpcEngine.java:184) at $Proxy11.getFileInfo(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at org.apache.hadoop.io.retry.RetryInvocationHandler.invokeMethod(RetryInvocationHandler.java:165) at org.apache.hadoop.io.retry.RetryInvocationHandler.invoke(RetryInvocationHandler.java:84) at $Proxy11.getFileInfo(Unknown Source) at org.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB.getFileInfo(ClientNamenodeProtocolTranslatorPB.java:612) at org.apache.hadoop.hdfs.DFSClient.getFileInfo(DFSClient.java:1366) at org.apache.hadoop.hdfs.DistributedFileSystem.getFileStatus(DistributedFileSystem.java:732) at org.apache.hadoop.fs.FileSystem.exists(FileSystem.java:1197) at water.persist.PersistHdfs.addFolder2(PersistHdfs.java:288) at water.api.ImportFiles2.serveHdfs(ImportFiles2.java:87) at water.api.ImportFiles2.serve(ImportFiles2.java:69) at water.api.Request.serveGrid(Request.java:137) at water.Request2.superServeGrid(Request2.java:478) at water.Request2.serveGrid(Request2.java:399) at water.api.Request.serve(Request.java:114) at water.api.RequestServer.serve(RequestServer.java:372) at water.NanoHTTPD$HTTPSession.run(NanoHTTPD.java:421) at java.lang.Thread.run(Thread.java:722) Caused by: java.net.ConnectException: Connection refused at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method) at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:692) at org.apache.hadoop.net.SocketIOWithTimeout.connect(SocketIOWithTimeout.java:206) at org.apache.hadoop.net.NetUtils.connect(NetUtils.java:524) at org.apache.hadoop.net.NetUtils.connect(NetUtils.java:489) at org.apache.hadoop.ipc.Client$Connection.setupConnection(Client.java:472) at org.apache.hadoop.ipc.Client$Connection.setupIOstreams(Client.java:566) at org.apache.hadoop.ipc.Client$Connection.access$2000(Client.java:215) at org.apache.hadoop.ipc.Client.getConnection(Client.java:1271) at org.apache.hadoop.ipc.Client.call(Client.java:1141)

    Users with the same issue

    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    114 more bugmates