I\'m trying to install Hadoop on Ubuntu 11.10. I set the JAVA_HOME variable in the file conf/hadoop-env.sh to:
# export JAVA_HOME=
Here we provide simple steps to setup JAVA_HOME while installing of Hadoop
Step1: Goto Java library path /lib jvm
Then set the JAVA_HOME & PATH in .bashrc file
Source : http://commandstech.com/hadoop-error-java_home-is-not-set-and-could-not-be-found-in-hadoop-installation/
Step 2 : Once it is done then go with Hadoop env file then update it.
After once it is done then stop the daemons and start daemons once again.