Return-Path: X-Original-To: apmail-hadoop-common-user-archive@www.apache.org Delivered-To: apmail-hadoop-common-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E73B810988 for ; Wed, 8 Jan 2014 00:11:50 +0000 (UTC) Received: (qmail 74860 invoked by uid 500); 8 Jan 2014 00:11:45 -0000 Delivered-To: apmail-hadoop-common-user-archive@hadoop.apache.org Received: (qmail 74676 invoked by uid 500); 8 Jan 2014 00:11:45 -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 74669 invoked by uid 99); 8 Jan 2014 00:11:45 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Jan 2014 00:11:45 +0000 X-ASF-Spam-Status: No, hits=2.5 required=5.0 tests=FREEMAIL_REPLY,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of jiayu.ji@gmail.com designates 74.125.82.54 as permitted sender) Received: from [74.125.82.54] (HELO mail-wg0-f54.google.com) (74.125.82.54) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Jan 2014 00:11:41 +0000 Received: by mail-wg0-f54.google.com with SMTP id n12so811604wgh.21 for ; Tue, 07 Jan 2014 16:11:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=DMxG4/adcKsTEvDCzs7gkG2BlnsbMNkbgmV10Uny5N8=; b=TtqLM/5+bzA2G+FDobWFzjkunMGED3mu6PwxNDv/7BD6+Aec8W5rkvcVt9pf10WuxO 8Jf4JGQM8At6NkjFbZlQrhqTjfN1sF6Rvk3px2y5UWHIglsS7UE1W5LsQ3FYfbRuLDwX OWU/OpQSoLObeeLoJyvwnm2s0vmJViQ/cnXbC1CxQXuEi4H9EhoRCbh42wl6fiQ1/XE0 cgn6s6Q8h2mfEmVgOLduvBN6Xl7bxYPeQs1z0e8EzTGeH1FStWyLcTuJvLpCV89FDu2z 3ybYCmzdSlZHHxMxRkCfiU6bjmCy+UK5ljLE5K5DfKAp3K6IWqFCugbjrk0wCn0m5aYe Rx9g== MIME-Version: 1.0 X-Received: by 10.194.175.202 with SMTP id cc10mr10275129wjc.48.1389139879844; Tue, 07 Jan 2014 16:11:19 -0800 (PST) Received: by 10.216.10.3 with HTTP; Tue, 7 Jan 2014 16:11:19 -0800 (PST) In-Reply-To: References: <00a801cf0bf3$a6aa4990$f3fedcb0$@samsung.com> Date: Tue, 7 Jan 2014 18:11:19 -0600 Message-ID: Subject: Re: JAVA cannot execute binary file From: Jiayu Ji To: user@hadoop.apache.org Content-Type: multipart/alternative; boundary=089e013d0f4814e27504ef6a5565 X-Virus-Checked: Checked by ClamAV on apache.org --089e013d0f4814e27504ef6a5565 Content-Type: text/plain; charset=ISO-8859-1 hduser@base:~$ */usr/local/hadoop/bin/hadoop namenode -format* */usr/local/hadoop/bin/hadoop: line 320: /usr/lib/jvm/jdk1.7.0//bin/java: cannot execute binary file* */usr/local/hadoop/bin/hadoop: line 390: /usr/lib/jvm/jdk1.7.0//bin/java: cannot execute binary file* */usr/local/hadoop/bin/hadoop: line 390: /usr/lib/jvm/jdk1.7.0//bin/java: Success* See the double slash between jdk.1.7.0 and bin. That was the issue. you should export JAVA_HOME=/usr/lib/jvm/jdk1.7.0 without the slash. On Tue, Jan 7, 2014 at 4:40 PM, Haohui Mai wrote: > Seems like that you have a wrong JAVA_HOME. You can check whether the > directory exists, or search around a little bit to find the right > configuration with respect to your distribution. > > ~Haohui > > > On Tue, Jan 7, 2014 at 2:07 PM, navaz wrote: > >> Hadoop env >> >> export JAVA_HOME=/usr/lib/jvm/jdk1.7.0/ >> >> I followed the above steps. >> >> hduser@base:~$ *java -version* >> *java version "1.7.0_45"* >> *Java(TM) SE Runtime Environment (build 1.7.0_45-b18)* >> *Java HotSpot(TM) Client VM (build 24.45-b08, mixed mode, sharing)* >> hduser@base:~$ >> >> hduser@base:~$ *which java* >> */usr/bin/java* >> hduser@base:~$ >> >> hduser@base:~$ */usr/local/hadoop/bin/hadoop namenode -format* >> */usr/local/hadoop/bin/hadoop: line 320: /usr/lib/jvm/jdk1.7.0//bin/java: >> cannot execute binary file* >> */usr/local/hadoop/bin/hadoop: line 390: /usr/lib/jvm/jdk1.7.0//bin/java: >> cannot execute binary file* >> */usr/local/hadoop/bin/hadoop: line 390: /usr/lib/jvm/jdk1.7.0//bin/java: >> Success* >> hduser@base:~$ >> >> Still I am getting the error message. What can be done? >> >> >> Thanks >> Navaz >> >> >> On Tue, Jan 7, 2014 at 3:58 PM, German Florez-Larrahondo < >> german.fl@samsung.com> wrote: >> >>> This could be because you are trying to run the incorrect version of >>> java for your platform >>> >>> >>> >>> What do you see when you do the following >>> >>> >>> >>> >>> >>> ubuntu@---:~$ file `which java` >>> >>> /home/ubuntu/GERMAN/WORKLOADS/java/jdk1.7.0_25/bin//java: ELF 64-bit LSB >>> executable, x86-64, version 1 (SYSV), dynamically linked (uses shared >>> libs), for GNU/Linux 2.6.9, >>> BuildID[sha1]=0x47f558a5fd950bfecb09a1c6d692967d949796d7, not stripped >>> >>> >>> >>> >>> >>> *From:* navaz [mailto:navaz.enc@gmail.com] >>> *Sent:* Tuesday, January 07, 2014 2:12 PM >>> *To:* user >>> *Subject:* JAVA cannot execute binary file >>> >>> >>> >>> Hi >>> >>> >>> >>> I am following the hadoop document. >>> >>> https://www.dropbox.com/s/05aurcp42asuktp/Chiu%20Hadoop%20Pig%20Install%20Instructions.docx >>> >>> Installed JDK7. >>> >>> >>> >>> VM: >>> >>> ==== >>> >>> >>> >>> hduser@base:~$ lsb_release -a >>> >>> No LSB modules are available. >>> >>> Distributor ID: Ubuntu >>> >>> Description: Ubuntu 13.04 >>> >>> Release: 13.04 >>> >>> Codename: raring >>> >>> hduser@base:~$ >>> >>> >>> >>> But I am getting the below error message. >>> >>> >>> >>> hduser@base:~$ java -version >>> >>> -su: /usr/bin/java: cannot execute binary file >>> >>> hduser@base:~$ >>> >>> >>> >>> >>> >>> hduser@base:~$ /usr/local/hadoop/bin/hadoop namenode -format >>> >>> /usr/local/hadoop/bin/hadoop: line 320: /usr/lib/jvm/jdk1.7.0//bin/java: >>> cannot execute binary file >>> >>> /usr/local/hadoop/bin/hadoop: line 390: /usr/lib/jvm/jdk1.7.0//bin/java: >>> cannot execute binary file >>> >>> /usr/local/hadoop/bin/hadoop: line 390: /usr/lib/jvm/jdk1.7.0//bin/java: >>> Success >>> >>> hduser@base:~$ >>> >>> hduser@base:~$ >>> >>> >>> >>> >>> >>> Could you please help me in this. >>> >>> >>> >>> Thanks & Regrads >>> >>> *Abdul Navaz* >>> >>> >>> >>> >>> >> >> >> >> -- >> *Abdul Navaz* >> *Masters in Network Communications* >> *University of Houston* >> *Houston, TX - 77204-4020* >> *Ph - 281-685-0388 <281-685-0388>* >> *fabdulnavaz@uh.edu* >> >> > > 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. -- Jiayu (James) Ji, Cell: (312)823-7393 --089e013d0f4814e27504ef6a5565 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
hduser@base:~$=A0/usr/local/hadoop/bin/hadoop namenode -format
/usr/local/hadoop/bin/hadoop: line 320: /u= sr/lib/jvm/jdk1.7.0//bin/java: cannot execute binary file=
/usr/local/hadoop/bin/hadoop:= line 390: /usr/lib/jvm/jdk1.7.0//bin/java: cannot execute binary file<= /font>
/usr/local/hadoop/bin/hadoop:= line 390: /usr/lib/jvm/jdk1.7.0//bin/java: Success

