FAQ
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 wrote:

Hello,
I am installing hadoop according to this page:
https://cwiki.apache.org/**BIGTOP/how-to-install-hadoop-**
distribution-from-bigtop.html<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

Search Discussions

Discussion Posts

Previous

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 8 of 15 | next ›
Discussion Overview
groupcommon-user @
categorieshadoop
postedJul 5, '12 at 3:03p
activeJul 5, '12 at 8:11p
posts15
users9
websitehadoop.apache.org...
irc#hadoop

People

Translate

site design / logo © 2022 Grokbase