java.net.ConnectException: Connection refused

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,

Check if your MongoDB is available.

,
via GitHub by rawlingsj

host port isnt set

Solutions on the web

via hadoop-pig-user by Travis Brady, 1 year ago
Connection refused
via apache.org by Unknown author, 2 years ago
via giraph-user by Avery Ching, 1 year ago
via JIRA by Egor Kolesnikov, 1 year ago
Connection refused
java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:432)
at java.net.Socket.connect(Socket.java:520)
at org.apache.hadoop.ipc.Client$Connection.setupIOstreams(Client.java:152)
at org.apache.hadoop.ipc.Client.getConnection(Client.java:542)
at org.apache.hadoop.ipc.Client.call(Client.java:471)
at org.apache.hadoop.dfs.$Proxy0.getProtocolVersion(Unknown Source)
at org.apache.hadoop.dfs.DFSClient.createNamenode(DFSClient.java:147)
at org.apache.hadoop.dfs.DFSClient.(DFSClient.java:161)
at org.apache.hadoop.dfs.DistributedFileSystem.initialize(DistributedFileSystem.java:65)
at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:159)
at org.apache.hadoop.fs.FileSystem.getNamed(FileSystem.java:118)
at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:90)
at org.apache.pig.backend.hadoop.datastorage.HDataStorage.(HDataStorage.java:36)
at org.apache.pig.backend.hadoop.executionengine.HExecutionEngine.init(HExecutionEngine.java:140)
at org.apache.pig.impl.PigContext.connect(PigContext.java:182)
at org.apache.pig.PigServer.(PigServer.java:123)
at org.apache.pig.tools.grunt.Grunt.(Grunt.java:37)
at org.apache.pig.Main.main(Main.java:245)

Users with the same issue

Once, 2 months ago
2 times, 9 months ago
Once, 11 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.