See= the double slash between jdk.1.7.0 and bin. That was the issue.
=
you should= =A0
=
export JAVA_HOME=3D/usr/lib/jvm/jd= k1.7.0
=
without the slash.=A0


On Tue,= Jan 7, 2014 at 4:40 PM, Haohui Mai <hmai@hortonworks.com> wrote:
Seems like that you have a = wrong JAVA_HOME. You can check whether the directory exists, or search arou= nd a little bit to find the right configuration with respect to your distri= bution.

~Haohui


On Tue, Jan 7, 2014 at 2:07 PM, navaz &l= t;navaz.enc@gmail.= com> wrote:
Hadoop env

export JAVA_HOME=3D/usr/lib/jvm/jd= k1.7.0/

I followed the above steps.

hduser@base:~$ java -v= ersion
java version "1.7.0_45"
Java(TM) SE Runtime Environment (bui= ld 1.7.0_45-b18)
Java HotSp= ot(TM) Client VM (build 24.45-b08, mixed mode, sharing)
hduser@base:~$

hduser@base:~$ which java
/usr= /bin/java
hduser@base:~$

hduser@base:~$ /usr/local/hadoop/bin/hadoop= namenode -format
/usr/loca= l/hadoop/bin/hadoop: line 320: /usr/lib/jvm/jdk1.7.0//bin/java: cannot exec= ute binary file
/usr/local/hadoop/bin/hadoop: line 390: /us= r/lib/jvm/jdk1.7.0//bin/java: cannot execute binary file
/usr/local/hadoop/bin/hadoop: line 390: /usr/= lib/jvm/jdk1.7.0//bin/java: Success
hduser@base:~$

