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 8A38C10123 for ; Wed, 8 Jan 2014 05:05:16 +0000 (UTC) Received: (qmail 2792 invoked by uid 500); 8 Jan 2014 05:05:06 -0000 Delivered-To: apmail-hadoop-hdfs-user-archive@hadoop.apache.org Received: (qmail 2502 invoked by uid 500); 8 Jan 2014 05:05:01 -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 2493 invoked by uid 99); 8 Jan 2014 05:05:00 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Jan 2014 05:05:00 +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 vinayakumar.b@huawei.com designates 119.145.14.65 as permitted sender) Received: from [119.145.14.65] (HELO szxga02-in.huawei.com) (119.145.14.65) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Jan 2014 05:04:53 +0000 Received: from 172.24.2.119 (EHLO szxeml210-edg.china.huawei.com) ([172.24.2.119]) by szxrg02-dlp.huawei.com (MOS 4.3.7-GA FastPath queued) with ESMTP id BOG81134; Wed, 08 Jan 2014 13:04:26 +0800 (CST) Received: from SZXEML406-HUB.china.huawei.com (10.82.67.93) by szxeml210-edg.china.huawei.com (172.24.2.183) with Microsoft SMTP Server (TLS) id 14.3.158.1; Wed, 8 Jan 2014 13:04:24 +0800 Received: from SZXEML523-MBX.china.huawei.com ([169.254.3.229]) by szxeml406-hub.china.huawei.com ([10.82.67.93]) with mapi id 14.03.0158.001; Wed, 8 Jan 2014 13:04:24 +0800 From: Vinayakumar B To: "user@hadoop.apache.org" Subject: RE: JAVA cannot execute binary file Thread-Topic: JAVA cannot execute binary file Thread-Index: AQHPC+TPWXjVj6npx0myAgE102tvLZp5SWUAgAACfACAAAkVAIAAZciAgACG9NA= Date: Wed, 8 Jan 2014 05:04:23 +0000 Message-ID: <5DF48A23D7B14649BBA72C2F64C6663B82B3A28A@szxeml523-mbx.china.huawei.com> References: ,<00a801cf0bf3$a6aa4990$f3fedcb0$@samsung.com>,, In-Reply-To: Accept-Language: en-US, zh-CN Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.18.170.80] Content-Type: multipart/alternative; boundary="_000_5DF48A23D7B14649BBA72C2F64C6663B82B3A28Aszxeml523mbxchi_" MIME-Version: 1.0 X-CFilter-Loop: Reflected X-Virus-Checked: Checked by ClamAV on apache.org --_000_5DF48A23D7B14649BBA72C2F64C6663B82B3A28Aszxeml523mbxchi_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi, It really does not matter in OS whether any double slashes are there in the= path or not. Always OS will normalize it. Problem could be, your java installation might not be matching with the arc= hitecture of the machine. Are you sure that /usr/lib/jvm/jdk1.7.0/ is of same architecture (64/32 bit= ) as of machine...? Regards, Vinayakumar B From: Mr 0 [mailto:bobwolf333@hotmail.com] Sent: 08 January 2014 10:15 To: user@hadoop.apache.org Subject: RE: JAVA cannot execute binary file I have had, at some point on earlier versions of hadoop: Inside hadoop-env.sh where you set /usr/lib/jvm/jdk1.7.0/ Leave off the fi= nal slash. instead it should be /usr/lib/jvm/jdk1.7.0 Somewhere at some point it adds the /bin/java on itself. So you are gettin= g a double slash /usr/lib/jvm/jdk1.7.0//bin/java Really strange, I don't recall ever seeing it mentioned anywhere that I've = seen and depending on the version of Hadoop used, it will keep everything f= rom running until you find it. I also was getting some strange errors using jdk or any non Sun/Oracle java= back then though too. This was 3-4 years ago on whatever Ubuntu was modern but it's my best guess= . I just looked and my current test setup of Hadoop 2.2.0 on Ubuntu 10.10 HAS= the trailing slash, with no problems. ~00 ________________________________ Date: Tue, 7 Jan 2014 14:40:14 -0800 Subject: Re: JAVA cannot execute binary file From: hmai@hortonworks.com To: user@hadoop.apache.org Seems like that you have a wrong JAVA_HOME. You can check whether the direc= tory 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=3D/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: ca= nnot execute binary file /usr/local/hadoop/bin/hadoop: line 390: /usr/lib/jvm/jdk1.7.0//bin/java: ca= nnot execute binary file /usr/local/hadoop/bin/hadoop: line 390: /usr/lib/jvm/jdk1.7.0//bin/java: Su= ccess 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 > wrote: This could be because you are trying to run the incorrect version of java f= or 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 ex= ecutable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), = for GNU/Linux 2.6.9, BuildID[sha1]=3D0x47f558a5fd950bfecb09a1c6d692967d9497= 96d7, 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%20I= nstructions.docx Installed JDK7. VM: =3D=3D=3D=3D 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: ca= nnot execute binary file /usr/local/hadoop/bin/hadoop: line 390: /usr/lib/jvm/jdk1.7.0//bin/java: ca= nnot execute binary file /usr/local/hadoop/bin/hadoop: line 390: /usr/lib/jvm/jdk1.7.0//bin/java: Su= ccess 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 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, pr= ivileged and exempt from disclosure under applicable law. If the reader of = this message is not the intended recipient, you are hereby notified that an= y printing, copying, dissemination, distribution, disclosure or forwarding = of this communication is strictly prohibited. If you have received this com= munication in error, please contact the sender immediately and delete it fr= om your system. Thank You. --_000_5DF48A23D7B14649BBA72C2F64C6663B82B3A28Aszxeml523mbxchi_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hi,

 <= /p>

