- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
How can i remove registered host but do not added.
- Labels:
-
Apache Ambari
Created ‎08-23-2016 07:51 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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

- « Previous
-
- 1
- 2
- Next »