Still I am getting= the error message. What can be done?


Thanks
Navaz


On Tue, Jan 7, 2014 at 3:58 PM, German Florez-Larrahondo = <german.fl@sa= msung.com> wrote:

This could be because you are trying to run = the incorrect version of java for your platform

=A0<= /p>

What do you see when y= ou do the following

=A0<= /p>

=A0

ubuntu@---:~$ file `which = java`

/hom= e/ubuntu/GERMAN/WORKLOADS/java/jdk1.7.0_25/bin//java: ELF 64-bit LSB execut= able, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for = GNU/Linux 2.6.9, BuildID[sha1]=3D0x47f558a5fd950bfecb09a1c6d692967d949796d7= , not stripped

=A0<= /p>

=A0

From: navaz [m= ailto:navaz.enc@gm= ail.com]
Sent: Tuesday, January 07, 2014 2:12 PM
To: user
Sub= ject: JAVA cannot execute binary file

=A0

Hi

=A0

=

I am following the hadoop document.

Installed JDK7.

=A0

VM:

=3D=3D=3D=3D

=A0

hduser@base:~$ lsb_release -a

No LSB modules are available.

Distributor ID: Ubuntu

<= p class=3D"MsoNormal">Description: =A0 =A0Ubuntu 13.04

Release: =A0 =A0 =A0 =A013.04<= /p>

Codename: =A0 =A0 =A0 raring

=

hduser@base:~$

=A0

But I am getting the below error message.

=A0

hduser@base:~$ java -version

-su: /usr/bin/java: cannot execute binary file

hduser@base:~$

=A0

=A0

hduser@bas= e:~$ /usr/local/hadoop/bin/hadoop namenode -format

/usr/local/hadoop/bin/hadoop: line 320: /= usr/lib/jvm/jdk1.7.0//bin/java: cannot execute binary file

/usr/local/hadoop/bin/hadoop: line 390: = /usr/lib/jvm/jdk1.7.0//bin/java: cannot execute binary file

/usr/local/hadoop/bin/hadoop: line 390: /= usr/lib/jvm/jdk1.7.0//bin/java: Success

hduser@base:~$

hduser@base:~$

= =A0

=A0

Could you please help me in this.=

=A0

Thanks & Regrads

= Abdul Navaz

=A0

=A0



<= div>
--
Abdul Navaz=
Masters in Network Communication= s
University of Houston
Houston, TX - 77204-4020
Ph -=A0281-685-0388



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 comm= unication is strictly prohibited. If you have received this communication i= n error, please contact the sender immediately and delete it from your syst= em. Thank You.


--
Jiayu (J= ames) Ji,

Cell: (312)823-7393=

--089e013d0f4814e27504ef6a5565--