It really does not matter= in OS whether any double slashes are there in the path or not. Always OS w= ill normalize it.

 <= /p>

Problem could be, your ja= va installation might not be matching with the architecture of the machine.

 <= /p>

Are you sure that /usr/lib/jvm/jdk1.7.0/ is of same architecture (64/32= bit) as of machine…?

 <= /p>

Regards,

Vinayakumar B<= /span>

 <= /p>

From: Mr 0 [ma= ilto:bobwolf333@hotmail.com]
Sent: 08 January 2014 10:15
To: user@hadoop.apache.org
Subject: RE: JAVA cannot execute binary file

 

I have had, at some point on earlier versions of had= oop:

 

Inside hadoop-env.sh = where you set /usr/lib/jvm/jdk1.7.0/  Leave off the final slash. in= stead it should be /usr/lib/jvm/jdk1.7.0 

Somewhere at some point it adds the /bin/java on its= elf.  So you are getting a double slash /usr/lib/jvm/jdk1.7.0//bin/jav= a 

 

Really strange, I don't recall ever seeing it mentio= ned anywhere that I've seen and depending on the version of Hadoop used, it= will keep everything from running until you find it. 

 

I also was getting some strange errors using jdk or = any non Sun/Oracle java back then though too.

 

This was 3-4 years ago on whatever Ubuntu was modern= but it's my best guess.

 

 

 

I just looked and my current test setup of Hadoop 2.= 2.0 on Ubuntu 10.10 HAS the trailing slash, with no problems.

 

 

~00

 

 

 

 

 


Date: Tue, 7 Jan 2014= 14:40:14 -0800
Subject: Re: JAVA cannot execute binary file
From: hmai@hortonworks.com
To: user@hadoop.apache.org

Seems like that you have a wrong JAVA_HOME. You can = check whether the directory exists, or search around a little bit to find t= he right configuration with respect to your distribution.

 

~Haohui

 

On Tue, Jan 7, 2014 at 2:07 PM, navaz <navaz.enc@gmail.com> = wrote:

Hadoop env

 

export JAVA_HOME=3D/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) Cl= ient VM (build 24.45-b08, mixed mode, sharing)

hduser@base:~$

 

hduser@base:~$ whic= h java

/usr/bin/java

hduser@base:~$

 

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

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

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

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

hduser@base:~$

 

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

 

 

Thanks

Navaz

 

On Tue, Jan 7, 2014 at 3:58 PM, German Florez-Larrah= ondo <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 y= ou do the following

 

 

ubuntu@---:~$ file `whi= ch java`

/home/ubuntu/GERMAN/WORKLOADS/java/jdk1.7.0_25/bin//j= ava: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linke= d (uses shared libs), for GNU/Linux 2.6.9, BuildID[sha1]=3D0x47f558a5fd950b= fecb09a1c6d692967d949796d7, 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.

Installed JDK7.

 

VM:

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

 

hduser@base:~$ lsb_release -a

No LSB modules are available.

Distributor ID: Ubuntu

Description:    Ubuntu 13.04=

Release:        13.04

Codename:       raring<= /p>

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 namen= ode -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<= /p>

 

 <= /o:p>



 

--

Abdul Navaz

Masters in Network Co= mmunications

University of Houston=

Houston, TX - 77204-4= 020

Ph - 281-685-038= 8

 

 


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, pr= ivileged 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, disseminati= on, distribution, disclosure or forwarding of this communication is strictl= y prohibited. If you have received this communication in error, please cont= act the sender immediately and delete it from your system. Thank You.

--_000_5DF48A23D7B14649BBA72C2F64C6663B82B3A28Aszxeml523mbxchi_--