Search This Blog

Showing posts with label errors. Show all posts
Showing posts with label errors. Show all posts

Thursday, March 29, 2012

BindException java.net.BindException: Address already in use (Hadoop)

This error comes when the address with port no you have specified in Hadoop configuration is already being used by some other process, or may be other instance of Hadoop is running in some other user,
for getting information about the ip and port no you want to know you can give command as follows
netstat –nl | grep <portno> or <ip here>
This will the processing using the specific port no or IP address. for more options with netstat type on shell netstat -- help will give you all the options .
and to check if other instance of Hadoop is running type
sudo jps
this will list all the process of Hadoop running in other users.

Step by step process :

localhost: ssh: connect to host localhost port 22: Connection refusedapt-get install openssh-server

If you get this error :


localhost: ssh: connect to host localhost port 22: Connection refused


Run the folloing command from the terminal


->     sudo apt-get install openssh-server 

Package sun-java6-jdk is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source

If you get this error :

Package sun-java6-jdk is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source


Execute following commands :



  1. sudo apt-get install python-software-properties
  2. sudo add-apt-repository ppa:ferramroberto/java
  3. sudo apt-get update
  4. sudo apt-get install sun-java6-jdk
  5. sudo update-java-alternatives -s java-6-sun


:) Enjoy....

Featured Posts

Unlock Hidden Windows Startup and Shutdown Details : How to Enable Verbose Startup and Shutdown Messages in Windows 11

WINDOWS TROUBLESHOOTING · FULL GUIDE Unlock Hidden Windows Startup and Shutdown Details Enable Verbose Status...