You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-user@hadoop.apache.org by navaz <na...@gmail.com> on 2014/01/07 21:12:06 UTC
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*
RE: JAVA cannot execute binary file
Posted by Vinayakumar B <vi...@huawei.com>.
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 architecture 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 final 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 getting 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 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<ma...@hortonworks.com>
To: user@hadoop.apache.org<ma...@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 the right configuration with respect to your distribution.
~Haohui
On Tue, Jan 7, 2014 at 2:07 PM, navaz <na...@gmail.com>> 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 <ge...@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<ma...@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
fabdulnavaz@uh.edu<ma...@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.
RE: JAVA cannot execute binary file
Posted by Vinayakumar B <vi...@huawei.com>.
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 architecture 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 final 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 getting 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 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<ma...@hortonworks.com>
To: user@hadoop.apache.org<ma...@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 the right configuration with respect to your distribution.
~Haohui
On Tue, Jan 7, 2014 at 2:07 PM, navaz <na...@gmail.com>> 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 <ge...@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<ma...@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
fabdulnavaz@uh.edu<ma...@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.
RE: JAVA cannot execute binary file
Posted by Vinayakumar B <vi...@huawei.com>.
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 architecture 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 final 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 getting 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 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<ma...@hortonworks.com>
To: user@hadoop.apache.org<ma...@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 the right configuration with respect to your distribution.
~Haohui
On Tue, Jan 7, 2014 at 2:07 PM, navaz <na...@gmail.com>> 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 <ge...@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<ma...@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
fabdulnavaz@uh.edu<ma...@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.
RE: JAVA cannot execute binary file
Posted by Vinayakumar B <vi...@huawei.com>.
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 architecture 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 final 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 getting 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 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<ma...@hortonworks.com>
To: user@hadoop.apache.org<ma...@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 the right configuration with respect to your distribution.
~Haohui
On Tue, Jan 7, 2014 at 2:07 PM, navaz <na...@gmail.com>> 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 <ge...@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<ma...@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
fabdulnavaz@uh.edu<ma...@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.
RE: JAVA cannot execute binary file
Posted by Mr 0 <bo...@hotmail.com>.
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 final 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 getting 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 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 the right configuration with respect to your distribution.
~Haohui
On Tue, Jan 7, 2014 at 2:07 PM, navaz <na...@gmail.com> 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/javahduser@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?
ThanksNavaz
On Tue, Jan 7, 2014 at 3:58 PM, German Florez-Larrahondo <ge...@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 -aNo LSB modules are available.
Distributor ID: UbuntuDescription: Ubuntu 13.04Release: 13.04
Codename: raringhduser@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: Successhduser@base:~$
hduser@base:~$ Could you please help me in this.
Thanks & RegradsAbdul Navaz
--
Abdul Navaz
Masters in Network Communications
University of Houston
Houston, TX - 77204-4020Ph - 281-685-0388fabdulnavaz@uh.edu
CONFIDENTIALITY NOTICENOTICE: 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.
RE: JAVA cannot execute binary file
Posted by Mr 0 <bo...@hotmail.com>.
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 final 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 getting 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 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 the right configuration with respect to your distribution.
~Haohui
On Tue, Jan 7, 2014 at 2:07 PM, navaz <na...@gmail.com> 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/javahduser@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?
ThanksNavaz
On Tue, Jan 7, 2014 at 3:58 PM, German Florez-Larrahondo <ge...@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 -aNo LSB modules are available.
Distributor ID: UbuntuDescription: Ubuntu 13.04Release: 13.04
Codename: raringhduser@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: Successhduser@base:~$
hduser@base:~$ Could you please help me in this.
Thanks & RegradsAbdul Navaz
--
Abdul Navaz
Masters in Network Communications
University of Houston
Houston, TX - 77204-4020Ph - 281-685-0388fabdulnavaz@uh.edu
CONFIDENTIALITY NOTICENOTICE: 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.
RE: JAVA cannot execute binary file
Posted by Mr 0 <bo...@hotmail.com>.
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 final 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 getting 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 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 the right configuration with respect to your distribution.
~Haohui
On Tue, Jan 7, 2014 at 2:07 PM, navaz <na...@gmail.com> 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/javahduser@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?
ThanksNavaz
On Tue, Jan 7, 2014 at 3:58 PM, German Florez-Larrahondo <ge...@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 -aNo LSB modules are available.
Distributor ID: UbuntuDescription: Ubuntu 13.04Release: 13.04
Codename: raringhduser@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: Successhduser@base:~$
hduser@base:~$ Could you please help me in this.
Thanks & RegradsAbdul Navaz
--
Abdul Navaz
Masters in Network Communications
University of Houston
Houston, TX - 77204-4020Ph - 281-685-0388fabdulnavaz@uh.edu
CONFIDENTIALITY NOTICENOTICE: 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.
Re: JAVA cannot execute binary file
Posted by Jiayu Ji <ji...@gmail.com>.
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 <hm...@hortonworks.com> 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 <na...@gmail.com> 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* <fa...@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
Re: JAVA cannot execute binary file
Posted by Jiayu Ji <ji...@gmail.com>.
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 <hm...@hortonworks.com> 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 <na...@gmail.com> 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* <fa...@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
Re: JAVA cannot execute binary file
Posted by Jiayu Ji <ji...@gmail.com>.
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 <hm...@hortonworks.com> 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 <na...@gmail.com> 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* <fa...@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
RE: JAVA cannot execute binary file
Posted by Mr 0 <bo...@hotmail.com>.
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 final 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 getting 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 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 the right configuration with respect to your distribution.
~Haohui
On Tue, Jan 7, 2014 at 2:07 PM, navaz <na...@gmail.com> 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/javahduser@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?
ThanksNavaz
On Tue, Jan 7, 2014 at 3:58 PM, German Florez-Larrahondo <ge...@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 -aNo LSB modules are available.
Distributor ID: UbuntuDescription: Ubuntu 13.04Release: 13.04
Codename: raringhduser@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: Successhduser@base:~$
hduser@base:~$ Could you please help me in this.
Thanks & RegradsAbdul Navaz
--
Abdul Navaz
Masters in Network Communications
University of Houston
Houston, TX - 77204-4020Ph - 281-685-0388fabdulnavaz@uh.edu
CONFIDENTIALITY NOTICENOTICE: 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.
Re: JAVA cannot execute binary file
Posted by Jiayu Ji <ji...@gmail.com>.
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 <hm...@hortonworks.com> 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 <na...@gmail.com> 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* <fa...@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
Re: JAVA cannot execute binary file
Posted by Haohui Mai <hm...@hortonworks.com>.
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 <na...@gmail.com> 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* <fa...@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.
Re: JAVA cannot execute binary file
Posted by Haohui Mai <hm...@hortonworks.com>.
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 <na...@gmail.com> 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* <fa...@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.
Re: JAVA cannot execute binary file
Posted by Haohui Mai <hm...@hortonworks.com>.
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 <na...@gmail.com> 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* <fa...@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.
Re: JAVA cannot execute binary file
Posted by Haohui Mai <hm...@hortonworks.com>.
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 <na...@gmail.com> 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* <fa...@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.
Re: JAVA cannot execute binary file
Posted by navaz <na...@gmail.com>.
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*
*fabdulnavaz@uh.edu* <fa...@uh.edu>
Re: JAVA cannot execute binary file
Posted by navaz <na...@gmail.com>.
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*
*fabdulnavaz@uh.edu* <fa...@uh.edu>
Re: JAVA cannot execute binary file
Posted by navaz <na...@gmail.com>.
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*
*fabdulnavaz@uh.edu* <fa...@uh.edu>
Re: JAVA cannot execute binary file
Posted by navaz <na...@gmail.com>.
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*
*fabdulnavaz@uh.edu* <fa...@uh.edu>
RE: JAVA cannot execute binary file
Posted by German Florez-Larrahondo <ge...@samsung.com>.
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%20In
structions.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
Re: JAVA cannot execute binary file
Posted by Hardik Pandya <sm...@gmail.com>.
are you exporting java home in hadoop-env.sh
export JAVA_HOME=/usr/lib/jvm/java-7-oracle
Also, make sure your java installed correctly
To Install Java
Add following PPA and install the latest Oracle Java (JDK) 7 in Ubuntu
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update && sudo apt-get install oracle-jdk7-installer
Check if your OS uses Java JDK 7
1
java -version
If installed correctly you will get following result
java version "1.7.0_17"
Java(TM) SE Runtime Environment (build 1.7.0_17-b02)
Java HotSpot(TM) 64-Bit Server VM (build 23.7-b01, mixed mode)
On Tue, Jan 7, 2014 at 3:12 PM, navaz <na...@gmail.com> wrote:
> 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*
>
>
>
Re: JAVA cannot execute binary file
Posted by Hardik Pandya <sm...@gmail.com>.
are you exporting java home in hadoop-env.sh
export JAVA_HOME=/usr/lib/jvm/java-7-oracle
Also, make sure your java installed correctly
To Install Java
Add following PPA and install the latest Oracle Java (JDK) 7 in Ubuntu
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update && sudo apt-get install oracle-jdk7-installer
Check if your OS uses Java JDK 7
1
java -version
If installed correctly you will get following result
java version "1.7.0_17"
Java(TM) SE Runtime Environment (build 1.7.0_17-b02)
Java HotSpot(TM) 64-Bit Server VM (build 23.7-b01, mixed mode)
On Tue, Jan 7, 2014 at 3:12 PM, navaz <na...@gmail.com> wrote:
> 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*
>
>
>
RE: JAVA cannot execute binary file
Posted by German Florez-Larrahondo <ge...@samsung.com>.
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%20In
structions.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
RE: JAVA cannot execute binary file
Posted by German Florez-Larrahondo <ge...@samsung.com>.
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%20In
structions.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
RE: JAVA cannot execute binary file
Posted by German Florez-Larrahondo <ge...@samsung.com>.
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%20In
structions.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
Re: JAVA cannot execute binary file
Posted by Hardik Pandya <sm...@gmail.com>.
are you exporting java home in hadoop-env.sh
export JAVA_HOME=/usr/lib/jvm/java-7-oracle
Also, make sure your java installed correctly
To Install Java
Add following PPA and install the latest Oracle Java (JDK) 7 in Ubuntu
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update && sudo apt-get install oracle-jdk7-installer
Check if your OS uses Java JDK 7
1
java -version
If installed correctly you will get following result
java version "1.7.0_17"
Java(TM) SE Runtime Environment (build 1.7.0_17-b02)
Java HotSpot(TM) 64-Bit Server VM (build 23.7-b01, mixed mode)
On Tue, Jan 7, 2014 at 3:12 PM, navaz <na...@gmail.com> wrote:
> 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*
>
>
>
Re: JAVA cannot execute binary file
Posted by Hardik Pandya <sm...@gmail.com>.
are you exporting java home in hadoop-env.sh
export JAVA_HOME=/usr/lib/jvm/java-7-oracle
Also, make sure your java installed correctly
To Install Java
Add following PPA and install the latest Oracle Java (JDK) 7 in Ubuntu
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update && sudo apt-get install oracle-jdk7-installer
Check if your OS uses Java JDK 7
1
java -version
If installed correctly you will get following result
java version "1.7.0_17"
Java(TM) SE Runtime Environment (build 1.7.0_17-b02)
Java HotSpot(TM) 64-Bit Server VM (build 23.7-b01, mixed mode)
On Tue, Jan 7, 2014 at 3:12 PM, navaz <na...@gmail.com> wrote:
> 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*
>
>
>