<?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 how to remove a host which include journal node component using ambari in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-remove-a-host-which-include-journal-node-component/m-p/106917#M33517</link>
    <description>&lt;P&gt;a host crashed which include journal node,but now ambari can not remove host which include jurnal node, anyone has i&lt;/P&gt;</description>
    <pubDate>Thu, 30 Jun 2016 21:21:02 GMT</pubDate>
    <dc:creator>Dimd</dc:creator>
    <dc:date>2016-06-30T21:21:02Z</dc:date>
    <item>
      <title>how to remove a host which include journal node component using ambari</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-remove-a-host-which-include-journal-node-component/m-p/106917#M33517</link>
      <description>&lt;P&gt;a host crashed which include journal node,but now ambari can not remove host which include jurnal node, anyone has i&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jun 2016 21:21:02 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-remove-a-host-which-include-journal-node-component/m-p/106917#M33517</guid>
      <dc:creator>Dimd</dc:creator>
      <dc:date>2016-06-30T21:21:02Z</dc:date>
    </item>
    <item>
      <title>Re: how to remove a host which include journal node component using ambari</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-remove-a-host-which-include-journal-node-component/m-p/106918#M33518</link>
      <description>&lt;P style="margin-left: 40px;"&gt; &lt;A rel="user" href="https://community.cloudera.com/users/7467/pla-456.html" nodeid="7467"&gt;@Dim Guy&lt;/A&gt; please take a look at documentation &lt;A href="https://cwiki.apache.org/confluence/display/AMBARI/Using+APIs+to+delete+a+service+or+all+host+components+on+a+host"&gt;here&lt;/A&gt;.&lt;/P&gt;&lt;H2&gt;Removing a Host (2.1.0)&lt;/H2&gt;&lt;H4&gt;&lt;EM&gt;Verified against releases 2.1.0&lt;/EM&gt;&lt;/H4&gt;&lt;P&gt;The preferred way to remove a host is to move the master services from the host, decommission the slave nodes and then remove the host &lt;EM&gt;after&lt;/EM&gt;deleting all the host components. However, there are situations such as the host is lost and cannot be brought back online for graceful removal. Under this circumstances the following API calls can be used to clean up the host. &lt;/P&gt;&lt;P&gt;1. &lt;STRONG&gt;Get a list of host components mapped to the host&lt;/STRONG&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;CODE&gt;curl -u admin:admin -H &lt;/CODE&gt;&lt;CODE&gt;"X-Requested-By: ambari"&lt;/CODE&gt; &lt;CODE&gt;-X GET  http:&lt;/CODE&gt;&lt;CODE&gt;//AMBARI_SERVER_HOST:8080/api/v1/clusters/c1/hosts/HOSTNAME&lt;/CODE&gt;
&lt;/DIV&gt;&lt;/DIV&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;See the property, &lt;STRONG&gt;"host_components"&lt;/STRONG&gt; for all the host.&lt;/P&gt;&lt;P&gt;Sample:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;CODE&gt;Output:&lt;/CODE&gt;
&lt;CODE&gt;...&lt;/CODE&gt;
&lt;CODE&gt;"host_components"&lt;/CODE&gt; &lt;CODE&gt;: [&lt;/CODE&gt;
&lt;CODE&gt;    {&lt;/CODE&gt;
&lt;CODE&gt;"href"&lt;/CODE&gt; &lt;CODE&gt;: &lt;/CODE&gt;&lt;CODE&gt;"&lt;A href="http://ambari_server_host:8080/api/v1/clusters/CLUSTERNAME/hosts/HOSTNAME/host_components/DATANODE"&gt;http://AMBARI_SERVER_HOST:8080/api/v1/clusters/CLUSTERNAME/hosts/HOSTNAME/host_components/DATANODE"&lt;/A&gt;&lt;/CODE&gt;&lt;CODE&gt;,&lt;/CODE&gt;
&lt;CODE&gt;"HostRoles"&lt;/CODE&gt; &lt;CODE&gt;: {&lt;/CODE&gt;
&lt;CODE&gt;"cluster_name"&lt;/CODE&gt; &lt;CODE&gt;: &lt;/CODE&gt;&lt;CODE&gt;"CLUSTERNAME"&lt;/CODE&gt;&lt;CODE&gt;,&lt;/CODE&gt;
&lt;CODE&gt;"component_name"&lt;/CODE&gt; &lt;CODE&gt;: &lt;/CODE&gt;&lt;CODE&gt;"DATANODE"&lt;/CODE&gt;&lt;CODE&gt;,&lt;/CODE&gt;
&lt;CODE&gt;"host_name"&lt;/CODE&gt; &lt;CODE&gt;: &lt;/CODE&gt;&lt;CODE&gt;"HOSTNAME"&lt;/CODE&gt;
&lt;CODE&gt;      }&lt;/CODE&gt;
&lt;CODE&gt;    },&lt;/CODE&gt;
&lt;CODE&gt;    {&lt;/CODE&gt;
&lt;CODE&gt;"href"&lt;/CODE&gt; &lt;CODE&gt;: &lt;/CODE&gt;&lt;CODE&gt;"&lt;A href="http://ambari_server_host:8080/api/v1/clusters/CLUSTERNAME/hosts/HOSTNAME/host_components/GANGLIA_MONITOR"&gt;http://AMBARI_SERVER_HOST:8080/api/v1/clusters/CLUSTERNAME/hosts/HOSTNAME/host_components/GANGLIA_MONITOR"&lt;/A&gt;&lt;/CODE&gt;&lt;CODE&gt;,&lt;/CODE&gt;
&lt;CODE&gt;"HostRoles"&lt;/CODE&gt; &lt;CODE&gt;: {&lt;/CODE&gt;
&lt;CODE&gt;"cluster_name"&lt;/CODE&gt; &lt;CODE&gt;: &lt;/CODE&gt;&lt;CODE&gt;"CLUSTERNAME"&lt;/CODE&gt;&lt;CODE&gt;,&lt;/CODE&gt;
&lt;CODE&gt;"component_name"&lt;/CODE&gt; &lt;CODE&gt;: &lt;/CODE&gt;&lt;CODE&gt;"GANGLIA_MONITOR"&lt;/CODE&gt;&lt;CODE&gt;,&lt;/CODE&gt;
&lt;CODE&gt;"host_name"&lt;/CODE&gt; &lt;CODE&gt;: &lt;/CODE&gt;&lt;CODE&gt;"HOSTNAME"&lt;/CODE&gt;
&lt;CODE&gt;      }&lt;/CODE&gt;
&lt;CODE&gt;    }]&lt;/CODE&gt;
&lt;CODE&gt;...&lt;/CODE&gt;
&lt;/DIV&gt;&lt;/DIV&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;2. &lt;STRONG&gt;DELETE all host components mapped to this host&lt;/STRONG&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;CODE&gt;E.g. Delete DATANODE&lt;/CODE&gt;
&lt;CODE&gt;curl -u admin:admin -H &lt;/CODE&gt;&lt;CODE&gt;"X-Requested-By: ambari"&lt;/CODE&gt; &lt;CODE&gt;-X DELETE http:&lt;/CODE&gt;&lt;CODE&gt;//AMBARI_SERVER_HOST:8080/api/v1/clusters/CLUSTERNAME/hosts/HOSTNAME/host_components/DATANODE&lt;/CODE&gt;
&lt;/DIV&gt;&lt;/DIV&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;3. &lt;STRONG&gt;DELETE the host&lt;/STRONG&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;CODE&gt;curl -u admin:admin -H &lt;/CODE&gt;&lt;CODE&gt;"X-Requested-By: ambari"&lt;/CODE&gt; &lt;CODE&gt;-X DELETE http:&lt;/CODE&gt;&lt;CODE&gt;//AMBARI_SERVER_HOST:8080/api/v1/clusters/CLUSTERNAME/hosts/HOSTNAME&lt;/CODE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 30 Jun 2016 23:00:36 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-remove-a-host-which-include-journal-node-component/m-p/106918#M33518</guid>
      <dc:creator>sunile_manjee</dc:creator>
      <dc:date>2016-06-30T23:00:36Z</dc:date>
    </item>
    <item>
      <title>Re: how to remove a host which include journal node component using ambari</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-remove-a-host-which-include-journal-node-component/m-p/106919#M33519</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/7467/pla-456.html" nodeid="7467"&gt;@Dim Guy&lt;/A&gt; / &lt;A rel="user" href="https://community.cloudera.com/users/1486/smanjee.html" nodeid="1486"&gt;@Sunile Manjee&lt;/A&gt;&lt;/P&gt;&lt;P&gt;It might be required to stop the component as well before Deleting the host components in the host:&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;curl -u admin:admin -X PUT -d &lt;/CODE&gt;&lt;CODE&gt;'{"RequestInfo":{"context":"Stop Service"},"Body":{"ServiceInfo":{"state":"INSTALLED"}}}'&lt;/CODE&gt;&lt;CODE&gt;http:&lt;/CODE&gt;&lt;CODE&gt;//AMBARI_SERVER_HOST:8080/api/v1/clusters/c1/services/SERVICE_NAME&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Jul 2016 02:41:24 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-remove-a-host-which-include-journal-node-component/m-p/106919#M33519</guid>
      <dc:creator>vpoornalingam</dc:creator>
      <dc:date>2016-07-01T02:41:24Z</dc:date>
    </item>
    <item>
      <title>Re: how to remove a host which include journal node component using ambari</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-remove-a-host-which-include-journal-node-component/m-p/106920#M33520</link>
      <description>&lt;P style="margin-left: 40px;"&gt;  &lt;A rel="user" href="https://community.cloudera.com/users/350/vpoornalingam.html" nodeid="350"&gt;@vpoornalingam&lt;/A&gt; I believe your right.  Might actually be safer to stop first.&lt;/P&gt;</description>
      <pubDate>Sun, 03 Jul 2016 10:01:17 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-remove-a-host-which-include-journal-node-component/m-p/106920#M33520</guid>
      <dc:creator>sunile_manjee</dc:creator>
      <dc:date>2016-07-03T10:01:17Z</dc:date>
    </item>
  </channel>
</rss>

