Thanks it worked. Is there any other path I need to set?

# The java implementation to use.
export JAVA_HOME=/usr/lib/java



Doug Cutting wrote:

Have you edited conf/hadoop-env.sh, and defined JAVA_HOME there?

Doug

Håvard W. Kongsgård wrote:

I am unable to set java_home in bin/hadoop, is there a bug? I have used nutch 0.7.1 with the same java path.


"localhost: Error: JAVA_HOME is not set."


if [ -f "$HADOOP_HOME/conf/hadoop-env.sh" ]; then
 source ${HADOOP_HOME}/conf/hadoop-env.sh
fi

# some Java parameters
if [ "$JAVA_HOME" != "/usr/lib/java" ]; then
 #echo "run java in $JAVA_HOME"
 JAVA_HOME=$JAVA_HOME
fi

if [ "$JAVA_HOME" = "" ]; then
 echo "Error: JAVA_HOME is not set."
 exit 1
fi

JAVA=$JAVA_HOME/bin/java
JAVA_HEAP_MAX=-Xmx1000m

System: SUSE 10 64-bit | Java 1.4.2



Reply via email to