hadoop-hdfs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paul Mahon" <pma...@decarta.com>
Subject RE: /home/r9r/hadoop-2.2.0/bin/hadoop: line 133: /usr/java/default/bin/java: No such file or directory
Date Thu, 09 Jan 2014 16:07:32 GMT
To see what the system thinks which java is on the path run:
$ which java

You can run the hadoop script with bash -x to see the variable substitutions:
$ bash -x /path/to/hadoop ...

That may help you decipher where the bad path is coming from. 

-------- Original message --------
From: "Allen, Ronald L." <allenrl1@ornl.gov> 
Date: 2014/01/09  07:50  (GMT-08:00) 
To: user@hadoop.apache.org 
Subject: RE: /home/r9r/hadoop-2.2.0/bin/hadoop: line 133: /usr/java/default/bin/java: No such
file or directory 
 
Thanks for the replies!

I typed echo $PATH.  Quite a few paths showed up, but not /usr/java/default/bin/java.
In my .bashrc file I have export PATH=/home/r9r/hadoop-2.2.0/bin:/home/r9r/hadoop-2.2.0/sbin:/usr/lib/jvm/java-1.7.0/jre:$PATH,
and these all showed up.
I am still getting the same error.

I am not the only user for the machine I am using.  Could there be another Hadoop on the
machine conflicting with what I am trying to do?

________________________________________
From: Chris Mawata [chris.mawata@gmail.com]
Sent: Wednesday, January 08, 2014 6:51 PM
To: user@hadoop.apache.org
Subject: Re: /home/r9r/hadoop-2.2.0/bin/hadoop: line 133: /usr/java/default/bin/java: No such
file or directory

What is on the system path?
(what do you get at the command console type)
$PATH
perhaps you have

/usr/java/default/bin

in there

On 1/8/2014 3:12 PM, Allen, Ronald L. wrote:
> Hello again,
>
> I'm trying to install Hadoop 2.2.0 on Redhat 2.6.32-358.23.2.el6.x86_64.  I have untar-ed
hadoop-2.2.0.tar.gz and set my path variables as below.
>
> export HADOOP_INSTALL=/home/r9r
> export HADOOP_MAPRED_HOME=$HADOOP_INSTALL
> export HADOOP_COMMON_HOME=$HADOOP_INSTALL
> export HADOOP_HDFS_HOME=$HADOOP_INSTALL
> export YARN_HOME=$HADOOP_INSTALL
> export HADOOP_COMMON_LIB_NATIVE_DIR=$HADOOP_INSTALL/lib/native
> export HADOOP_OPTS="-Djava.library.path"=$HADOOP_INSTALL/lib
>
> export JAVA_HOME=/usr/lib/jvm/java-1.7.0/jre/
>
> When I type hadoop version, I get the following:
>
> /home/r9r/hadoop-2.2.0/bin/hadoop: line 133: /usr/java/default/bin/java: No such file
or directory
> /home/r9r/hadoop-2.2.0/bin/hadoop: line 133: exec: /usr/java/default/bin/java: cannot
execute: No such file or directory
>
> I've checked and rechecked my JAVA_HOME.  I feel like it is correct.  I've checked
hadoop-env.sh and it is set to export JAVA_HOME=${JAVA_HOME}
>
> I am stuck and do not know what to try from here.  Does anyone have any ideas?
>
> Thanks!
> Ronnie.
>

Mime
View raw message