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
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Nutch-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nutch-general