java.net.BindException: Address already in use localhost:

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 Ask Ubuntu by priyaudupi
, 1 year ago
Address already in use localhost:
via Google Groups by Praveen Bathala, 2 years ago
Address already in use
via Google Groups by sagar naik, 2 years ago
java.net.BindException: Address already in use localhost:
at sun.nio.ch.Net.bind(Native Method)
at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:137)
at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:77)
at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:70)
at org.apache.zookeeper.server.NIOServerCnxn$Factory.(NIOServerCnxn.java:122)
at org.apache.hadoop.hbase.zookeeper.HQuorumPeer.runZKServer(HQuorumPeer.java:85)

Users with the same issue

4 times, 1 year ago
Once, 14 hours ago
64 times, 3 days ago
Once, 3 days ago
8 times, 4 days ago
151 more bugmates

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