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 28D1317479 for ; Wed, 25 Mar 2015 12:03:53 +0000 (UTC) Received: (qmail 29008 invoked by uid 500); 25 Mar 2015 12:03:45 -0000 Delivered-To: apmail-hadoop-hdfs-user-archive@hadoop.apache.org Received: (qmail 28898 invoked by uid 500); 25 Mar 2015 12:03:45 -0000 Mailing-List: contact user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hadoop.apache.org Delivered-To: mailing list user@hadoop.apache.org Received: (qmail 28888 invoked by uid 99); 25 Mar 2015 12:03:44 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Mar 2015 12:03:44 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of hadoop.support@visolve.com designates 52.11.169.187 as permitted sender) Received: from [52.11.169.187] (HELO visolve.com) (52.11.169.187) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Mar 2015 12:03:40 +0000 Received: from ASSP.nospam (localhost [127.0.0.1]) by visolve.com (Postfix) with ESMTPA id BA0B512C855; Wed, 25 Mar 2015 12:03:21 +0000 (UTC) Received: from abts-tn-static-154.230.165.122.airtelbroadband.in ([122.165.230.154] helo=visolvePC) by ASSP.nospam with SMTPA (2.4.3); 25 Mar 2015 12:03:19 +0000 From: To: "'Anand Murali'" Cc: References: <2083572551.1306445.1427268182321.JavaMail.yahoo@mail.yahoo.com> <1493270603.1346554.1427270410241.JavaMail.yahoo@mail.yahoo.com> <8AD4EE147886274A8B495D6AF407DF69812439A5@szxeml510-mbx.china.huawei.com> <955310621550324C9615786FF4B225B101A571D706@YSIAZMAIL02.ysi.yardi.com> In-Reply-To: <955310621550324C9615786FF4B225B101A571D706@YSIAZMAIL02.ysi.yardi.com> Subject: RE: Hadoop 2.6.0 Error Date: Wed, 25 Mar 2015 17:33:15 +0530 Message-ID: <009101d066f3$aebd9310$0c38b930$@visolve.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0092_01D06721.C87B9B70" X-Mailer: Microsoft Outlook 15.0 Thread-Index: AQENY/rIAY4n7+a8Cdf0e1CKKXCtdwKGaLaqAwJHjyUBrEQTPAG0ZpOGnmvT+6A= Content-Language: en-us X-Assp-Version: 2.4.3(15075) on ASSP.nospam X-Assp-ID: ASSP.nospam 85001-13597 X-Assp-Session: 7F23A8659C10 (mail 1) X-Assp-Envelope-From: hadoop.support@visolve.com X-Assp-Intended-For: anand_vihar@yahoo.com X-Assp-Intended-For: user@hadoop.apache.org X-Assp-Original-Subject: RE: Hadoop 2.6.0 Error X-Virus-Checked: Checked by ClamAV on apache.org This is a multipart message in MIME format. ------=_NextPart_000_0092_01D06721.C87B9B70 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hello Anand, =20 Set your Java home in hadoop-env.sh - = /usr/local/hadoop/etc/hadoop/hadoop-env.sh =20 export JAVA_HOME=3D'/usr/lib/jvm/java-7-openjdk-amd64' =20 It would resolve your error. =20 Thanks, S.RagavendraGanesh ViSolve Hadoop Support Team ViSolve Inc. | San Jose, California Website: www.visolve.com =20 email: services@visolve.com | Phone: = 408-850-2243 =20 =20 From: Alexandru Pacurar [mailto:Alexandru.Pacurar@PropertyShark.com]=20 Sent: Wednesday, March 25, 2015 3:17 PM To: user@hadoop.apache.org Subject: RE: Hadoop 2.6.0 Error =20 Hello, =20 I had a similar problem and my solution to this was setting JAVA_HOME in = /etc/environment. =20 The problem is, from what I remember, that the start-dfs.sh script calls = hadoop-daemons.sh with the necessary options to start the Hadoop = daemons. hadoop-daemons.sh in turn calls hadoop-daemon.sh with the = necessary options via ssh, in an non-interactive fashion. When you are = executing a command via ssh in a non-interactive manner (ex. ssh host1 = =E2=80=98ls -la=E2=80=99 ) you have a minimal environment and you do not = source the .profile file, and other environment related files. But the = /etc/environment is sourced so you could set JAVA_HOME there. = Technically you should set BASH_ENV there which should point to a file = containing the environment variables you need. =20 For more info see = = http://stackoverflow.com/questions/216202/why-does-an-ssh-remote-command-= get-fewer-environment-variables-then-when-run-man, or man bash =20 Thank you, Alex =20 From: Olivier Renault [ = mailto:orenault@hortonworks.com]=20 Sent: Wednesday, March 25, 2015 10:44 AM To: user@hadoop.apache.org; Anand = Murali Subject: Re: Hadoop 2.6.0 Error =20 It should be :=20 export JAVA_HOME=3D=E2=80=A6 =20 Olivier =20 =20 From: Brahma Reddy Battula Reply-To: " user@hadoop.apache.org" Date: Wednesday, 25 March 2015 08:28 To: " user@hadoop.apache.org", Anand = Murali Subject: RE: Hadoop 2.6.0 Error =20 HI Ideally it should take effect , if you configure in .profile or = hadoop-env.sh.. As you told that you set in .profile ( hope you did source ~/.profile = ),,, did you verify that take effect..? ( by checking echo $JAVA_HOME,, or = jps..etc )... =20 Thanks & Regards=20 Brahma Reddy Battula =20 =20 _____ =20 From: Anand Murali [ = anand_vihar@yahoo.com] Sent: Wednesday, March 25, 2015 1:30 PM To: user@hadoop.apache.org; Anand = Murali Subject: Re: Hadoop 2.6.0 Error Dear All: =20 Even after setting JAVA_HOME in .profile I get =20 JAVA_HOME is not set and could not be found -error. =20 =20 If anyone of you know of a more stable version please do let me know. =20 Thanks, =20 Anand Murali =20 11/7, 'Anand Vihar', Kandasamy St, Mylapore Chennai - 600 004, India Ph: (044)- 28474593/ 43526162 (voicemail) =20 =20 On Wednesday, March 25, 2015 12:57 PM, Anand Murali < = anand_vihar@yahoo.com> wrote: =20 Dear Mr. Bhrama Reddy: =20 Should I type =20 SET JAVA_HOME=3D/usr/lib/jvm/java-1.7.0-openjdk-amd64 =20 =20 in root (profile) or at user level (.profile). Reply most welcome =20 Thanks =20 Regards =20 =20 Anand Murali =20 11/7, 'Anand Vihar', Kandasamy St, Mylapore Chennai - 600 004, India Ph: (044)- 28474593/ 43526162 (voicemail) =20 =20 On Wednesday, March 25, 2015 12:37 PM, Anand Murali < = anand_vihar@yahoo.com> wrote: =20 Dear All: =20 I get this error shall try setting JAVA_HOME in .profile =20 Starting namenodes on [localhost] localhost: Error: JAVA_HOME is not set and could not be found. cat: /home/anand_vihar/hadoop-2.6.0/conf/slaves: No such file or = directory Starting secondary namenodes [0.0.0.0] 0.0.0.0: Error: JAVA_HOME is not set and could not be found. = anand_vihar@Latitude-E5540:~/hadoop-2.6.0/sbin$ =20 Thanks =20 Anand Murali =20 11/7, 'Anand Vihar', Kandasamy St, Mylapore Chennai - 600 004, India Ph: (044)- 28474593/ 43526162 (voicemail) =20 =20 On Wednesday, March 25, 2015 12:22 PM, Brahma Reddy Battula < = brahmareddy.battula@huawei.com> = wrote: =20 Instead of exporting the JAVA_HOME, Please set JAVA_HOME in system level = ( like putting in /etc/profile...) For more details please check the following jira. = = https://issues.apache.org/jira/browse/HADOOP-11538 =20 Thanks & Regards Brahma Reddy Battula =20 _____ =20 From: Anand Murali [ = anand_vihar@yahoo.com] Sent: Wednesday, March 25, 2015 11:23 AM To: User Hadoop Subject: Hadoop 2.6.0 Error Dear All: =20 Request help/advise as I am unable to start Hadoop. Performed follow = steps in Ubuntu 14.10 =20 1. ssh localhost 2. Did following exports in user defined hadoop.sh and ran it = succesfully 1. EXPORT JAVA_HOME=3D/usr/lib/jvm/java-7-openjdk-amd64 2. EXPORT HADOOP_INSTALL=3D/home/anand_vihar/hadoop-2.6.0 3. EXPORT PATH=3D:$PATH:$HADOOP_INSTALL/sbin:$HADOOP_INSTALL/bin 3. Tested hadoop version succesfully 4. Ran $hadoop namenode -format successfully 5. Modified core-site.xml, hdfs-site.xml and mapred-site.xml to = pseudo-distributed mode in /home/anand_vihar/conf directory 6. Ran $start-dfs.sh --config /home/anand_vihar/conf =20 Got error JAVA_HOME not set and slaves not found in /conf. If I echo = $JAVA_HOME it is pointing to /usr/lib/jvm/java-7-openjdk-amd6, correctly = as set. Help appreciated. =20 Thanks =20 Regards, =20 Anand Murali =20 11/7, 'Anand Vihar', Kandasamy St, Mylapore Chennai - 600 004, India Ph: (044)- 28474593/ 43526162 (voicemail) =20 =20 =20 ------=_NextPart_000_0092_01D06721.C87B9B70 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable

Hello Anand,

 

Set your Java home in hadoop-env.sh = - /usr/local/hadoop/etc/hadoop/hadoop-env.sh

 

export = JAVA_HOME=3D'/usr/lib/jvm/java-7-openjdk-amd64'

 

It would resolve your error.

 

= Thanks,

= S.RagavendraGanesh

= ViSolve Hadoop Support Team
ViSolve Inc. | San Jose, = California
Website: www.visolve.com

= email: services@visolve.com = | Phone: 408-850-2243

 

 

From:<= /b> = Alexandru Pacurar [mailto:Alexandru.Pacurar@PropertyShark.com] =
Sent: Wednesday, March 25, 2015 3:17 PM
To: = user@hadoop.apache.org
Subject: RE: Hadoop 2.6.0 = Error

 

Hello,

 

I had a similar problem and my solution to this was setting JAVA_HOME = in /etc/environment.

 

The problem is, from what I remember, that the start-dfs.sh script = calls hadoop-daemons.sh with the necessary options to start the Hadoop = daemons. hadoop-daemons.sh in turn calls hadoop-daemon.sh with the = necessary options via ssh, in an non-interactive fashion. When you are = executing a command via ssh in a non-interactive manner (ex. ssh host1 = =E2=80=98ls -la=E2=80=99 ) you have a minimal environment and you do not = source the .profile file, and other environment related files. But the = /etc/environment is sourced so you could set JAVA_HOME there. = Technically you should set BASH_ENV there which should point to a file = containing the environment variables you need.

 

