Support Questions
Find answers, ask questions, and share your expertise

Unable to start name node . No services coming up

Unable to start name node . No services coming up

Explorer

Hi Team,

we are unable to bring services on our 2 node cluster (1 Namenode & 1 Data node)

 

Encountered below error

 


File "/usr/lib/python2.6/site-packages/resource_management/libraries/functions/get_user_call_output.py", line 61, in get_user_call_output
raise ExecutionFailed(err_msg, code, files_output[0], files_output[1])
resource_management.core.exceptions.ExecutionFailed: Execution of 'curl -sS -L -w '%{http_code}' -X GET 'http://itxcqchdp01.catmdev.com:50070/webhdfs/v1/ats/done?op=GETFILESTATUS&user.name=hdfs' 1>/tmp/tmpjmSvoP 2>/tmp/tmp5NLyIQ' returned 7. curl: (7) couldn't connect to host
000


safemode: Call From itxcqchdp01.catmdev.com/10.240.41.165 to itxcqchdp01.catmdev.com:8020 failed on connection exception: java.net.ConnectException: Connection refused; For more details see: http://wiki.apache.org/hadoop/ConnectionRefused

 

 

Looks like Namenode is running in safe mode from a long time.

We tried rebooting the server , however issue persists.

 

 

Kindly advise.

Thanks & regards

 

4 REPLIES 4

Re: Unable to start name node . No services coming up

Explorer

HI Team,

Any updates on the following issue pls ?

 

Thanks & Regards

 

Re: Unable to start name node . No services coming up

Super Mentor

@ARVINDR 

Can you try to start the NameNode using command line first and then verify if it comes up fine or not?

and please verify if the port 8020 / 50070 is opened by NameNode successfully or not?

Then try starting other services via ambari.

 

Execute this command on the NameNode host machine(s) to start it manually.

 

# su -l hdfs -c "/usr/hdp/current/hadoop-hdfs-namenode/../hadoop/sbin/hadoop-daemon.sh start namenode"

 

Where $HDFS_USER is the HDFS user. For example, hdfs.


After starting the namenode using the above command line option please check the NameNode logs (in case of any error observed in the log please share the full stack trace).

Please verify if the ports are opened by NameNode properly or not and if firewall is disabled and those ports are accessible from other cluster nodes?

 

# netstat -tnlpa | brep 50070
# netstat -tnlpa | brep 8020

 

.

From DataNode host please verify the Host/Port access (and disable iptables/firewall if running)

# nc -v  itxxxxxxxxxxx01.yyyy.com  8020
(OR)
# telnet  itxxxxxxxxxxx01.yyyy.com  8020



.

Re: Unable to start name node . No services coming up

Explorer

Hi,

We tried below command.

 

PFA enclosed.

 

Pls advise.

 

Thanks & Regards

sudo.jpg

Re: Unable to start name node . No services coming up

Explorer

Hi,

 

Namenode not coming up despite trying the suggested command.

Pls advise.

 

Thanks & regards