<?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: REST API + how to verify that component not exist on node X in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/REST-API-how-to-verify-that-component-not-exist-on-node-X/m-p/235065#M196885</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 make the following API call to find out on how many nodes the "SPARK2_THRIFTSERVER" is installed.  Please check the property "installed_count" in the response.&lt;/P&gt;&lt;PRE&gt;# curl -iv -u admin:admin -H "X-Requested-By: ambari" -X GET "http://$AMBARI_SERVER:8080/api/v1/clusters/hdp/services/SPARK2/components/SPARK2_THRIFTSERVER"&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;If you want to know the list of hosts where the "SPARK2_THRIFTSERVER" might be installed in your cluster and to know their current state you can make the following API call.&lt;/P&gt;&lt;PRE&gt;# curl -iv -u admin:admin -H "X-Requested-By: ambari" -X GET "http://$AMBARI_SERVER:8080/api/v1/clusters/hdp/services/SPARK2/components/SPARK2_THRIFTSERVER?fields=host_components/HostRoles/host_name,host_components/HostRoles/state"&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;</description>
    <pubDate>Mon, 08 Jul 2019 05:27:10 GMT</pubDate>
    <dc:creator>jsensharma</dc:creator>
    <dc:date>2019-07-08T05:27:10Z</dc:date>
    <item>
      <title>REST API + how to verify that component not exist on node X</title>
      <link>https://community.cloudera.com/t5/Support-Questions/REST-API-how-to-verify-that-component-not-exist-on-node-X/m-p/235064#M196884</link>
      <description>&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;hi all&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;by the following API we can delete the thrift server component on master01 and master03 nodes&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt; # curl -iv -u admin:admin -H "X-Requested-By: ambari" -X DELETE &lt;A href="http://$AMBARI_SERVER:8080/api/v1/clusters/hdp/hosts/master01/host_components/SPARK2_THRIFTSERVER" target="_blank"&gt;http://$AMBARI_SERVER:8080/api/v1/clusters/hdp/hosts/master01/host_components/SPARK2_THRIFTSERVER&lt;/A&gt;&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt; # curl -iv -u admin:admin -H "X-Requested-By: ambari" -X DELETE &lt;A href="http://$AMBARI_SERVER:8080/api/v1/clusters/hdp/hosts/master03/host_components/SPARK2_THRIFTSERVER" target="_blank"&gt;http://$AMBARI_SERVER:8080/api/v1/clusters/hdp/hosts/master03/host_components/SPARK2_THRIFTSERVER&lt;/A&gt;&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;but how to know by REST API that &lt;STRONG&gt;&lt;EM&gt;thrift server component&lt;/EM&gt;&lt;/STRONG&gt; , not defined on specific node ( after deletion )&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 07 Jul 2019 22:49:23 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/REST-API-how-to-verify-that-component-not-exist-on-node-X/m-p/235064#M196884</guid>
      <dc:creator>mike_bronson7</dc:creator>
      <dc:date>2019-07-07T22:49:23Z</dc:date>
    </item>
    <item>
      <title>Re: REST API + how to verify that component not exist on node X</title>
      <link>https://community.cloudera.com/t5/Support-Questions/REST-API-how-to-verify-that-component-not-exist-on-node-X/m-p/235065#M196885</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 make the following API call to find out on how many nodes the "SPARK2_THRIFTSERVER" is installed.  Please check the property "installed_count" in the response.&lt;/P&gt;&lt;PRE&gt;# curl -iv -u admin:admin -H "X-Requested-By: ambari" -X GET "http://$AMBARI_SERVER:8080/api/v1/clusters/hdp/services/SPARK2/components/SPARK2_THRIFTSERVER"&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;If you want to know the list of hosts where the "SPARK2_THRIFTSERVER" might be installed in your cluster and to know their current state you can make the following API call.&lt;/P&gt;&lt;PRE&gt;# curl -iv -u admin:admin -H "X-Requested-By: ambari" -X GET "http://$AMBARI_SERVER:8080/api/v1/clusters/hdp/services/SPARK2/components/SPARK2_THRIFTSERVER?fields=host_components/HostRoles/host_name,host_components/HostRoles/state"&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2019 05:27:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/REST-API-how-to-verify-that-component-not-exist-on-node-X/m-p/235065#M196885</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2019-07-08T05:27:10Z</dc:date>
    </item>
  </channel>
</rss>

