9.If you changed the host name for the node on which the ambari
server resides, then you must update that name for every ambari-agent.
In /etc/ambari-agent/conf/ambari-agent.ini, update the
"hostname" field to the new host name for node on which the
ambari-server resides.
10.Start
ambari-server and ambari-agents on all hosts.
ambari-server start
ambari-agent start
11.Start
all services, using Ambari Web.
For each, browse to Services > <service_name> > Service
Actions, choose Start.
Note : If you have NameNode HA enabled, after starting the ZooKeeper service, you must:
a.Start all ZooKeeper components.
b.Execute the following command on both NameNode hosts:
hdfs zkfc -formatZK -force