Dear All:
After hadoop namenode -format I do the following with errors.
anand_vihar@linux-v4vm:~/hadoop/etc/hadoop> hadoop start-dfs.sh
Error: Could not find or load main class start-dfs.sh
anand_vihar@linux-v4vm:~/hadoop/etc/hadoop> start-dfs.sh
Incorrect configuration: namenode address dfs.namenode.servicerpc-address or 
dfs.namenode.rpc-address is not configured.
Starting namenodes on [2014-11-24 18:47:27,717 WARN  [main] 
util.NativeCodeLoader (NativeCodeLoader.java:<clinit>(62)) - Unable to load 
native-hadoop library for your platform... using builtin-java classes where 
applicable]
Error: Cannot find configuration directory: /etc/hadoop
Error: Cannot find configuration directory: /etc/hadoop
Starting secondary namenodes [2014-11-24 18:47:28,457 WARN  [main] 
util.NativeCodeLoader (NativeCodeLoader.java:<clinit>(62)) - Unable to load 
native-hadoop library for your platform... using builtin-java classes where 
applicable
0.0.0.0]
Error: Cannot find configuration directory: /etc/hadoop
But in my hadoop-env.sh I have set 

export JAVA_HOME=/usr/lib64/jdk1.7.1_71/jdk7u71
export HADOOP_HOME=/anand_vihar/hadoopexport 
PATH=:PATH:$HADOOP_HOME/bin:$HADOOP_HOME/sbin:$HADOOP_HOME/share
Would anyone know how to fix this problem.
Thanks
Regards,

 Anand Murali  11/7, 'Anand Vihar', Kandasamy St, MylaporeChennai - 600 004, 
IndiaPh: (044)- 28474593/ 43526162 (voicemail) 

     On Monday, November 24, 2014 6:30 PM, Anand Murali <[email protected]> 
wrote:
   

 it works thanks
 Anand Murali  11/7, 'Anand Vihar', Kandasamy St, MylaporeChennai - 600 004, 
IndiaPh: (044)- 28474593/ 43526162 (voicemail) 

     On Monday, November 24, 2014 6:19 PM, Anand Murali <[email protected]> 
wrote:
   

 Ok. Many thanks I shall try.
 Anand Murali  11/7, 'Anand Vihar', Kandasamy St, MylaporeChennai - 600 004, 
IndiaPh: (044)- 28474593/ 43526162 (voicemail) 

     On Monday, November 24, 2014 6:13 PM, Rohith Sharma K S 
<[email protected]> wrote:
   

 #yiv4529942168 -- filtered {font-family:Helvetica;panose-1:2 11 6 4 2 2 2 2 2 
4;}#yiv4529942168 filtered {font-family:SimSun;panose-1:2 1 6 0 3 1 1 1 1 
1;}#yiv4529942168 filtered {panose-1:2 4 5 3 5 4 6 3 2 4;}#yiv4529942168 
filtered {font-family:Calibri;panose-1:2 15 5 2 2 2 4 3 2 4;}#yiv4529942168 
filtered {font-family:Tahoma;panose-1:2 11 6 4 3 5 4 4 2 4;}#yiv4529942168 
filtered {panose-1:2 1 6 0 3 1 1 1 1 1;}#yiv4529942168 
p.yiv4529942168MsoNormal, #yiv4529942168 li.yiv4529942168MsoNormal, 
#yiv4529942168 div.yiv4529942168MsoNormal 
{margin:0cm;margin-bottom:.0001pt;font-size:12.0pt;}#yiv4529942168 a:link, 
#yiv4529942168 span.yiv4529942168MsoHyperlink 
{color:blue;text-decoration:underline;}#yiv4529942168 a:visited, #yiv4529942168 
span.yiv4529942168MsoHyperlinkFollowed 
{color:purple;text-decoration:underline;}#yiv4529942168 
span.yiv4529942168EmailStyle17 {color:#1F497D;}#yiv4529942168 
.yiv4529942168MsoChpDefault {font-size:10.0pt;}#yiv4529942168 filtered 
{margin:72.0pt 72.0pt 72.0pt 72.0pt;}#yiv4529942168  
div.yiv4529942168WordSection1 {}#yiv4529942168 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:[email protected]]
Sent: 24 November 2014 17:44
To: [email protected]; [email protected]
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