java.net.BindException: Address already in use

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

,
Expert tip

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

,
Expert 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.

Solutions on the web

via incubator-hama-user by Edward J. Yoon, 1 year ago
via incubator-hama-user by Himanshu Gahlot, 1 year ago
via incubator-hama-user by Himanshu Gahlot, 1 year ago
via incubator-hama-user by Edward J. Yoon, 1 year ago
via incubator-hama-user by Himanshu Gahlot, 1 year ago
via incubator-hama-user by Himanshu Gahlot, 1 year ago
java.net.BindException: Address already in use
at sun.nio.ch.Net.bind(Native Method)
at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:119)
at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:59)
at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:52)
at org.apache.zookeeper.server.NIOServerCnxn$Factory.(NIOServerCnxn.java:144)
at org.apache.hama.zookeeper.QuorumPeer.runZKServer(QuorumPeer.java:80)
at org.apache.hama.zookeeper.QuorumPeer.run(QuorumPeer.java:70)
at org.apache.hama.ZooKeeperRunner.run(ZooKeeperRunner.java:36)
at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
at org.apache.hama.ZooKeeperRunner.main(ZooKeeperRunner.java:41)

Users with the same issue

3 times, 5 months ago
9 times, 5 months ago
Samebug visitor profile picture
Unknown user
Once, 6 months ago

Write tip

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