Re: JAVA_HOME is not set

2012-07-05 Thread Ying Huang
Yes, you point out the root cause, after configuration, this command sudo -u hdfs hadoop namenode -format works. Thank you. On 07/05/2012 12:06 PM, Simon wrote: Did you configure JAVA_HOME in file hadoop-env.sh? Simon On Thu, Jul 5, 2012 at 1:02 PM, Ying Huang > w

RE: JAVA_HOME is not set

2012-07-05 Thread Leo Leung
Sent: Thursday, July 05, 2012 9:53 AM To: common-user@hadoop.apache.org Cc: huangyi...@gmail.com 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

Re: JAVA_HOME is not set

2012-07-05 Thread Simon
Did you configure JAVA_HOME in file hadoop-env.sh? Simon On Thu, Jul 5, 2012 at 1:02 PM, Ying Huang wrote: > According to your suggestion, I try following command, but still fail: > > root@ubuntu32:/usr/lib/hadoop# export >

Re: JAVA_HOME is not set

2012-07-05 Thread Arpit Gupta
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: > ht

Re: JAVA_HOME is not set

2012-07-05 Thread Ying Huang
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 Err

Re: JAVA_HOME is not set

2012-07-05 Thread Simon
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

Re: JAVA_HOME is not set

2011-06-13 Thread Allen Wittenauer
On Jun 11, 2011, at 6:20 AM, J3VS wrote: > > I'm trying to set up hadoop on Fedora 15, I have set JAVA_HOME (ie configured > linux to see my java installation) and i have altered hadoop-env.sh so that > JAVA_HOME is set as my jdk folder, Check for typos. Something else you can

Re: JAVA_HOME is not set

2011-06-11 Thread Madhu Ramanna
Try this command: which hadoop Make sure you're modifying the correct hadoop config file. Secondly, you may also try echo $JAVA_HOME And see if it is set. On 6/11/11 6:20 AM, "J3VS" wrote: > >I'm trying to set up hadoop on Fedora 15, I have set JAVA_HOME (ie >configured >linux to see my

Re: JAVA_HOME is not set

2011-06-11 Thread Deependra Ariyadewa
On Sat, Jun 11, 2011 at 6:50 PM, J3VS wrote: > > I'm trying to set up hadoop on Fedora 15, I have set JAVA_HOME (ie > configured > linux to see my java installation) and i have altered hadoop-env.sh so that > JAVA_HOME is set as my jdk folder, but when i enter "hadoop version" into > the terminal