hadoop-common-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Leonid Fedotov <lfedo...@hortonworks.com>
Subject Re: problems with Hadoop instalation
Date Wed, 29 Oct 2014 23:47:01 GMT
David,
download Sandbox from hortonworks.com and you will have everything ready to
play with.


*Thank you!*


*Sincerely,*

*Leonid Fedotov*

Systems Architect - Professional Services

lfedotov@hortonworks.com

office: +1 855 846 7866 ext 292

mobile: +1 650 430 1673

On Wed, Oct 29, 2014 at 3:59 PM, David Novogrodsky <
david.novogrodsky@gmail.com> wrote:

> All,
>
> I am new to Hadoop so any help would be appreciated.
>
> I have a question for the mailing list regarding Hadoop.  I have installed
> the most recent stable version (2.4.1) on a virtual machine running CentOS
> 7.  I have tried to run this command
> %>Hadoop -fs ls but without success.
>
> ​The question is, what does Hadoop consider a valid JAVA_HOME directory?
> And where should the JAVA_HOME directory variable be defined?  I installed
> Java using the package manager yum.  I installed the most recent version,
> detailed below.​
>
>
> ​T​
> his is in my .bashrc file
> # The java implementation to use.
> export JAVA_HOME=/usr/lib/jvm/jre-1.7.0-openjdk.x86_64
>
>
> [david@localhost ~]$ hadoop fs -ls
> /usr/local/hadoop/bin/hadoop: line 133:
> /usr/lib/jvm/jre-1.7.0-openjdk.x86_64/bin/java: No such file or directory
>
>
> then I tried this value for JAVA_HOME
> ​ in my .bashrc file.
> /usr/bin/Java.
> ​
> [david@localhost ~]$ which java
> /usr/bin/java
> [david@localhost ~]$ java -version
> java version "1.7.0_71"
> OpenJDK Runtime Environment (rhel-2.5.3.1.el7_0-x86_64 u71-b14)
> OpenJDK 64-Bit Server VM (build 24.65-b04, mixed mode)
>
> here is the result:
> [david@localhost ~]$hadoop fs -ls
> /usr/local/hadoop/bin/hadoop: line 133: /usr/bin/java/bin/java: Not a
> directory
> /usr/local/hadoop/bin/hadoop: line 133: exec: /usr/bin/java/bin/java:
> cannot execute: Not a directory
>
> David Novogrodsky
>
>
>

-- 
CONFIDENTIALITY NOTICE
NOTICE: This message is intended for the use of the individual or entity to 
which it is addressed and may contain information that is confidential, 
privileged and exempt from disclosure under applicable law. If the reader 
of this message is not the intended recipient, you are hereby notified that 
any printing, copying, dissemination, distribution, disclosure or 
forwarding of this communication is strictly prohibited. If you have 
received this communication in error, please contact the sender immediately 
and delete it from your system. Thank You.

Mime
View raw message