java.net.ConnectException: Call From ip-172-31-8-103.us-west-1.compute.internal/172.31.8.103 to localhost:8020 failed on connection exception: java.net.ConnectException: Connection refused; For more details see: http://wiki.apache.org/hadoop/ConnectionRefused

tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Hadoop connection refused when a job is executed

    Stack Overflow | 6 months ago | Rain Fitzgerald
    java.net.ConnectException: Call From ip-172-31-8-103.us-west-1.compute.internal/172.31.8.103 to localhost:8020 failed on connection exception: java.net.ConnectException: Connection refused; For more details see: http://wiki.apache.org/hadoop/ConnectionRefused
  2. 0

    Hive is not starting and show errors

    Stack Overflow | 12 months ago | codin
    java.lang.RuntimeException: java.net.ConnectException: Call From hadoop/10.2.0.15 to localhost:9000 failed on connection exception: java.net.ConnectException: Connection refused; For more details see: http://wiki.apache.org/hadoop/ConnectionRefused
  3. 0

    Geting an error related to hive metastore when starting spark-shell - Hortonworks

    hortonworks.com | 10 months ago
    java.lang.RuntimeException: java.net.ConnectException: Call From hadoop/10.2.0.15 to localhost:9000 failed on connection exception: java.net.ConnectException: Connection refused; For more details see: http://wiki.apache.org/hadoop/ConnectionRefused
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Error running batch job with spark-submit

    GitHub | 4 months ago | kitgary
    java.net.ConnectException: Call From lambda-pluralsight/127.0.0.1 to lambda-pluralsight:9000 failed on connection exception: java.net.ConnectException: Connection refused; For more details see: http://wiki.apache.org/hadoop/ConnectionRefused
  6. 0

    Failed to use Spark shell

    Stack Overflow | 6 months ago | Marko
    java.net.ConnectException: Call From marko/127.0.1.1 to localhost:8020 failed on connection exception: java.net.ConnectException: Connection refused; For more details see: http://wiki.apache.org/hadoop/ConnectionRefused

  1. arturgajowy 125 times, last 4 days ago
  2. jstrayer 2 times, last 6 days ago
  3. chenjunjun 1 times, last 2 weeks ago
  4. Hronom 2 times, last 2 months ago
  5. batwalrus76 33 times, last 3 months ago
16 more registered users
79 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.net.ConnectException

    Connection refused

    at sun.nio.ch.SocketChannelImpl.checkConnect()
  2. Java RT
    SocketChannelImpl.finishConnect
    1. sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
    2. sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:717)
    2 frames
  3. Hadoop
    ProtobufRpcEngine$Invoker.invoke
    1. org.apache.hadoop.net.SocketIOWithTimeout.connect(SocketIOWithTimeout.java:206)
    2. org.apache.hadoop.net.NetUtils.connect(NetUtils.java:531)
    3. org.apache.hadoop.net.NetUtils.connect(NetUtils.java:495)
    4. org.apache.hadoop.ipc.Client$Connection.setupConnection(Client.java:614)
    5. org.apache.hadoop.ipc.Client$Connection.setupIOstreams(Client.java:712)
    6. org.apache.hadoop.ipc.Client$Connection.access$2900(Client.java:375)
    7. org.apache.hadoop.ipc.Client.getConnection(Client.java:1528)
    8. org.apache.hadoop.ipc.Client.call(Client.java:1451)
    9. org.apache.hadoop.ipc.Client.call(Client.java:1412)
    10. org.apache.hadoop.ipc.ProtobufRpcEngine$Invoker.invoke(ProtobufRpcEngine.java:229)
    10 frames
  4. com.sun.proxy
    $Proxy9.getFileInfo
    1. com.sun.proxy.$Proxy9.getFileInfo(Unknown Source)
    1 frame
  5. Apache Hadoop HDFS
    ClientNamenodeProtocolTranslatorPB.getFileInfo
    1. org.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB.getFileInfo(ClientNamenodeProtocolTranslatorPB.java:771)
    1 frame
  6. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    4. java.lang.reflect.Method.invoke(Method.java:498)
    4 frames
  7. Hadoop
    RetryInvocationHandler.invoke
    1. org.apache.hadoop.io.retry.RetryInvocationHandler.invokeMethod(RetryInvocationHandler.java:191)
    2. org.apache.hadoop.io.retry.RetryInvocationHandler.invoke(RetryInvocationHandler.java:102)
    2 frames
  8. com.sun.proxy
    $Proxy10.getFileInfo
    1. com.sun.proxy.$Proxy10.getFileInfo(Unknown Source)
    1 frame
  9. Apache Hadoop HDFS
    DistributedFileSystem$22.doCall
    1. org.apache.hadoop.hdfs.DFSClient.getFileInfo(DFSClient.java:2108)
    2. org.apache.hadoop.hdfs.DistributedFileSystem$22.doCall(DistributedFileSystem.java:1305)
    3. org.apache.hadoop.hdfs.DistributedFileSystem$22.doCall(DistributedFileSystem.java:1301)
    3 frames
  10. Hadoop
    FileSystemLinkResolver.resolve
    1. org.apache.hadoop.fs.FileSystemLinkResolver.resolve(FileSystemLinkResolver.java:81)
    1 frame
  11. Apache Hadoop HDFS
    DistributedFileSystem.getFileStatus
    1. org.apache.hadoop.hdfs.DistributedFileSystem.getFileStatus(DistributedFileSystem.java:1301)
    1 frame
  12. Hadoop
    FileSystem.exists
    1. org.apache.hadoop.fs.FileSystem.exists(FileSystem.java:1424)
    1 frame
  13. Hadoop
    Job$10.run
    1. org.apache.hadoop.mapreduce.lib.output.FileOutputFormat.checkOutputSpecs(FileOutputFormat.java:145)
    2. org.apache.hadoop.mapreduce.JobSubmitter.checkSpecs(JobSubmitter.java:266)
    3. org.apache.hadoop.mapreduce.JobSubmitter.submitJobInternal(JobSubmitter.java:139)
    4. org.apache.hadoop.mapreduce.Job$10.run(Job.java:1290)
    5. org.apache.hadoop.mapreduce.Job$10.run(Job.java:1287)
    5 frames
  14. Java RT
    Subject.doAs
    1. java.security.AccessController.doPrivileged(Native Method)
    2. javax.security.auth.Subject.doAs(Subject.java:422)
    2 frames
  15. Hadoop
    UserGroupInformation.doAs
    1. org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1657)
    1 frame
  16. Hadoop
    Job.waitForCompletion
    1. org.apache.hadoop.mapreduce.Job.submit(Job.java:1287)
    2. org.apache.hadoop.mapreduce.Job.waitForCompletion(Job.java:1308)
    2 frames
  17. Unknown
    WordCount.main
    1. WordCount.main(WordCount.java:39)
    1 frame