<?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: API + how to delete all component from worker machine in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/API-how-to-delete-all-component-from-worker-machine/m-p/217230#M179139</link>
    <description>&lt;P&gt;after we delete the components by API I still see the component in the worker machine ( even after ambari-server restart and ambari agent restart , what need to do ?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="42925-capture.png" style="width: 743px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/16168i9A10212A5A1C6833/image-size/medium?v=v2&amp;amp;px=400" role="button" title="42925-capture.png" alt="42925-capture.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 18 Aug 2019 03:01:05 GMT</pubDate>
    <dc:creator>mike_bronson7</dc:creator>
    <dc:date>2019-08-18T03:01:05Z</dc:date>
    <item>
      <title>API + how to delete all component from worker machine</title>
      <link>https://community.cloudera.com/t5/Support-Questions/API-how-to-delete-all-component-from-worker-machine/m-p/217228#M179137</link>
      <description>&lt;P&gt;how to remove the following component by API from worker machine&lt;/P&gt;&lt;P&gt;we need to remove these component since ambari GUI not have the option to delete this component /component clients from worker machine&lt;/P&gt;&lt;PRE&gt;curl -u admin:admin -H "X-Requested-By: ambari" -X GET  &lt;A href="http://master02:8080/api/v1/clusters/HDP/hosts/worker04.sys45.com" target="_blank"&gt;http://master02:8080/api/v1/clusters/HDP/hosts/worker04.sys45.com&lt;/A&gt; | grep component_name


  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 24661  100 24661    0     0   164k      0 --:--:-- --:--:-- --:--:--  164k
        "component_name" : "DATANODE",
        "component_name" : "HCAT",
        "component_name" : "HDFS_CLIENT",
        "component_name" : "HIVE_CLIENT",
        "component_name" : "METRICS_MONITOR",
        "component_name" : "NODEMANAGER",
        "component_name" : "PIG",
        "component_name" : "SLIDER",
        "component_name" : "SPARK2_CLIENT",
        "component_name" : "TEZ_CLIENT",
        "component_name" : "YARN_CLIENT",
        "component_name" : "ZOOKEEPER_CLIENT",&lt;/PRE&gt;</description>
      <pubDate>Wed, 06 Dec 2017 02:03:19 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/API-how-to-delete-all-component-from-worker-machine/m-p/217228#M179137</guid>
      <dc:creator>mike_bronson7</dc:creator>
      <dc:date>2017-12-06T02:03:19Z</dc:date>
    </item>
    <item>
      <title>Re: API + how to delete all component from worker machine</title>
      <link>https://community.cloudera.com/t5/Support-Questions/API-how-to-delete-all-component-from-worker-machine/m-p/217229#M179138</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/26229/uribarih.html" nodeid="26229"&gt;@Michael Bronson&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You can stop the Components and then delete them as following:  (for example DataNode)&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Stop DataNode (or desired component)&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;curl -u admin:admin -H "X-Requested-By: ambari" -X PUT -d '{"RequestInfo":{"context":"Stop Datanode","operation_level":{"level":"HOST_COMPONENT","cluster_name":"HDP","host_name":"worker04.sys45.com","service_name":"HDFS"}},"Body":{"HostRoles":{"state":"INSTALLED"}}}' &lt;A href="http://master02:8080/api/v1/clusters/HDP/hosts/worker04.sys45.com/host_components/DATANODE" target="_blank"&gt;http://master02:8080/api/v1/clusters/HDP/hosts/worker04.sys45.com/host_components/DATANODE&lt;/A&gt;&lt;/PRE&gt;&lt;P&gt;.&lt;BR /&gt;&lt;STRONG&gt;Delete DataNode:&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;curl -u admin:admin -H "X-Requested-By: ambari" -X DELETE  
&lt;A href="http://master02:8080/api/v1/clusters/HDP/hosts/worker04.sys45.com/host_components/DATANODE" target="_blank"&gt;http://master02:8080/api/v1/clusters/HDP/hosts/worker04.sys45.com/host_components/DATANODE&lt;/A&gt;&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;Similarly you can do the same for other components as well like NodeManager .../etc&lt;/P&gt;</description>
      <pubDate>Wed, 06 Dec 2017 02:17:16 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/API-how-to-delete-all-component-from-worker-machine/m-p/217229#M179138</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2017-12-06T02:17:16Z</dc:date>
    </item>
    <item>
      <title>Re: API + how to delete all component from worker machine</title>
      <link>https://community.cloudera.com/t5/Support-Questions/API-how-to-delete-all-component-from-worker-machine/m-p/217230#M179139</link>
      <description>&lt;P&gt;after we delete the components by API I still see the component in the worker machine ( even after ambari-server restart and ambari agent restart , what need to do ?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="42925-capture.png" style="width: 743px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/16168i9A10212A5A1C6833/image-size/medium?v=v2&amp;amp;px=400" role="button" title="42925-capture.png" alt="42925-capture.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 03:01:05 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/API-how-to-delete-all-component-from-worker-machine/m-p/217230#M179139</guid>
      <dc:creator>mike_bronson7</dc:creator>
      <dc:date>2019-08-18T03:01:05Z</dc:date>
    </item>
    <item>
      <title>Re: API + how to delete all component from worker machine</title>
      <link>https://community.cloudera.com/t5/Support-Questions/API-how-to-delete-all-component-from-worker-machine/m-p/217231#M179140</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/26229/uribarih.html" nodeid="26229"&gt;@Michael Bronson&lt;/A&gt;&lt;/P&gt;&lt;P&gt;For AMS monitor process please run the &lt;STRONG&gt;DELETE command twice:&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;.&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Example:&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;# curl -u admin:admin -H "X-Requested-By: ambari" -X DELETE &lt;A href="http://master02:8080/api/v1/clusters/HDP/hosts/worker04.sys45.com/host_components/METRICS_MONITOR" target="_blank"&gt;http://master02:8080/api/v1/clusters/HDP/hosts/worker04.sys45.com/host_components/METRICS_MONITOR&lt;/A&gt;

# curl -u admin:admin -H "X-Requested-By: ambari" -X DELETE &lt;A href="http://master02:8080/api/v1/clusters/HDP/hosts/worker04.sys45.com/host_components/METRICS_MONITOR" target="_blank"&gt;http://master02:8080/api/v1/clusters/HDP/hosts/worker04.sys45.com/host_components/METRICS_MONITOR&lt;/A&gt;&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;The check the Ambari UI.   Please try the same for other client components as well.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Dec 2017 02:41:17 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/API-how-to-delete-all-component-from-worker-machine/m-p/217231#M179140</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2017-12-06T02:41:17Z</dc:date>
    </item>
    <item>
      <title>Re: API + how to delete all component from worker machine</title>
      <link>https://community.cloudera.com/t5/Support-Questions/API-how-to-delete-all-component-from-worker-machine/m-p/217232#M179141</link>
      <description>&lt;P&gt;after we delete the component from the API we see the components still from the ambari GUI ( and after ambari-server restart )&lt;/P&gt;&lt;P&gt;how it can be?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="42929-capture.png" style="width: 755px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/16167iCD37018C76A77C5E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="42929-capture.png" alt="42929-capture.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 03:00:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/API-how-to-delete-all-component-from-worker-machine/m-p/217232#M179141</guid>
      <dc:creator>mike_bronson7</dc:creator>
      <dc:date>2019-08-18T03:00:58Z</dc:date>
    </item>
    <item>
      <title>Re: API + how to delete all component from worker machine</title>
      <link>https://community.cloudera.com/t5/Support-Questions/API-how-to-delete-all-component-from-worker-machine/m-p/217233#M179142</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/26229/uribarih.html" nodeid="26229"&gt;@Michael Bronson&lt;BR /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;If you still see the components in your AMbari UI then please check the "ambari-server.log"  you must see some errors during the Deletion of those components in the log.    The error will tell us the cause.&lt;/P&gt;&lt;P&gt;So please try the following:&lt;/P&gt;&lt;P&gt;1. Put the ambari-server.log in "tail" to see any latest error:&lt;/P&gt;&lt;PRE&gt;# tail -f  /var/log/ambari-server/ambari-server.log &lt;/PRE&gt;&lt;P&gt;2. Now try deleting the problematic components and observe the "ambari-server.log" if there are any errors?&lt;/P&gt;&lt;PRE&gt;# curl -u admin:admin -H "X-Requested-By: ambari" -X DELETE &lt;A href="http://master02:8080/api/v1/clusters/HDP/hosts/worker04.sys45.com/host_components/METRICS_MONITOR" target="_blank"&gt;http://master02:8080/api/v1/clusters/HDP/hosts/worker04.sys45.com/host_components/METRICS_MONITOR&lt;/A&gt;&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;Try opening the Browser in "Incognito" (Private) mode to isolate any browser caching issue.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;A rel="user" href="https://community.cloudera.com/users/26229/uribarih.html" nodeid="26229"&gt;&lt;/A&gt; &lt;/P&gt;</description>
      <pubDate>Wed, 06 Dec 2017 02:53:42 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/API-how-to-delete-all-component-from-worker-machine/m-p/217233#M179142</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2017-12-06T02:53:42Z</dc:date>
    </item>
    <item>
      <title>Re: API + how to delete all component from worker machine</title>
      <link>https://community.cloudera.com/t5/Support-Questions/API-how-to-delete-all-component-from-worker-machine/m-p/217234#M179143</link>
      <description>&lt;P&gt;this is the complete syntax but I get error that cant understand , &lt;/P&gt;&lt;PRE&gt;curl -u admin:admin -H "X-Requested-By: ambari" -X DELETE &lt;A href="http://master02.dddns.com:8080/api/v1/clusters/HDP/hosts/worker04.dddns.com/host_components/METRICS_MONITOR" target="_blank"&gt;http://master02.dddns.com:8080/api/v1/clusters/HDP/hosts/worker04.dddns.com/host_components/METRICS_MONITOR&lt;/A&gt;

{ "status" : 404, "message" : "org.apache.ambari.server.controller.spi.NoSuchResourceException: The specified resource doesn't exist: ServiceComponentHost not found, clusterName=HDP, serviceName=AMBARI_METRICS, serviceComponentName=METRICS_MONITOR, hostName=worker04.dddns.com"&lt;/PRE&gt;</description>
      <pubDate>Wed, 06 Dec 2017 03:12:09 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/API-how-to-delete-all-component-from-worker-machine/m-p/217234#M179143</guid>
      <dc:creator>mike_bronson7</dc:creator>
      <dc:date>2017-12-06T03:12:09Z</dc:date>
    </item>
    <item>
      <title>Re: API + how to delete all component from worker machine</title>
      <link>https://community.cloudera.com/t5/Support-Questions/API-how-to-delete-all-component-from-worker-machine/m-p/217235#M179144</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/26229/uribarih.html" nodeid="26229"&gt;@Michael Bronson&lt;BR /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;In your first update the Hostname was not complete for ambari host.  (Is that a typo  "master02.dddns.com" or it should be "master02" )&lt;/P&gt;&lt;PRE&gt;curl -u admin:admin -H "X-Requested-By: ambari" -X DELETE &lt;A href="http://master02.dddns.com:8080/api/v1/clusters/HDP/hosts/worker04.dddns.com/host_components/METRICS_MONITOR" target="_blank"&gt;http://master02.dddns.com:8080/api/v1/clusters/HDP/hosts/worker04.dddns.com/host_components/METRICS_MONITOR&lt;/A&gt;&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;Also the hostname of worker is differen&lt;STRONG&gt;t "worker04.dddns.com"   (or it should be "&lt;/STRONG&gt;worker04.sys45.com&lt;STRONG&gt;")&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Are you sure that your host "worker04.dddns.com" really has AMS monitor installed to it?&lt;STRONG&gt;  &lt;/STRONG&gt;Please confirm the same using GET command to see if MONITOR is listed int eh output of the following API call?&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;curl -u admin:admin -H "X-Requested-By: ambari" -X GET &lt;A href="http://master02.dddns.com:8080/api/v1/clusters/HDP/hosts/worker04.dddns.com/host_components" target="_blank"&gt;http://master02.dddns.com:8080/api/v1/clusters/HDP/hosts/worker04.dddns.com/host_components&lt;/A&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;&lt;A rel="user" href="https://community.cloudera.com/users/26229/uribarih.html" nodeid="26229"&gt;&lt;/A&gt; &lt;/P&gt;</description>
      <pubDate>Wed, 06 Dec 2017 03:32:32 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/API-how-to-delete-all-component-from-worker-machine/m-p/217235#M179144</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2017-12-06T03:32:32Z</dc:date>
    </item>
  </channel>
</rss>

