java.net.ConnectException

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.

  • Test case 'hadoopUsage.BenchmarkTest.testBenchmark' failed for 'Connection refused' Error Following is copied from http://bdc-jenkins.eng.vmware.com/view/Re-Architecture/job/serengeti-dawn-nightly/32/testngreports/com.vmware.qe.aurora.tests.hadoopUsage/com.vmware.qe.aurora.tests.hadoopUsage.BenchmarkTest/testBenchmark/? =================================================================== Exception com.vmware.qe.aurora.exceptions.ServiceException Message: Execute command on remote host failed. 13/02/23 23:45:30 INFO ipc.Client: Retrying connect to server: 10.111.57.86/10.111.57.86:8021. Already tried 0 time(s). 13/02/23 23:45:31 INFO ipc.Client: Retrying connect to server: 10.111.57.86/10.111.57.86:8021. Already tried 1 time(s). 13/02/23 23:45:32 INFO ipc.Client: Retrying connect to server: 10.111.57.86/10.111.57.86:8021. Already tried 2 time(s). 13/02/23 23:45:33 INFO ipc.Client: Retrying connect to server: 10.111.57.86/10.111.57.86:8021. Already tried 3 time(s). 13/02/23 23:45:34 INFO ipc.Client: Retrying connect to server: 10.111.57.86/10.111.57.86:8021. Already tried 4 time(s). 13/02/23 23:45:35 INFO ipc.Client: Retrying connect to server: 10.111.57.86/10.111.57.86:8021. Already tried 5 time(s). 13/02/23 23:45:36 INFO ipc.Client: Retrying connect to server: 10.111.57.86/10.111.57.86:8021. Already tried 6 time(s). 13/02/23 23:45:37 INFO ipc.Client: Retrying connect to server: 10.111.57.86/10.111.57.86:8021. Already tried 7 time(s). 13/02/23 23:45:38 INFO ipc.Client: Retrying connect to server: 10.111.57.86/10.111.57.86:8021. Already tried 8 time(s). 13/02/23 23:45:39 INFO ipc.Client: Retrying connect to server: 10.111.57.86/10.111.57.86:8021. Already tried 9 time(s). java.net.ConnectException: Call to 10.111.57.86/10.111.57.86:8021 failed on connection exception: java.net.ConnectException: Connection refused at org.apache.hadoop.ipc.Client.wrapException(Client.java:1095) at org.apache.hadoop.ipc.Client.call(Client.java:1071) at org.apache.hadoop.ipc.RPC$Invoker.invoke(RPC.java:225) at org.apache.hadoop.mapred.$Proxy2.getProtocolVersion(Unknown Source) at org.apache.hadoop.ipc.RPC.getProxy(RPC.java:396) at org.apache.hadoop.ipc.RPC.getProxy(RPC.java:379) at org.apache.hadoop.mapred.JobClient.createRPCProxy(JobClient.java:480) at org.apache.hadoop.mapred.JobClient.init(JobClient.java:474) at org.apache.hadoop.mapred.JobClient.<init>(JobClient.java:457) at org.apache.hadoop.mapred.JobClient.runJob(JobClient.java:1260) at org.apache.hadoop.examples.terasort.TeraGen.run(TeraGen.java:352) at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65) at org.apache.hadoop.examples.terasort.TeraGen.main(TeraGen.java:357) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.hadoop.util.ProgramDriver$ProgramDescription.invoke(ProgramDriver.java:68) at org.apache.hadoop.util.ProgramDriver.driver(ProgramDriver.java:139) at org.apache.hadoop.examples.ExampleDriver.main(ExampleDriver.java:64) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.hadoop.util.RunJar.main(RunJar.java:156) Caused by: java.net.ConnectException: Connection refused at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method) at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:567) at org.apache.hadoop.net.SocketIOWithTimeout.connect(SocketIOWithTimeout.java:206) at org.apache.hadoop.net.NetUtils.connect(NetUtils.java:489) at org.apache.hadoop.ipc.Client$Connection.setupConnection(Client.java:434) at org.apache.hadoop.ipc.Client$Connection.setupIOstreams(Client.java:560) at org.apache.hadoop.ipc.Client$Connection.access$2000(Client.java:184) at org.apache.hadoop.ipc.Client.getConnection(Client.java:1202) at org.apache.hadoop.ipc.Client.call(Client.java:1046) ... 23 more Stacktrace: at com.vmware.qe.aurora.framework.impl.remote.RemoteHost.execCmd(RemoteHost.java:47) at com.vmware.qe.aurora.framework.impl.verificator.TeraSortVerificator.runTeraSort(TeraSortVerificator.java:22) at com.vmware.qe.aurora.tests.hadoopUsage.BenchmarkTest.testBenchmark(BenchmarkTest.java:14) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:80) at org.testng.internal.Invoker.invokeMethod(Invoker.java:673) at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:842) at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1166) ===================================================================
    via by Wei Hu (QE),
  • Test case 'hadoopUsage.BenchmarkTest.testBenchmark' failed for 'Connection refused' Error Following is copied from http://bdc-jenkins.eng.vmware.com/view/Re-Architecture/job/serengeti-dawn-nightly/32/testngreports/com.vmware.qe.aurora.tests.hadoopUsage/com.vmware.qe.aurora.tests.hadoopUsage.BenchmarkTest/testBenchmark/? =================================================================== Exception com.vmware.qe.aurora.exceptions.ServiceException Message: Execute command on remote host failed. 13/02/23 23:45:30 INFO ipc.Client: Retrying connect to server: 10.111.57.86/10.111.57.86:8021. Already tried 0 time(s). 13/02/23 23:45:31 INFO ipc.Client: Retrying connect to server: 10.111.57.86/10.111.57.86:8021. Already tried 1 time(s). 13/02/23 23:45:32 INFO ipc.Client: Retrying connect to server: 10.111.57.86/10.111.57.86:8021. Already tried 2 time(s). 13/02/23 23:45:33 INFO ipc.Client: Retrying connect to server: 10.111.57.86/10.111.57.86:8021. Already tried 3 time(s). 13/02/23 23:45:34 INFO ipc.Client: Retrying connect to server: 10.111.57.86/10.111.57.86:8021. Already tried 4 time(s). 13/02/23 23:45:35 INFO ipc.Client: Retrying connect to server: 10.111.57.86/10.111.57.86:8021. Already tried 5 time(s). 13/02/23 23:45:36 INFO ipc.Client: Retrying connect to server: 10.111.57.86/10.111.57.86:8021. Already tried 6 time(s). 13/02/23 23:45:37 INFO ipc.Client: Retrying connect to server: 10.111.57.86/10.111.57.86:8021. Already tried 7 time(s). 13/02/23 23:45:38 INFO ipc.Client: Retrying connect to server: 10.111.57.86/10.111.57.86:8021. Already tried 8 time(s). 13/02/23 23:45:39 INFO ipc.Client: Retrying connect to server: 10.111.57.86/10.111.57.86:8021. Already tried 9 time(s). java.net.ConnectException: Call to 10.111.57.86/10.111.57.86:8021 failed on connection exception: java.net.ConnectException: Connection refused at org.apache.hadoop.ipc.Client.wrapException(Client.java:1095) at org.apache.hadoop.ipc.Client.call(Client.java:1071) at org.apache.hadoop.ipc.RPC$Invoker.invoke(RPC.java:225) at org.apache.hadoop.mapred.$Proxy2.getProtocolVersion(Unknown Source) at org.apache.hadoop.ipc.RPC.getProxy(RPC.java:396) at org.apache.hadoop.ipc.RPC.getProxy(RPC.java:379) at org.apache.hadoop.mapred.JobClient.createRPCProxy(JobClient.java:480) at org.apache.hadoop.mapred.JobClient.init(JobClient.java:474) at org.apache.hadoop.mapred.JobClient.<init>(JobClient.java:457) at org.apache.hadoop.mapred.JobClient.runJob(JobClient.java:1260) at org.apache.hadoop.examples.terasort.TeraGen.run(TeraGen.java:352) at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65) at org.apache.hadoop.examples.terasort.TeraGen.main(TeraGen.java:357) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.hadoop.util.ProgramDriver$ProgramDescription.invoke(ProgramDriver.java:68) at org.apache.hadoop.util.ProgramDriver.driver(ProgramDriver.java:139) at org.apache.hadoop.examples.ExampleDriver.main(ExampleDriver.java:64) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.hadoop.util.RunJar.main(RunJar.java:156) Caused by: java.net.ConnectException: Connection refused at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method) at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:567) at org.apache.hadoop.net.SocketIOWithTimeout.connect(SocketIOWithTimeout.java:206) at org.apache.hadoop.net.NetUtils.connect(NetUtils.java:489) at org.apache.hadoop.ipc.Client$Connection.setupConnection(Client.java:434) at org.apache.hadoop.ipc.Client$Connection.setupIOstreams(Client.java:560) at org.apache.hadoop.ipc.Client$Connection.access$2000(Client.java:184) at org.apache.hadoop.ipc.Client.getConnection(Client.java:1202) at org.apache.hadoop.ipc.Client.call(Client.java:1046) ... 23 more Stacktrace: at com.vmware.qe.aurora.framework.impl.remote.RemoteHost.execCmd(RemoteHost.java:47) at com.vmware.qe.aurora.framework.impl.verificator.TeraSortVerificator.runTeraSort(TeraSortVerificator.java:22) at com.vmware.qe.aurora.tests.hadoopUsage.BenchmarkTest.testBenchmark(BenchmarkTest.java:14) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:80) at org.testng.internal.Invoker.invokeMethod(Invoker.java:673) at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:842) at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1166) ===================================================================
    via by Wei Hu (QE),
  • Error in Formatting NameNode
    via by Manish Maheshwari,
  • Re: hi
    via by Unknown author,
  • Hadoop Streaming Failed
    via by Unknown author,
    • java.net.ConnectException: Call to 10.111.57.86/10.111.57.86:8021 failed on connection exception: java.net.ConnectException: Connection refused at org.apache.hadoop.ipc.Client.wrapException(Client.java:1095) at org.apache.hadoop.ipc.Client.call(Client.java:1071) at org.apache.hadoop.ipc.RPC$Invoker.invoke(RPC.java:225) at org.apache.hadoop.mapred.$Proxy2.getProtocolVersion(Unknown Source) at org.apache.hadoop.ipc.RPC.getProxy(RPC.java:396) at org.apache.hadoop.ipc.RPC.getProxy(RPC.java:379) at org.apache.hadoop.mapred.JobClient.createRPCProxy(JobClient.java:480) at org.apache.hadoop.mapred.JobClient.init(JobClient.java:474) at org.apache.hadoop.mapred.JobClient.<init>(JobClient.java:457) at org.apache.hadoop.mapred.JobClient.runJob(JobClient.java:1260) at org.apache.hadoop.examples.terasort.TeraGen.run(TeraGen.java:352) at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65) at org.apache.hadoop.examples.terasort.TeraGen.main(TeraGen.java:357) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.hadoop.util.ProgramDriver$ProgramDescription.invoke(ProgramDriver.java:68) at org.apache.hadoop.util.ProgramDriver.driver(ProgramDriver.java:139) at org.apache.hadoop.examples.ExampleDriver.main(ExampleDriver.java:64) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.hadoop.util.RunJar.main(RunJar.java:156) Caused by: java.net.ConnectException: Connection refused at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method) at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:567) at org.apache.hadoop.net.SocketIOWithTimeout.connect(SocketIOWithTimeout.java:206) at org.apache.hadoop.net.NetUtils.connect(NetUtils.java:489) at org.apache.hadoop.ipc.Client$Connection.setupConnection(Client.java:434) at org.apache.hadoop.ipc.Client$Connection.setupIOstreams(Client.java:560) at org.apache.hadoop.ipc.Client$Connection.access$2000(Client.java:184) at org.apache.hadoop.ipc.Client.getConnection(Client.java:1202) at org.apache.hadoop.ipc.Client.call(Client.java:1046) ... 23 more

    Users with the same issue

    rprp
    44 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    nasimknasimk
    3475 times, last one,
    rocdayrocday
    2978 times, last one,
    batwalrus76batwalrus76
    108 times, last one,
    115 more bugmates