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 Plain View
Hadoop >> mail # user >> JAVA_HOME is not set


+
Ying Huang 2012-07-05, 16:42
Copy link to this message
-
Re: JAVA_HOME is not set
JAVA_HOME is set for user root but not for user hdfs. Make sure JAVA_HOME is set for user hdfs and then try the command again.

--
Arpit Gupta
Hortonworks Inc.
http://hortonworks.com/

On Jul 5, 2012, at 9:42 AM, 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
>    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
>

+
Simon 2012-07-05, 16:53
+
Leo Leung 2012-07-05, 17:14
+
Ying Huang 2012-07-05, 17:02
+
Simon 2012-07-05, 17:06
+
Ying Huang 2012-07-05, 17:27
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