not able to see namenode and datanode when JPS is used


6 Answer(s)


Hi Harish,
 
Please follow the following steps to fix the issue:
 
1)Please make sure the System IP and IP mention in configuration files are same.
 
2) Stop all hadoop services if running or skip this step
--> Command - " stop-all.sh "

3) Delete the hdfs folder and Recreate it and assign the ownership to user again.
--> Command - " sudo rm -r /usr/local/hadoop/hdfs "
--> Command - " sudo mkdir /usr/local/hadoop/hdfs "
--> Command - " sudo chown hadoop /usr/local/hadoop/hdfs "

4) Format the namenode.
--> Command - " hadoop namenode -format "

5) Start all the services
--> Command - " start-all.sh "

Hope this helps.

Thanks.


Hi,  I have tried above all still I am not able to see the namenode and datanode after running the JPS command. Checked for namenode and datanode whether they running or not and they are up. Please find the attached pics for ref



Hi Harish,

Could you please share the bashrc, core-site.xml, mapred-site.xml, masters and slaves files with me.

Please run the following command and share the snapshot with me.

1. $ ifconfig

Thanks.

 

 


Hi abhijeet, 

PFA



Sry missed bash file in previous post



Hi Harish,

You are using the Ubuntu desktop version.

Please do the following to resolve the issue:

- stop-all.sh

- Change the IP's to localhost(in mapred-site.xml & core-site.xml)

- sudo apt-get install apache2

- sudo rm -r /usr/local/hadoop-1.2.1/hdfs/tmp

- sudo mkdir /usr/local/hadoop-1.2.1/hdfs/tmp

- hadoop namenode -format

- start-all.sh

 

Hope this helps.

Thanks