Tags

Sunday, June 26, 2011

[SOLVED] Hadoop: Error: JAVA_HOME is not set.

Problem: 
Hadoop complains about not being able to find java (JAVA_HOME not set).

Error message: 
Error: JAVA_HOME is not set.

Fix: 
Edit $HADOOP_HOME/conf/hadoop-env.sh and set your JAVA_HOME directory accordingly. For default ubuntu install it would most likely be

export JAVA_HOME=/usr/lib/jvm/java-6-openjdk

Notes:
See http://wiki.apache.org/hadoop/GettingStartedWithHadoop for more

No comments: