You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-user@hadoop.apache.org by Ch...@cognizant.com on 2008/08/19 06:18:13 UTC

error:JAVA_HOME not set




hi..

i'm new to hadoop.. i'm following the same steps given in hadoop site.

in hadoop-env.sh file

i've set JAVA_HOME=/usr/java/jdk1.6.0_07

The stand alone operation example is working..


mkdir input
$ cp conf/*.xml input
$ bin/hadoop jar hadoop-*-examples.jar grep input output 'dfs[a-z.]+' 
$ cat output/*

But in the distributed mode
after formatting new dfs using

bin/hadoop namenode -format

and when i start the daemons using the command: # bin/start-all.sh
i get this

starting namenode, logging
to /etc/hadoop_install/hadoop-0.16.4/bin/../logs/hadoop-root-namenode-
localhost.localdomain.out
localhost: starting datanode, logging
to /etc/hadoop_install/hadoop-0.16.4/bin/../logs/hadoop-root-datanode-
localhost.localdomain.out
localhost: Error: JAVA_HOME is not set.
localhost: starting secondarynamenode, logging
to /etc/hadoop_install/hadoop-0.16.4/bin/../logs/hadoop-root-
secondarynamenode-localhost.localdomain.out
localhost: Error: JAVA_HOME is not set.
starting jobtracker, logging
to /etc/hadoop_install/hadoop-0.16.4/bin/../logs/hadoop-root-jobtracker-
localhost.localdomain.out
localhost: starting tasktracker, logging
to /etc/hadoop_install/hadoop-0.16.4/bin/../logs/hadoop-root-
tasktracker-localhost.localdomain.out
localhost: Error: JAVA_HOME is not set.


What should i do..
Kindly help me regarding this issue..



Regards,
S.chandravadana





This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information.
If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. 
Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly 
prohibited and may be unlawful.