Return-Path: X-Original-To: apmail-hadoop-hdfs-user-archive@minotaur.apache.org Delivered-To: apmail-hadoop-hdfs-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id ADCB110E3A for ; Tue, 7 Jan 2014 20:26:57 +0000 (UTC) Received: (qmail 35371 invoked by uid 500); 7 Jan 2014 20:26:51 -0000 Delivered-To: apmail-hadoop-hdfs-user-archive@hadoop.apache.org Received: (qmail 35252 invoked by uid 500); 7 Jan 2014 20:26:51 -0000 Mailing-List: contact user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hadoop.apache.org Delivered-To: mailing list user@hadoop.apache.org Received: (qmail 35245 invoked by uid 99); 7 Jan 2014 20:26:51 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Jan 2014 20:26:51 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of smarty.juice@gmail.com designates 209.85.219.50 as permitted sender) Received: from [209.85.219.50] (HELO mail-oa0-f50.google.com) (209.85.219.50) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Jan 2014 20:26:44 +0000 Received: by mail-oa0-f50.google.com with SMTP id l6so767557oag.37 for ; Tue, 07 Jan 2014 12:26:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=3DtNA+UXtfKHcumE0jSAr1wVto8EadFnRWQUEEvGV8I=; b=CBPkvKJotDMQiTyLRKbAQJNSS0cKsYG+Aws2EpEP5SX4/Fkt/s0sYIaE//141+zxUa zBgUBwAkNLxbA3YCRGhlMOHv5e+X36p0VDMZfGv5zlpiX+mJl6oErX7K9tVz+7f1bqSH cGetq+oGbfGA2HTjon3VWxlWxc/bwlSZ9BBF98enHdGZ7D6rUxmJ9WBNaVkbYLsSNE53 9m8cH5Vd9A1ppgzO/pT2BWaJNYPyy5Qk1p6shBbxfVWAJixLqls8F0OdkLvM89hH7XR+ lY4zgYL/a12SC1P39EzLwZJYEVR1L5zcGpxq2ihkIOt9bAwGd1R3qdWQ6r8ALmyHQ1rf y0uA== MIME-Version: 1.0 X-Received: by 10.182.199.70 with SMTP id ji6mr78297135obc.36.1389126382955; Tue, 07 Jan 2014 12:26:22 -0800 (PST) Received: by 10.182.28.165 with HTTP; Tue, 7 Jan 2014 12:26:22 -0800 (PST) In-Reply-To: References: Date: Tue, 7 Jan 2014 15:26:22 -0500 Message-ID: Subject: Re: JAVA cannot execute binary file From: Hardik Pandya To: user@hadoop.apache.org Content-Type: multipart/alternative; boundary=e89a8ff1cbda9ab22804ef67301e X-Virus-Checked: Checked by ClamAV on apache.org --e89a8ff1cbda9ab22804ef67301e Content-Type: text/plain; charset=ISO-8859-1 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 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* > > > --e89a8ff1cbda9ab22804ef67301e Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
are you exporting java home in hado= op-env.sh

export JAVA_HOME=3D/= usr/lib/jvm/java= -7-= oracle

Also, make su= re your java installed correctly

To Install Java

Add following PPA and install the latest O= racle Java (JDK) 7 in Ubuntu

<= div style=3D"margin:0px;padding:0px 5px;border:0px;font-family:inherit;font= -style:inherit;font-variant:inherit;vertical-align:baseline;text-align:cent= er;font-weight:inherit!important;line-height:inherit!important;min-height:i= nherit!important">
sudo add<= span style=3D"margin:0px;padding:0px;border:0px;font-family:inherit;font-st= yle:inherit;font-variant:inherit;vertical-align:baseline;display:inline-blo= ck;zoom:1;font-weight:inherit!important;line-height:inherit!important">-apt-repo= sitory ppa:webupd8team/java

sudo apt<= span style=3D"margin:0px;padding:0px;border:0px;font-family:inherit;font-st= yle:inherit;font-variant:inherit;vertical-align:baseline;display:inline-blo= ck;zoom:1;font-weight:inherit!important;line-height:inherit!important">-get update && sudo ap= t-get in= stall oracle-jdk7-installer

Check if your OS uses Java JDK 7=A0

<= div style=3D"margin:0px;padding:0px 5px;border:0px;font-family:inherit;font= -style:inherit;font-variant:inherit;vertical-align:baseline;text-align:cent= er;font-weight:inherit!important;line-height:inherit!important;min-height:i= nherit!important"> 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> wrot= e:
Hi

I am following the hadoop document.<= /span>
Installed JDK7.

V= M:
=3D=3D=3D=3D
<= br>
hduser@base:~$ lsb_release -a
No = LSB modules are available.
Distributor ID: Ubuntu
Description: =A0 =A0Ubuntu 13.04
Release: =A0 =A0 =A0 =A013.04
Codename: =A0 =A0 =A0 raring
hduser@base:~$

But I a= m 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 na= menode -format
/usr/local/hadoop/bin/hadoop: line 320: /usr/lib/jvm/jdk1.7.0//bin/java= : cannot execute binary file
/usr/local/hadoop/bin/h= adoop: line 390: /usr/lib/jvm/jdk1.7.0//bin/java: cannot execute binary fil= e
/usr/local/hadoop/bin/hadoop: line 390: /usr/lib/jvm/jdk1.7.0//bin/java: Su= ccess
hduser@base:~$
hduser@b= ase:~$


Could you= please help me in this.
<= br>
Thanks & Regrads
Abdul Navaz



--e89a8ff1cbda9ab22804ef67301e--