hadoop-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hardik Pandya <smarty.ju...@gmail.com>
Subject Re: JAVA cannot execute binary file
Date Tue, 07 Jan 2014 20:26:22 GMT
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 <navaz.enc@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*
>
>
>

Mime
View raw message