Return-Path: X-Original-To: apmail-hadoop-common-user-archive@www.apache.org Delivered-To: apmail-hadoop-common-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 581B917A55 for ; Wed, 1 Apr 2015 17:36:38 +0000 (UTC) Received: (qmail 43008 invoked by uid 500); 1 Apr 2015 17:36:26 -0000 Delivered-To: apmail-hadoop-common-user-archive@hadoop.apache.org Received: (qmail 42910 invoked by uid 500); 1 Apr 2015 17:36:26 -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 42900 invoked by uid 99); 1 Apr 2015 17:36:25 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Apr 2015 17:36:25 +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 ravin.iitb@gmail.com designates 209.85.216.179 as permitted sender) Received: from [209.85.216.179] (HELO mail-qc0-f179.google.com) (209.85.216.179) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Apr 2015 17:35:59 +0000 Received: by qcay5 with SMTP id y5so47215421qca.1 for ; Wed, 01 Apr 2015 10:35:58 -0700 (PDT) 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=Is2u8bNgPXkaorDOeMvGqu9+4wQQ6NZU+YgRlmx4NJI=; b=TEUVgxWXy9tS4mICj+q/2njlBrvrnPIaw88A5li6AGQpB97y1OTd68yvvBawaDiNrC FzpOksIn9LDlOeJFWdemw8DFlH7lXEs+W4PxYNl5Y9mOtX5lS62NQcWur78cHulnkvNA tyQKBcAo2bXVJTImZOMRXqf7c4klRXbMH4eu0IryvxhSdjEZ92rSjsVLas1YQuIf3LJj +D4/eVNySIKRkj3kScaHr/5zGcr9V4YFBRbwh6zNykr3MOvHoDHHVYFain/DNnUtWKVr 6j/6EkZmxWysDrNJ9FtTNrvQnC52/FnZoA9scYX3dswMShD2UasdSF7cIdE5j47RE7oH 78/A== MIME-Version: 1.0 X-Received: by 10.140.16.162 with SMTP id 31mr27862878qgb.31.1427909757987; Wed, 01 Apr 2015 10:35:57 -0700 (PDT) Received: by 10.229.119.201 with HTTP; Wed, 1 Apr 2015 10:35:57 -0700 (PDT) In-Reply-To: <2008641998.3548508.1427897283051.JavaMail.yahoo@mail.yahoo.com> References: <2008641998.3548508.1427897283051.JavaMail.yahoo@mail.yahoo.com> Date: Wed, 1 Apr 2015 23:05:57 +0530 Message-ID: Subject: Re: Hadoop 2.6 issue From: Ravindra Kumar Naik To: user@hadoop.apache.org, Anand Murali Content-Type: multipart/alternative; boundary=001a11c0b402e5722b0512ad25c6 X-Virus-Checked: Checked by ClamAV on apache.org --001a11c0b402e5722b0512ad25c6 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi, Creating batch program will not have the same effect. If you put the variables in /etc/environment then it will be available to all users on the operating system. HDFS doesn't run with root privileges. You need to open the application with *sudo* or with root privileges to modify it. e.g. If you are using vi editor then its just *sudo* *vim /etc/environment* (similar, if you are using other editors) and add environment variables there. On Wed, Apr 1, 2015 at 7:38 PM, Anand Murali wrote: > Mr. Ravindra: > > This is visible, however I am unable to modify it, eventhough I have admi= n > priveleges. I am new to the Linux environment. Shall be glad if you did > advise. However, as I told you earlier, I have created a batch program > which contains, JAVA_HOME setting, HADOOP_INSTALL setting and PATH settin= g. > I have rfun this file but I am still unable to start the daemons. I am > following Tom Whyte's -Hadoop definitive Guide book instructions on how t= o > install Hadoop. > > at $hadoop version works. I am able to format namenode, but fail to start > daemons. > > Reply most welcome. > > Thanks > > Anand Murali > 11/7, 'Anand Vihar', Kandasamy St, Mylapore > Chennai - 600 004, India > Ph: (044)- 28474593/ 43526162 (voicemail) > > > > On Wednesday, April 1, 2015 7:04 PM, Ravindra Kumar Naik < > ravin.iitb@gmail.com> wrote: > > > Are you sure that its not there, could you please check the output of thi= s > command > > ls /etc/env* > > > > On Wed, Apr 1, 2015 at 6:55 PM, Anand Murali > wrote: > > Mr. Ravindra: > > I am using Ubuntu 14. Can you please provide the full path. I am logged i= n > as root and it is not found in /etc. In any case what you have suggested = I > have tried creating a batch file and it does not work in my installation. > > Thanks > > > > Anand Murali > 11/7, 'Anand Vihar', Kandasamy St, Mylapore > Chennai - 600 004, India > Ph: (044)- 28474593/ 43526162 (voicemail) > > > > On Wednesday, April 1, 2015 6:50 PM, Ravindra Kumar Naik < > ravin.iitb@gmail.com> wrote: > > > I meant /etc/environment. It should be present if you are using Ubuntu. > > Regards, > Ravindra > > On Wed, Apr 1, 2015 at 6:39 PM, Anand Murali > wrote: > > Mr. Ravindra > > I dont find any etc/environment. Can you be more specific please. I have > done whatever you are saying in a user created batch program and run it, > followed by running hadoop-env.sh and it still does not work. > > Thanks > > Anand Murali > 11/7, 'Anand Vihar', Kandasamy St, Mylapore > Chennai - 600 004, India > Ph: (044)- 28474593/ 43526162 (voicemail) > > > > On Wednesday, April 1, 2015 6:10 PM, Ravindra Kumar Naik < > ravin.iitb@gmail.com> wrote: > > > Hi, > > If you are using Ubuntu then add these lines to /etc/environment > JAVA_HOME=3D** > > PATH=3D"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr= /games:$JAVA_HOME/bin" > > Please put the actual path to JDK in the first line. > > Regards, > Ravindra > > > On Wed, Apr 1, 2015 at 5:50 PM, roland.depratti > wrote: > > Anand, > > Sorry about that, I was assuming Redhat/Centos. > > For Ubuntu, try sudo update-alternatives --config java. > > > > Sent from my Verizon Wireless 4G LTE smartphone > > > -------- Original message -------- > From: Anand Murali > Date: 04/01/2015 7:22 AM (GMT-05:00) > To: user@hadoop.apache.org > Subject: Re: Hadoop 2.6 issue > > Dear Mr.Roland: > > The alternatives command errors out. I have the extracted version of the > Oracle JDK7. However I am ignorant regarding its installation on Ubuntu. > Can you point me to installation material so that I can look up and try. > > Thanks > > Regards, > > Anand Murali > 11/7, 'Anand Vihar', Kandasamy St, Mylapore > Chennai - 600 004, India > Ph: (044)- 28474593/ 43526162 (voicemail) > > > > On Wednesday, April 1, 2015 4:33 PM, Roland DePratti < > roland.depratti@cox.net> wrote: > > > Anand, > > My guess is that your alternatives setup isn=E2=80=99t complete. > > At a prompt, as su, run the command =E2=80=98alternatives - - config java= =E2=80=99. Make > sure that the oracle version is listed and is marked as the active one. > > If it is not, go through the steps to make sure it is. > > - rd > > *From:* Anand Murali [mailto:anand_vihar@yahoo.com] > *Sent:* Wednesday, April 01, 2015 5:42 AM > *To:* user@hadoop.apache.org > *Subject:* Re: Hadoop 2.6 issue > > I continue to get the samede error.I > > export JAVA_HOME=3D/home/anand_vihar/jdk1.0.7_u75 (in hadoop-env.sh) > > > when I echo $JAVA_HOME it shows me the above path but when I $java > -version, it gives me openjdk version > > start-dfs.sh ....... errors out saying JAVA_HOME not set., but echo shows > JAVA_HOME. Strange !! > > > Regards, > > Anand Murali > 11/7, 'Anand Vihar', Kandasamy St, Mylapore > Chennai - 600 004, India > Ph: (044)- 28474593/ 43526162 (voicemail) > > > > > > > > > > > > --001a11c0b402e5722b0512ad25c6 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi,