For more info see http://stacko= verflow.com/questions/216202/why-does-an-ssh-remote-command-get-fewer-env= ironment-variables-then-when-run-man, or man bash

 

Thank you,

Alex

 

From:<= /b> = Olivier Renault [mailto:orenau= lt@hortonworks.com] =
Sent: Wednesday, March 25, 2015 10:44 AM
To: =
user@hadoop.a= pache.org; Anand = Murali
Subject: Re: Hadoop 2.6.0 = Error

 

I= t should be : 

e= xport JAVA_HOME=3D=E2=80=A6

<= o:p> 

O= livier

<= o:p> 

<= o:p> 

HI=

Ideally it should take effect , if you configure in .profile or = hadoop-env.sh..

As you told that you set in .profile ( hope you = did source ~/.profile ),,,

 did you verify that take = effect..?  ( by checking echo $JAVA_HOME,, or jps..etc = )...


Fr= om: = Anand Murali [anand_vihar@ya= hoo.com]<= br>Sent: Wednesday, March 25, 2015 1:30 PM
To: =
user@hadoop.ap= ache.org; = Anand Murali
Subject: Re: Hadoop 2.6.0 Error

= Dear All:

=  

= Even after setting JAVA_HOME in .profile I = get

=  

= JAVA_HOME is not set and could not be found = -error.

