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 <[email protected]> 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 <
> [email protected]> wrote:
>
>
> Hi,
>
> If you are using Ubuntu then add these lines to /etc/environment
> JAVA_HOME=*<actual path to jdk>*
>
> PATH="/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 <[email protected]>
> 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 <[email protected]>
> Date: 04/01/2015 7:22 AM (GMT-05:00)
> To: [email protected]
> 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 <
> [email protected]> wrote:
>
>
> Anand,
>
> My guess is that your alternatives setup isn’t complete.
>
> At a prompt, as su, run the command ‘alternatives - - config java’. 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:[email protected]]
> *Sent:* Wednesday, April 01, 2015 5:42 AM
> *To:* [email protected]
> *Subject:* Re: Hadoop 2.6 issue
>
> I continue to get the samede error.I
>
> export JAVA_HOME=/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)
>
>
>
>
>
>

Reply via email to