hadoop-common-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Simon <gsmst...@gmail.com>
Subject Re: JAVA_HOME is not set
Date Thu, 05 Jul 2012 17:06:37 GMT
Did you configure JAVA_HOME in file hadoop-env.sh?

Simon


On Thu, Jul 5, 2012 at 1:02 PM, Ying Huang <huangyingw@gmail.com> wrote:

>  According to your suggestion, I try following command, but still fail:
> --------------------------------------------------------------------
> root@ubuntu32:/usr/lib/hadoop# export
> JAVA_HOME=/usr/lib/jvm/java-7-openjdk-i386/jre
>
> root@ubuntu32:/usr/lib/hadoop# sudo -u hdfs hadoop namenode -format
> Error: JAVA_HOME is not set.
> root@ubuntu32:/usr/lib/hadoop# ls $JAVA_HOME -al
> total 20
> drwxr-xr-x 5 root root 4096 Jul  3 20:43 .
> drwxr-xr-x 5 root root 4096 Jul  3 20:43 ..
> lrwxrwxrwx 1 root root   50 May  2 20:14 ASSEMBLY_EXCEPTION ->
> ../../java-7-openjdk-common/jre/ASSEMBLY_EXCEPTION
> drwxr-xr-x 2 root root 4096 Jul  3 20:43 bin
> drwxr-xr-x 8 root root 4096 Jul  3 20:43 lib
> drwxr-xr-x 4 root root 4096 Jul  3 20:43 man
> lrwxrwxrwx 1 root root   50 May  2 20:14 THIRD_PARTY_README ->
> ../../java-7-openjdk-common/jre/THIRD_PARTY_README
> root@ubuntu32:/usr/lib/hadoop#
>
> --------------------------------------------------------------------
>
> On 07/05/2012 11:53 AM, Simon wrote:
>
> I think you should set  JAVA_HOME=/usr/lib/jvm/java-7-openjdk-i386/jre
>
>  JAVA_HOME is the base location of java, where it can find the java
> executable $JAVA_HOME/bin/java
>
>  Regards,
> Simon
>
>
> On Thu, Jul 5, 2012 at 12:42 PM, Ying Huang <huangyingw@gmail.com> wrote:
>
>> Hello,
>>     I am installing hadoop according to this page:
>> https://cwiki.apache.org/BIGTOP/how-to-install-hadoop-distribution-from-bigtop.html
>>     I think I have successfully installed hadoop on my Ubuntu 12.04 x64.
>>     Then I go to step Running Hadoop, bellowing is my operation step, why
>> it prompts that my JAVA_HOME is not set?
>>
>> ------------------------------------------------------------------------------------------
>> root@ubuntu32:/usr/lib/hadoop# export
>> JAVA_HOME=/usr/lib/jvm/java-7-openjdk-i386/jre/bin/java
>> root@ubuntu32:/usr/lib/hadoop# sudo -u hdfs hadoop namenode -format
>> Error: JAVA_HOME is not set.
>> root@ubuntu32:/usr/lib/hadoop# ls $JAVA_HOME -al
>> -rwxr-xr-x 1 root root 5588 May  2 20:14
>> /usr/lib/jvm/java-7-openjdk-i386/jre/bin/java
>> root@ubuntu32:/usr/lib/hadoop#
>>
>>
>> ------------------------------------------------------------------------------------------
>>
>>
>> --
>>
>>
>> Best Regards
>> Ying Huang
>>
>>
>
>
> --
>
>
> Best Regards
> Ying Huang
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message