java.net.ConnectException

tip

First of all, 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.

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

  • Re: Starting Zookeeper on Amazon EC2
    via by Something Something,
  • Re: Starting Zookeeper on Amazon EC2
    via by Something Something,
  • Re: Starting HBase in fully distributed mode...
    via by Something Something,
  • Re: Killing a zookeeper server
    via by Jean-Daniel Cryans,
  • Re: Killing a zookeeper server
    via by Patrick Hunt,
  • Re: Starting Zookeeper on Amazon EC2
    via by Something Something,
  • Re: Starting Zookeeper on Amazon EC2
    via by Patrick Hunt,
  • Re: Starting Zookeeper on Amazon EC2
    via by Patrick Hunt,
  • Re: Starting Zookeeper on Amazon EC2
    via by Something Something,
  • Re: Starting Zookeeper on Amazon EC2
    via by Patrick Hunt,
    • 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.connectAll(QuorumCnxManager.java:356) at org.apache.zookeeper.server.quorum.FastLeaderElection.lookForLeader(FastLeaderElection.java:603) at org.apache.zookeeper.server.quorum.QuorumPeer.run(QuorumPeer.java:488)

    Users with the same issue

    Unknown visitor1 times, last one,
    poroszd
    1 times, last one,
    Unknown visitor1 times, last one,
    Andreas Häber
    4 times, last one,
    Unknown visitor1 times, last one,
    1 more bugmates