Creating batch program will not= have the same effect. If you put the variables in /etc/environment then it= will be available to all users on the operating system. HDFS doesn't r= un with root privileges.
You need to open the application with = sudo or with root privileges to modify it.
e.g. If you are using vi = editor then its just sudo vim /etc/environment (similar, if y= ou are using other editors) and add environment variables there.


On = Wed, Apr 1, 2015 at 7:38 PM, Anand Murali <anand_vihar@yahoo.com&g= t; wrote:
Mr. Ravindra:
=

This is visible, however I am unable to mod= ify it, eventhough I have admin priveleges. I am new to the Linux environme= nt. Shall be glad if you did advise. However, as I told you earlier, I have= created a batch program which contains, JAVA_HOME setting, HADOOP_INSTALL = setting and PATH setting. I have rfun this file but I am still unable to st= art the daemons. I am following Tom Whyte's -Hadoop definitive Guide bo= ok instructions on how to install Hadoop.

<= div dir=3D"ltr">at $hadoop version works. I am able to format namenode, but= fail to start daemons.

Re= ply most welcome.

Thanks
=C2=A0
Anand Murali=C2=A0=C2=A0
11= /7, 'Anand Vihar', Kandasamy St, Mylapore
Ch= ennai - 600 004, India
Ph: (044)- 28474593/=C2=A0435= 26162 (voicemail)



On Wednesday, April 1, 2015 7:04 PM, Ravindra Kumar Naik <ravin.iitb@gmail.co= m> wrote:


Are you sure that its not there, could you please check the output of th= is command

ls /etc/env*



