The problem is with setting JAVA_HOME. There is .(Dot) before /usr which cause 
append current directory.
export JAVA_HOME=./usr/lib64/jdk1.7.0_71/jdk7u71

Do not use .(Dot) before /usr.

Thanks & Regards
Rohith Sharma K S

This e-mail and its attachments contain confidential information from HUAWEI, 
which is intended only for the person or entity whose address is listed above. 
Any use of the information contained herein in any way (including, but not 
limited to, total or partial disclosure, reproduction, or dissemination) by 
persons other than the intended recipient(s) is prohibited. If you receive this 
e-mail in error, please notify the sender by phone or email immediately and 
delete it!

From: Anand Murali [mailto:anand_vi...@yahoo.com]
Sent: 24 November 2014 17:44
To: user@hadoop.apache.org; user@hadoop.apache.org
Subject: Hadoop Installation Path problem

Hi All:


I have done the follwoing in hadoop-env.sh

export JAVA_HOME=./usr/lib64/jdk1.7.0_71/jdk7u71
export HADOOP_HOME=/home/anand_vihar/hadoop
export PATH=:$PATH:$JAVA_HOME:$HADOOP_HOME/bin:$HADOOP_HOME/sbin

Now when I run hadoop-env.sh and type hadoop version, I get this error.

/home/anand_vihar/hadoop/bin/hadoop: line 133: 
/home/anand_vihar/hadoop/etc/hadoop/usr/lib64/jdk1.7.0_71/jdk7u71/bin/java: No 
such file or directory
/home/anand_vihar/hadoop/bin/hadoop: line 133: exec: 
/home/anand_vihar/hadoop/etc/hadoop/usr/lib64/jdk1.7.0_71/jdk7u71/bin/java: 
cannot execute: No such file or directory


Can somebody advise. I have asked this to many people, they all say the obvious 
path problem, but where I cannot debug. This has become a show stopper for me. 
Help most welcome.

Thanks

Regards


Anand Murali
11/7, 'Anand Vihar', Kandasamy St, Mylapore
Chennai - 600 004, India
Ph: (044)- 28474593/ 43526162 (voicemail)

Reply via email to