Return-Path: X-Original-To: apmail-hadoop-hdfs-user-archive@minotaur.apache.org Delivered-To: apmail-hadoop-hdfs-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 16CCE176D1 for ; Wed, 29 Oct 2014 23:47:34 +0000 (UTC) Received: (qmail 60250 invoked by uid 500); 29 Oct 2014 23:47:29 -0000 Delivered-To: apmail-hadoop-hdfs-user-archive@hadoop.apache.org Received: (qmail 60127 invoked by uid 500); 29 Oct 2014 23:47:29 -0000 Mailing-List: contact user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hadoop.apache.org Delivered-To: mailing list user@hadoop.apache.org Received: (qmail 60117 invoked by uid 99); 29 Oct 2014 23:47:28 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 Oct 2014 23:47:28 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of lfedotov@hortonworks.com designates 209.85.217.170 as permitted sender) Received: from [209.85.217.170] (HELO mail-lb0-f170.google.com) (209.85.217.170) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 Oct 2014 23:47:02 +0000 Received: by mail-lb0-f170.google.com with SMTP id 10so3425888lbg.15 for ; Wed, 29 Oct 2014 16:47:02 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=Msp+VU2GQ8PpxlqYgjwyKpoiNrflDUezlITOQbg9KDo=; b=Slm3TEVRmdO1biyTJOsW2FKUmq+MrSrz2OFlP1Yd3qH5Sysw7vp5jStkUglEKqldXe +aRhWtGmmtVVa4nbMKX0bLzz511NrUVW3ZaPWqKcA2eHYqhOfogqShMGxriRMle2dBSp dZVw+4dbXHp2uft8H7Biof2W8ctNEjnPFhRUa1hhRwVmPf+Yv2qf6VVKOYkyWhi74+CA 8xnm3hiJ7vlfTOI73q44ITGXuEnc7dJlb/Byf0bIgTYYHZfV9Gdbj6OHanAz6G698k12 UzB1q6XnxFylFj87k7wxUXyacnJHiu029nSlQochJHv3WKwlVdsMyTOf5VujreSMWzr6 g7jw== X-Gm-Message-State: ALoCoQlNFbGfQqNPzbt0b/uAbsgTp0x/FTN/JnzRtRpJJz8cbQjhPLkRADR/NI86UtCWfY6tJZJ8ZleyOZrx4aZrz2NKcKarE0PoRdbWc0ouwba/n1iP0kg= MIME-Version: 1.0 X-Received: by 10.152.21.135 with SMTP id v7mr15069179lae.65.1414626421731; Wed, 29 Oct 2014 16:47:01 -0700 (PDT) Received: by 10.25.129.8 with HTTP; Wed, 29 Oct 2014 16:47:01 -0700 (PDT) In-Reply-To: References: Date: Wed, 29 Oct 2014 16:47:01 -0700 Message-ID: Subject: Re: problems with Hadoop instalation From: Leonid Fedotov To: user@hadoop.apache.org Content-Type: multipart/alternative; boundary=089e0158b3cc5b8ba7050698610f X-Virus-Checked: Checked by ClamAV on apache.org --089e0158b3cc5b8ba7050698610f Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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 installe= d > the most recent stable version (2.4.1) on a virtual machine running CentO= S > 7. I have tried to run this command > %>Hadoop -fs ls but without success. > > =E2=80=8BThe question is, what does Hadoop consider a valid JAVA_HOME dir= ectory? > And where should the JAVA_HOME directory variable be defined? I installe= d > Java using the package manager yum. I installed the most recent version, > detailed below.=E2=80=8B > > > =E2=80=8BT=E2=80=8B > his is in my .bashrc file > # The java implementation to use. > export JAVA_HOME=3D/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 > =E2=80=8B in my .bashrc file. > /usr/bin/Java. > =E2=80=8B > [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 > > > --=20 CONFIDENTIALITY NOTICE NOTICE: This message is intended for the use of the individual or entity to= =20 which it is addressed and may contain information that is confidential,=20 privileged and exempt from disclosure under applicable law. If the reader= =20 of this message is not the intended recipient, you are hereby notified that= =20 any printing, copying, dissemination, distribution, disclosure or=20 forwarding of this communication is strictly prohibited. If you have=20 received this communication in error, please contact the sender immediately= =20 and delete it from your system. Thank You. --089e0158b3cc5b8ba7050698610f Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
David,
download Sandbox from hortonworks.com and you will have everything ready to play wi= th.


=

Thank you!


Sincerely,

Leonid Fedotov

Systems Architect - Professional Services

lfed= otov@hortonworks.com

office: +1 855 846 7866 ext 292

mobile: +1 650 430 1673


On Wed, Oct 29, 2014 at 3:59 PM, David Novog= rodsky <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 r= egarding Hadoop.=C2=A0 I have installed the most recent stable version (2.4= .1) on a virtual machine running CentOS 7.=C2=A0 I have tried to run this c= ommand=C2=A0
%&= gt;Hadoop -fs ls but without success.

=E2=80=8BThe question is, what does= Hadoop consider a valid JAVA_HOME directory?=C2=A0 And where should the JA= VA_HOME directory variable be defined?=C2=A0 I installed Java using the pac= kage manager yum.=C2=A0 I installed the most recent version, detailed below= .=E2=80=8B


=E2=80= =8BT=E2=80=8B
his is in my .bashrc file
# The java implementation t= o use.
export JAVA_HOME=3D/usr/lib/jvm/jre-1.7.0-openjdk.x86_64

<= br>[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 direc= tory


then I tried this value for JAVA_HOME
=E2=80=8B in my .bashrc fil= e.
/usr/bin/Java. =C2=A0
=E2=80= =8B
[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/b= in/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 a= nd 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, dis= semination, distribution, disclosure or forwarding of this communication is= strictly prohibited. If you have received this communication in error, ple= ase contact the sender immediately and delete it from your system. Thank Yo= u. --089e0158b3cc5b8ba7050698610f--