hadoop-hdfs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Allen, Ronald L." <allen...@ornl.gov>
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 15:44:13 GMT
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)
perhaps you have


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_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.

View raw message