java.net.BindException

If you like a tip written by other Samebug users, mark is as helpful! Marks help our algorithm provide you better solutions and also help other users.
tip

Try changing the port in core-site.xml from 9000 to 9001 as it seems port 9000 doesn't work.

tip

Change the connection port and ip adress. If you're trying to connect to your server from your own computer, check if you haven't already connected to the server in another instance.


rafael
tip

It might be that there's another process connecting to the same port you're trying to use, try to kill it or change the connection port.


rafael

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

  • Apache ZooKeeper Error status=1
    via Stack Overflow by ealeon
    ,
  • Zookeeper don`t start in cluster mode
    via Stack Overflow by Fabian Kn
    ,
  • Add some troubleshooting docs?
    via GitHub by mtscout6
    ,
  • Starting Jetty from Restlet in OSGi
    via Stack Overflow by jrwilliams
    ,
  • Wildfly 9 address already in use
    via Stack Overflow by user2630406
    ,
    • java.net.BindException: Address already in use at sun.nio.ch.Net.bind0(Native Method) at sun.nio.ch.Net.bind(Net.java:444) at sun.nio.ch.Net.bind(Net.java:436) at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:214) at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74) at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:67) at org.apache.zookeeper.server.NIOServerCnxnFactory.configure(NIOServerCnxnFactory.java:95) at org.apache.zookeeper.server.ZooKeeperServerMain.runFromConfig(ZooKeeperServerMain.java:116) at org.apache.zookeeper.server.ZooKeeperServerMain.initializeAndRun(ZooKeeperServerMain.java:91) at org.apache.zookeeper.server.ZooKeeperServerMain.main(ZooKeeperServerMain.java:53) at org.apache.zookeeper.server.quorum.QuorumPeerMain.initializeAndRun(QuorumPeerMain.java:121) at org.apache.zookeeper.server.quorum.QuorumPeerMain.main(QuorumPeerMain.java:79)

    Users with the same issue

    Handemelindo
    4 times, last one,
    bandoca
    122 times, last one,
    slash
    5 times, last one,
    rocday
    1 times, last one,
    batwalrus76
    1 times, last one,
    136 more bugmates