hadoop-mapreduce-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hardik Pandya <smarty.ju...@gmail.com>
Subject Re: /home/r9r/hadoop-2.2.0/bin/hadoop: line 133: /usr/java/default/bin/java: No such file or directory
Date Wed, 08 Jan 2014 23:03:32 GMT
your java home is not set correctly - its still looking under
usr/java/default/bin/java

in your hadoop-env.sh
JAVA_HOME should be /usr/lib/jvm/java-1.7.0/jre/

does your $PATH includes correct ${JAVA_HOME}?





On Wed, Jan 8, 2014 at 3:12 PM, Allen, Ronald L. <allenrl1@ornl.gov> 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