BindException/Check current Port/Socket in use

Your ads will be inserted here by

Easy Plugin for AdSense.

Please go to the plugin admin page to
Paste your ad code OR
Suppress this ad slot.

You can get a BindException Address already in use if a socket on a machine is already in use and a service (NameNode, JobTracker, DataNode, TaskTracker, HTTP Server, etc.) tries to create a sort on that same port to listen for incoming requests.

Use commands:

netstat -a -t --numeric-ports -p

netstat -ntl | grep 9000 

lsof -i:9000 //check which process is using a particular port

Read More