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

  1. ,
    Expert tip

    Check if your firewall is not blocking your connection. If it's not, you might need to explicitly set advertised.host.name to advertised.host.name = yourIpAddress, this forces the hosts returned to be the resolvable IP address of your VM.

Solutions on the web

via hive-user by Adarsh Sharma, 1 year ago
via hive-user by Jean-Daniel Cryans, 7 months ago
via hive-user by Adarsh Sharma, 7 months ago
via hive-user by Jean-Daniel Cryans, 7 months ago
via hive-user by Adarsh Sharma, 1 year ago
via hive-user by Adarsh Sharma, 1 year ago
java.net.ConnectException: Connection refused	at sun.nio.ch.Net.connect(Native Method)	at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:507)	at java.nio.channels.SocketChannel.open(SocketChannel.java:146)	at org.apache.zookeeper.server.quorum.QuorumCnxManager.connectOne(QuorumCnxManager.java:323)	at org.apache.zookeeper.server.quorum.QuorumCnxManager.toSend(QuorumCnxManager.java:302)	at org.apache.zookeeper.server.quorum.FastLeaderElection$Messenger$WorkerSender.process(FastLeaderElection.java:323)	at org.apache.zookeeper.server.quorum.FastLeaderElection$Messenger$WorkerSender.run(FastLeaderElection.java:296)	at java.lang.Thread.run(Thread.java:619)