On Wed, Apr 1, 2015 at 6:55 PM, Anand Murali <<= a rel=3D"nofollow" shape=3D"rect" href=3D"mailto:anand_vihar@yahoo.com" tar= get=3D"_blank">anand_vihar@yahoo.com> wrote:
Mr. Ravindra:

I am using Ubuntu 14. Can you please provide the full path. I am l= ogged in as root and it is not found in /etc. In any case what you have sug= gested I have tried creating a batch file and it does not work in my instal= lation.

Thanks


<= div>=C2=A0
Anand Murali=C2=A0=C2=A0<= /font>
11/7, 'Anand Vihar', Kandasamy St, Mylapore<= /font>
Chennai - 600 004, India
Ph: = (044)- 28474593/=C2=A043526162 (voicemail)



On Wednesday,= April 1, 2015 6:50 PM, Ravindra Kumar Naik <ravin.iitb= @gmail.com> wrote:


I meant = /etc/environment. It should be present if you are using Ubuntu.

Regards,
Ravindra

On Wed, Apr 1, 201= 5 at 6:39 PM, Anand Murali <anand_vih= ar@yahoo.com> wrote:
Mr. Ravi= ndra

I dont find any etc/environment. Can you be more specific please. I have = done whatever you are saying in a user created batch program and run it, fo= llowed by running hadoop-env.sh and it still does not work.

Thanks
=C2=A0
Anand Murali=C2=A0=C2=A0
11/7, &= #39;Anand Vihar', Kandasamy St, Mylapore
Chennai= - 600 004, India
Ph: (044)- 28474593/=C2=A043526162= (voicemail)



On Wednesday, April 1, 2015 6:10 PM, Ravind= ra Kumar Naik <ravin.iitb@gmail.com> wrote:


Hi,

If you are using Ubuntu then add these lines to /etc/environmen= t
JAVA_HOME=3D<actual path to jdk>
PATH=3D"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/s= bin:/bin:/usr/games:$JAVA_HOME/bin"

Please put the actual path to JDK in the first line.

Regards,
Ravindra


On Wed, Apr 1, 2015 at 5:50 PM, roland= .depratti <roland.depratti@cox.net> wrote:
=20
Anand,

Sorry about that, I was= assuming Redhat/Centos.

For Ubuntu= , try sudo update-alternatives --config java.

=


Sent from my Verizon Wireless 4G LTE= smartphone


----= ---- Original message --------
From: Anand Murali <
anand_vihar@yahoo.com>
Date: 04/01/2= 015 7:22 AM (GMT-05:00)
To: user@had= oop.apache.org
Subject: Re: Hadoop 2.6 issue

Dear Mr.Roland:

The alternatives command errors out. I have the ext= racted version of the Oracle JDK7. However I am ignorant regarding its inst= allation on Ubuntu. Can you point me to installation material so that I can= look up and try.

Thanks

Regards,
=C2=A0
Anand Murali=C2=A0=C2=A0
=
11/7, 'Anand Vihar', Kandasamy St, Mylapore
=
Chennai - 600 004, India
Ph: (044)- 28474= 593/=C2=A043526162 (voicemail)

=

<= div style=3D"font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucid= a Grande,sans-serif;font-size:12px">
=
On Wednesday, April 1, 2015 4:33 PM= , Roland DePratti <roland.depratti@cox.net> wro= te:


Anand,<= /div>
=C2=A0
My guess is that your alternatives setup isn=E2= =80=99t complete.
=C2=A0=
At a prompt, as su, run = the command =E2=80=98alternatives - - config java=E2=80=99. Make sure that = the oracle version is listed and is marked as the active one.
=
=C2=A0
If it is not, go through the steps to make sure it is= .
=C2=A0
-=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 rd
=C2=A0
From: Anand Murali [= mailto:anand_vihar@yahoo.com]
Sen= t: Wednesday, April 01, 2015 5:42 AM
To: user@hadoop.apache.org
Subject: Re= : Hadoop 2.6 issue
=C2=A0
I continue to g= et the samede error.I
=C2=A0
export JAVA_HOME=3D/h= ome/anand_vihar/jdk1.0.7_u75 (in hadoop-env.sh)
=C2=A0<= /div>
=C2=A0
when I echo $JAVA_HOME it shows me the above path = but when I $java -version, it gives me openjdk version
=C2=A0<= /span>
start-dfs.sh ....... errors out saying JAVA_HOME not set., but = echo shows JAVA_HOME. Strange !!
=C2=A0
=C2=A0
Regards,
<= span style=3D"font-size:9.0pt">=C2=A0
Anand Murali=C2=A0= =C2=A0
11/7, 'Anand= Vihar', Kandasamy St, Mylapore<= /span>
Chennai - 600 004, India
Ph: (044)- 28474593/=C2=A043526162 (voicemail)
=C2=A0









=
--001a11c0b402e5722b0512ad25c6--