Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 Search Hadoop and all its subprojects:

Switch to Threaded View
Hadoop >> mail # user >> JAVA_HOME is not set


Copy link to this message
-
RE: JAVA_HOME is not set
I don't think OpenJDK is supported. There were a lot of problems with it.

But feel free to give it a try,  if you run into JVM crashes. Use Oracle(Sun) JDK 6. (NOT 7)
Harsh had a good post before regarding the JVM(s).

-----Original Message-----
From: Simon [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 05, 2012 9:53 AM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: JAVA_HOME is not set

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 <[EMAIL PROTECTED]> 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
>
>
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB