<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: How can i remove registered host but do not added. in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/How-can-i-remove-registered-host-but-do-not-added/m-p/116014#M78808</link>
    <description>&lt;P&gt;"hdfs dfsadmin -report" command is not shown registered but don't added hosts.&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;refreshNamenodes datanodehost:port &lt;/TD&gt;&lt;TD&gt;For the given datanode, reloads the configuration files, stops serving the removed block-pools and starts serving new block-pools.&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;
&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;refreshNodes&lt;/TD&gt;&lt;TD&gt;Re-read the hosts and exclude files to update the set of Datanodes that are allowed to connect to the Namenode and those that should be decommissioned or recommissioned.&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;I think refreshNamenodes command is not correct in my problem, so i try to refreshNodes command, but it doesn't works. Ambari-server still write heartbeat lost log.&lt;/P&gt;</description>
    <pubDate>Tue, 23 Aug 2016 16:04:52 GMT</pubDate>
    <dc:creator>sam6315</dc:creator>
    <dc:date>2016-08-23T16:04:52Z</dc:date>
    <item>
      <title>How can i remove registered host but do not added.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-can-i-remove-registered-host-but-do-not-added/m-p/116010#M78804</link>
      <description>&lt;P&gt;My cluster have registered hosts but do not added on cluster.&lt;/P&gt;&lt;P&gt;It means that, &lt;/P&gt;&lt;P&gt;I was installed ambari-agent on some hosts.&lt;/P&gt;&lt;P&gt;This hosts registered to ambari-server by changing server hostname on amber-agent.ini&lt;/P&gt;&lt;P&gt;But, I didn't registered on cluster using ambari web UI.&lt;/P&gt;&lt;P&gt;Some times later, when i was checked ambari-server log, ambari server still check this host's heartbeat.&lt;/P&gt;&lt;P&gt;"WARN [ambari-hearbeat-monitor] HeartbeatMonitor:154 - Heartbeat lost from host hostname"&lt;/P&gt;&lt;P&gt;how can i remove this hosts?&lt;/P&gt;</description>
      <pubDate>Tue, 23 Aug 2016 14:51:31 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-can-i-remove-registered-host-but-do-not-added/m-p/116010#M78804</guid>
      <dc:creator>sam6315</dc:creator>
      <dc:date>2016-08-23T14:51:31Z</dc:date>
    </item>
    <item>
      <title>Re: How can i remove registered host but do not added.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-can-i-remove-registered-host-but-do-not-added/m-p/116011#M78805</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/12140/sam6315.html" nodeid="12140"&gt;&lt;/A&gt;&lt;A href="https://community.cloudera.com/legacyfs/online/attachments/6866-host-list.jpeg"&gt;host-list.jpeg&lt;/A&gt;&lt;A href="https://community.cloudera.com/legacyfs/online/attachments/6867-host-details.jpeg"&gt;host-details.jpeg&lt;/A&gt;@James Lee&lt;P&gt; Do you see these unwanted hosts under 'hosts' tab in ambari?&lt;/P&gt;&lt;P&gt;Then click on that particular host's page and goto host details page. From the 'hosts action' dropdown, delete the host.&lt;/P&gt;&lt;P&gt;Attaching the screenshots.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Aug 2016 14:58:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-can-i-remove-registered-host-but-do-not-added/m-p/116011#M78805</guid>
      <dc:creator>ssharma</dc:creator>
      <dc:date>2016-08-23T14:58:10Z</dc:date>
    </item>
    <item>
      <title>Re: How can i remove registered host but do not added.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-can-i-remove-registered-host-but-do-not-added/m-p/116012#M78806</link>
      <description>&lt;P&gt;I don't add on Ambari web ui. So, I can't see anywhere. &lt;/P&gt;&lt;P&gt;But, ambari-server still check heartbeat.&lt;/P&gt;&lt;P&gt;When i try to add host, on Confirm hosts tab, i can see this hosts on 'Other Registered Hosts' menu.&lt;/P&gt;&lt;P&gt;This menu say that, "These are the hosts that have registered with the server, but do not appear in the list of hosts that you are adding."&lt;/P&gt;</description>
      <pubDate>Tue, 23 Aug 2016 15:11:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-can-i-remove-registered-host-but-do-not-added/m-p/116012#M78806</guid>
      <dc:creator>sam6315</dc:creator>
      <dc:date>2016-08-23T15:11:26Z</dc:date>
    </item>
    <item>
      <title>Re: How can i remove registered host but do not added.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-can-i-remove-registered-host-but-do-not-added/m-p/116013#M78807</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/12140/sam6315.html" nodeid="12140"&gt;@James Lee&lt;/A&gt;&lt;P&gt;To remove the host from the cluster follow below steps -&lt;/P&gt;&lt;P&gt;1. Stop the ambari-agent on the node. you want to remove.&lt;/P&gt;&lt;P&gt;2. Remove the ambari-agent packages from that node using $yum remove ambari-agent&lt;/P&gt;&lt;P&gt;3. On safer side you can run $hdfs dfsadmin -refreshNamenodes command to refresh nodes on cluster&lt;/P&gt;&lt;P&gt;4. Confirm using $hdfs dfsadmin -report the host is no more part of cluster.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Aug 2016 15:29:17 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-can-i-remove-registered-host-but-do-not-added/m-p/116013#M78807</guid>
      <dc:creator>sshimpi</dc:creator>
      <dc:date>2016-08-23T15:29:17Z</dc:date>
    </item>
    <item>
      <title>Re: How can i remove registered host but do not added.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-can-i-remove-registered-host-but-do-not-added/m-p/116014#M78808</link>
      <description>&lt;P&gt;"hdfs dfsadmin -report" command is not shown registered but don't added hosts.&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;refreshNamenodes datanodehost:port &lt;/TD&gt;&lt;TD&gt;For the given datanode, reloads the configuration files, stops serving the removed block-pools and starts serving new block-pools.&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;
&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;refreshNodes&lt;/TD&gt;&lt;TD&gt;Re-read the hosts and exclude files to update the set of Datanodes that are allowed to connect to the Namenode and those that should be decommissioned or recommissioned.&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;I think refreshNamenodes command is not correct in my problem, so i try to refreshNodes command, but it doesn't works. Ambari-server still write heartbeat lost log.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Aug 2016 16:04:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-can-i-remove-registered-host-but-do-not-added/m-p/116014#M78808</guid>
      <dc:creator>sam6315</dc:creator>
      <dc:date>2016-08-23T16:04:52Z</dc:date>
    </item>
    <item>
      <title>Re: How can i remove registered host but do not added.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-can-i-remove-registered-host-but-do-not-added/m-p/116015#M78809</link>
      <description>&lt;P&gt;I was found this hosts ambari.hosts and ambari.hoststate on postgre database.&lt;/P&gt;&lt;P&gt;This host's health_status is UNKNOWN.&lt;/P&gt;&lt;P&gt;I want to remove this hosts clearly.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Aug 2016 16:14:04 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-can-i-remove-registered-host-but-do-not-added/m-p/116015#M78809</guid>
      <dc:creator>sam6315</dc:creator>
      <dc:date>2016-08-23T16:14:04Z</dc:date>
    </item>
    <item>
      <title>Re: How can i remove registered host but do not added.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-can-i-remove-registered-host-but-do-not-added/m-p/116016#M78810</link>
      <description>&lt;P&gt;Ideally on every restart of ambari agent it sends a registration request to the ambari server along with it's latest (Hostname+IPAddress). That is then stored in the "hosts" table of ambari DB.&lt;/P&gt;&lt;P&gt;You can check the hostnames that are registered using the curl command as following:&lt;/P&gt;&lt;PRE&gt;curl -i -H "X-Requested-By: ambari"-u admin:admin -X GET &lt;A href="http://localhost:8080/api/v1/hosts" target="_blank"&gt;http://localhost:8080/api/v1/hosts&lt;/A&gt;&lt;/PRE&gt;&lt;OL&gt;
&lt;LI&gt;If you find that the hostnames are not correctly set/updated then may be you can take a look at the following article to check the public_hostname / hostname:&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/content/kbentry/42872/why-ambari-host-might-have-different-public-host-n.html"&gt;https://community.hortonworks.com/content/kbentry/42872/why-ambari-host-might-have-different-public-host-n.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;So if you do not want to incorrect agent to be registered then uninstall that agent and do not restart it back.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Aug 2016 16:47:24 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-can-i-remove-registered-host-but-do-not-added/m-p/116016#M78810</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-08-23T16:47:24Z</dc:date>
    </item>
    <item>
      <title>Re: How can i remove registered host but do not added.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-can-i-remove-registered-host-but-do-not-added/m-p/116017#M78811</link>
      <description>&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;Because if the ambari-agent is in running state then you will see the same issue again.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Aug 2016 18:37:02 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-can-i-remove-registered-host-but-do-not-added/m-p/116017#M78811</guid>
      <dc:creator>sganatra</dc:creator>
      <dc:date>2016-08-23T18:37:02Z</dc:date>
    </item>
    <item>
      <title>Re: How can i remove registered host but do not added.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-can-i-remove-registered-host-but-do-not-added/m-p/116018#M78812</link>
      <description>&lt;P&gt;You could remove via delete statement in psql.. &lt;/P&gt;&lt;P&gt; 1) Removing table entries in hoststate : Delete from hoststate where host_id=xx &lt;/P&gt;&lt;P&gt; 2) Removing table entries from hosts  : Delete from hosts where host_id=xx &lt;/P&gt;&lt;P&gt;And restart ambari-server &lt;/P&gt;</description>
      <pubDate>Tue, 23 Aug 2016 19:01:59 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-can-i-remove-registered-host-but-do-not-added/m-p/116018#M78812</guid>
      <dc:creator>sganatra</dc:creator>
      <dc:date>2016-08-23T19:01:59Z</dc:date>
    </item>
    <item>
      <title>Re: How can i remove registered host but do not added.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-can-i-remove-registered-host-but-do-not-added/m-p/116019#M78813</link>
      <description>&lt;P&gt;You could remove via delete statement in psql.. &lt;/P&gt;&lt;P&gt;1) Removing table entries in hoststate : Delete from hoststate where host_id=xx &lt;/P&gt;&lt;P&gt;2) Removing table entries from hosts : Delete from hosts where host_id=xx &lt;/P&gt;&lt;P&gt;And restart ambari-server &lt;/P&gt;&lt;P&gt;thx. It works. &lt;/P&gt;</description>
      <pubDate>Wed, 24 Aug 2016 07:16:56 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-can-i-remove-registered-host-but-do-not-added/m-p/116019#M78813</guid>
      <dc:creator>sam6315</dc:creator>
      <dc:date>2016-08-24T07:16:56Z</dc:date>
    </item>
    <item>
      <title>Re: How can i remove registered host but do not added.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-can-i-remove-registered-host-but-do-not-added/m-p/116020#M78814</link>
      <description>&lt;P&gt;This curl command shown registered hosts. thx!&lt;/P&gt;&lt;P&gt;I try to below command, it works.&lt;/P&gt;&lt;P&gt;curl -i -H "X-Requested-By: ambari"-u admin:admin -X DELETE &lt;A href="http://localhost:8080/api/v1/hosts/hotname"&gt;http://localhost:8080/api/v1/hosts/hotname&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Aug 2016 07:45:19 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-can-i-remove-registered-host-but-do-not-added/m-p/116020#M78814</guid>
      <dc:creator>sam6315</dc:creator>
      <dc:date>2016-08-24T07:45:19Z</dc:date>
    </item>
    <item>
      <title>Re: How can i remove registered host but do not added.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-can-i-remove-registered-host-but-do-not-added/m-p/116021#M78815</link>
      <description>&lt;P&gt;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&lt;/P&gt;</description>
      <pubDate>Mon, 02 Jan 2017 16:22:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-can-i-remove-registered-host-but-do-not-added/m-p/116021#M78815</guid>
      <dc:creator>dpnctl</dc:creator>
      <dc:date>2017-01-02T16:22:18Z</dc:date>
    </item>
    <item>
      <title>Re: How can i remove registered host but do not added.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-can-i-remove-registered-host-but-do-not-added/m-p/116022#M78816</link>
      <description>&lt;P&gt;Above curl command worked in my case. Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Feb 2018 16:54:57 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-can-i-remove-registered-host-but-do-not-added/m-p/116022#M78816</guid>
      <dc:creator>ramu_valleti</dc:creator>
      <dc:date>2018-02-22T16:54:57Z</dc:date>
    </item>
  </channel>
</rss>

