Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]
Created 08-23-2016 07:51 AM
My cluster have registered hosts but do not added on cluster.
It means that,
I was installed ambari-agent on some hosts.
This hosts registered to ambari-server by changing server hostname on amber-agent.ini
But, I didn't registered on cluster using ambari web UI.
Some times later, when i was checked ambari-server log, ambari server still check this host's heartbeat.
"WARN [ambari-hearbeat-monitor] HeartbeatMonitor:154 - Heartbeat lost from host hostname"
how can i remove this hosts?
Created 08-23-2016 11:37 AM
You have a "hoststate" and/or "hosts" table in ambari database which might have an entry of that hostsname which will give you that WARN [ambari-hearbeat-monitor] HeartbeatMonitor:154 - Heartbeat lost from host hostname" on every ambari-server restart is performed as it checks those tables. You might want to have a check if the entry exists then remove those entries by stopping the ambari-server and stopping the ambari-agent of those host which gives you that warning.
Because if the ambari-agent is in running state then you will see the same issue again.
Created 08-24-2016 12:16 AM
You could remove via delete statement in psql..
1) Removing table entries in hoststate : Delete from hoststate where host_id=xx
2) Removing table entries from hosts : Delete from hosts where host_id=xx
And restart ambari-server
thx. It works.
Created 08-23-2016 12:01 PM
You could remove via delete statement in psql..
1) Removing table entries in hoststate : Delete from hoststate where host_id=xx
2) Removing table entries from hosts : Delete from hosts where host_id=xx
And restart ambari-server
Created 01-02-2017 08:22 AM
I restarted the ambari-agent services and was able to reregister we also have an option of ambari-agent reset hdp_server_name this was also required on other 2 hosts