=  

=  

= If anyone of you know of a more stable version please do let me = know.

=  

= Thanks,

=  

Anand Murali  =

11/7, 'Anand Vihar', Kandasamy St, Mylapore=

Chennai - 600 004, India=

Ph: (044)- 28474593/ 43526162 (voicemail)=

=  

=  

On = Wednesday, March 25, 2015 12:57 PM, Anand Murali <anand_vihar@yah= oo.com>= ; wrote:

 

= Dear Mr. Bhrama Reddy:

=  

= Should I type

=  

= SET = JAVA_HOME=3D/usr/lib/jvm/java-1.7.0-openjdk-amd64

=  

=  

= in root (profile) or at user level (.profile). Reply most = welcome

=  

= Thanks

=  

= Regards

=  

=  

Anand Murali  =

11/7, 'Anand Vihar', Kandasamy St, Mylapore=

Chennai - 600 004, India=

Ph: (044)- 28474593/ 43526162 (voicemail)=

=  

=  

On = Wednesday, March 25, 2015 12:37 PM, Anand Murali <anand_vihar@yah= oo.com>= ; wrote:

 

= Dear All:

=  

= I get this error shall try setting JAVA_HOME in = .profile

=  

= Starting namenodes on [localhost]
localhost: Error: JAVA_HOME is not = set and could not be found.
cat: = /home/anand_vihar/hadoop-2.6.0/conf/slaves: No such file or = directory
Starting secondary namenodes [0.0.0.0]
0.0.0.0: Error: = JAVA_HOME is not set and could not be found.
anand_vihar@= Latitude-E5540:~/hadoop-2.6.0/sbin$=

=  

= Thanks

=  

Anand Murali  =

11/7, 'Anand Vihar', Kandasamy St, Mylapore=

Chennai - 600 004, India=

Ph: (044)- 28474593/ 43526162 (voicemail)=

=  

=  

On = Wednesday, March 25, 2015 12:22 PM, Brahma Reddy Battula <brahmareddy.bat= tula@huawei.com>= ; wrote:

 

In= stead of exporting the JAVA_HOME, Please set JAVA_HOME in system level ( = like putting in /etc/profile...)

For more details please check = the following jira.

https://issues= .apache.org/jira/browse/HADOOP-11538

 

= Thanks & Regards

&n= bsp;Bra= hma Reddy Battula

 


Fr= om: = Anand Murali [anand_vihar@ya= hoo.com]<= br>Sent: Wednesday, March 25, 2015 11:23 AM
To: User = Hadoop
Subject: Hadoop 2.6.0 Error

= Dear All:

=  

= Request help/advise as I am unable to start Hadoop. Performed follow = steps in Ubuntu 14.10

=  

= 1. ssh localhost

= 2. Did following exports in user defined hadoop.sh and ran it = succesfully

=     1. EXPORT = JAVA_HOME=3D/usr/lib/jvm/java-7-openjdk-amd64

=

=     2. EXPORT = HADOOP_INSTALL=3D/home/anand_vihar/hadoop-2.6.0

=     3. EXPORT = PATH=3D:$PATH:$HADOOP_INSTALL/sbin:$HADOOP_INSTALL/bin<= /p>

= 3. Tested hadoop version succesfully

= 4. Ran $hadoop namenode -format = successfully

= 5. Modified core-site.xml, hdfs-site.xml and mapred-site.xml to = pseudo-distributed mode in /home/anand_vihar/conf = directory

= 6. Ran $start-dfs.sh --config = /home/anand_vihar/conf

=  

= Got error JAVA_HOME not set and slaves not found in /conf. If I echo = $JAVA_HOME it is pointing to = /usr/lib/jvm/java-7-openjdk-amd6, correctly as set. Help = appreciated.

=  

= Thanks

=  

= Regards,

=  

Anand Murali  =

11/7, 'Anand Vihar', Kandasamy St, Mylapore=

Chennai - 600 004, India=

Ph: (044)- 28474593/ 43526162 (voicemail)=

 

 

 

<= /div> ------=_NextPart_000_0092_01D06721.C87B9B70--