I\'m trying to install Hadoop on Ubuntu 11.10. I set the JAVA_HOME variable in the file conf/hadoop-env.sh to:
JAVA_HOME
conf/hadoop-env.sh
# export JAVA_HOME=
You should set JAVA_HOME in the hadoop-env.sh file also which is in the Hadoop configuration directory. By default the JAVA_HOME setting line is commented.
hadoop-env.sh