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

Ambari Services are not started and tried restarting all services but name node isnot starting.

After my ambari server installation and cluster setup. When I see the dashboard all the services are stopped.

I tired Start All services from Actions dropdown. But it is failing at Name node start. Please find the attached screen shot. Kindly help me on the same to start all services and run ambari cluster.

Error orrcured during NameNode Start:

refused; For more details see:  http://wiki.apache.org/hadoop/ConnectionRefused
safemode: Call From java.net.UnknownHostException: chaithu: chaithu: Name or service not known to localhost:8020 failed on connection exception: java.net.ConnectException: Connection refused; For more details see:  http://wiki.apache.org/hadoop/ConnectionRefused
2017-12-02 18:14:28,474 - Retrying after 10 seconds. Reason: Execution of '/usr/hdp/current/hadoop-hdfs-namenode/bin/hdfs dfsadmin -fs hdfs://localhost:8020 -safemode get | grep 'Safe mode is OFF'' returned 1. safemode: Call From java.net.UnknownHostException: chaithu: chaithu: Name or service not known to localhost:8020 failed on connection exception: java.net.ConnectException: Connection refused; For more details see:  http://wiki.apache.org/hadoop/ConnectionRefused
safemode: Call From java.net.UnknownHostException: chaithu: chaithu: Temporary failure in name resolution to localhost:8020 failed on connection exception: java.net.ConnectException: Connection refused; For more details see:  http://wiki.apache.org/hadoop/ConnectionRefused
2017-12-02 18:14:52,563 - Retrying after 10 seconds. Reason: Execution of '/usr/hdp/current/hadoop-hdfs-namenode/bin/hdfs dfsadmin -fs hdfs://localhost:8020 -safemode get | grep 'Safe mode is OFF'' returned 1. safemode: Call From java.net.UnknownHostException: chaithu: chaithu: Temporary failure in name resolution to localhost:8020 failed on connection exception: java.net.ConnectException: Connection refused; For more details see:  http://wiki.apache.org/hadoop/ConnectionRefused
safemode: Call From java.net.UnknownHostException: chaithu: chaithu: Name or service not known to localhost:8020 failed on connection exception: java.net.ConnectException: Connection refused; For more details see:  http://wiki.apache.org/hadoop/ConnectionRefused
2017-12-02 18:15:06,428 - Retrying after 10 seconds. Reason: Execution of '/usr/hdp/current/hadoop-hdfs-namenode/bin/hdfs dfsadmin -fs hdfs://localhost:8020 -safemode get | grep 'Safe mode is OFF'' returned 1. safemode: Call From java.net.UnknownHostException: chaithu: chaithu: Name or service not known to localhost:8020 failed on connection exception: java.net.ConnectException: Connection refused; For more details see:  http://wiki.apache.org/hadoop/ConnectionRefused

Command failed after 1 tries

Thanks in Advance.


screenshot-from-2017-12-02-18-51-25.png
3 REPLIES 3

@Chaitanya D,

Can you try changing 'dfs.namenode.rpc-address' to 'chaithu:8020' . Replace localhost with chaithu in all the configs.

You can find the config in HDFS -> Configs -> Advanced ->Advanced hdfs-site.

Make sure to restart all required services after making the change.

Thanks,

Aditya

Hi Aditya,

Tried the same as you said. But when i restarted all services which impact changes it is taking more time(more than 1.5 hrs) but no task got completed/started. All showing in running state. Dont know what might be the issue(I did not found any issue log as well).

Is there any other way to perform the same

@Chaitanya D,

I remember that you were using a single node. If your RAM is not high (<16GB) , I recommend you not to start all the services. Start the services which are required for you. You can try restarting ambari agent and try starting the services again.

ambari-agent restart

Thanks,

Aditya

; ;