You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@nutch.apache.org by "Håvard W. Kongsgård" <h....@niap.no> on 2006/02/16 23:31:24 UTC
Problem/bug setting java_home in hadoop nightly 16.02.06
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
Re: Problem/bug setting java_home in hadoop nightly 16.02.06
Posted by "Håvard W. Kongsgård" <h....@niap.no>.
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
>
>
Re: Problem/bug setting java_home in hadoop nightly 16.02.06
Posted by Doug Cutting <cu...@apache.org>.
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