Mr. Reddy:

I tried both options, and it does not work. starting daemons fail with 
JAVA_HOME not set error. However, if I $ECHO JAVA_HOME it points to the RIGHT 
directory. Have you worked on a lower version of Hadoop, I see that on the 
website they just have 1.2, 2.5 and 2.6. 1.2 does not have Yarn support. Is 2.5 
stable. Path errors are a major issue in hadoop.
Thanks for your suggestions.
 Anand Murali  11/7, 'Anand Vihar', Kandasamy St, MylaporeChennai - 600 004, 
IndiaPh: (044)- 28474593/ 43526162 (voicemail) 


     On Wednesday, March 25, 2015 1:58 PM, Brahma Reddy Battula 
<[email protected]> wrote:
   

 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 )...



Thanks & Regards 
Brahma Reddy Battula 
From: Anand Murali [[email protected]]
Sent: Wednesday, March 25, 2015 1:30 PM
To: [email protected]; 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, MylaporeChennai - 600 004, 
IndiaPh: (044)- 28474593/ 43526162 (voicemail)


On Wednesday, March 25, 2015 12:57 PM, Anand Murali <[email protected]> 
wrote:


Dear Mr. Bhrama Reddy:
Should I type
SET JAVA_HOME=/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, MylaporeChennai - 600 004, 
IndiaPh: (044)- 28474593/ 43526162 (voicemail)


On Wednesday, March 25, 2015 12:37 PM, Anand Murali <[email protected]> 
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, MylaporeChennai - 600 004, 
IndiaPh: (044)- 28474593/ 43526162 (voicemail)


On Wednesday, March 25, 2015 12:22 PM, Brahma Reddy Battula 
<[email protected]> wrote:


#yiv3257277709 #yiv3257277709 -- p 
{margin-top:0;margin-bottom:0;}#yiv3257277709 #yiv3257277709 BODY 
{direction:ltr;font-family:Tahoma;color:#000000;font-size:10pt;}#yiv3257277709 
P {margin-top:0;margin-bottom:0;}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



Thanks & Regards Brahma Reddy Battula
From: Anand Murali [[email protected]]
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 localhost2. Did following exports in user defined hadoop.sh and ran it 
succesfully
    1. EXPORT JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64    2. EXPORT 
HADOOP_INSTALL=/home/anand_vihar/hadoop-2.6.0    3. EXPORT 
PATH=:$PATH:$HADOOP_INSTALL/sbin:$HADOOP_INSTALL/bin
3. Tested hadoop version succesfully4. Ran $hadoop namenode -format 
successfully5. Modified core-site.xml, hdfs-site.xml and mapred-site.xml to 
pseudo-distributed mode in /home/anand_vihar/conf directory6. 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, MylaporeChennai - 600 004, 
IndiaPh: (044)- 28474593/ 43526162 (voicemail)







  

Reply via email to