<?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: cant delete SPARK2_THRIFTSERVER from node01/03 from ambari in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/cant-delete-SPARK2-THRIFTSERVER-from-node01-03-from-ambari/m-p/283327#M210589</link>
    <description>&lt;P&gt;now it works&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I set FQDN&amp;nbsp; , incited just node1&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 19 Nov 2019 07:07:08 GMT</pubDate>
    <dc:creator>mike_bronson7</dc:creator>
    <dc:date>2019-11-19T07:07:08Z</dc:date>
    <item>
      <title>cant delete SPARK2_THRIFTSERVER from node01/03 from ambari</title>
      <link>https://community.cloudera.com/t5/Support-Questions/cant-delete-SPARK2-THRIFTSERVER-from-node01-03-from-ambari/m-p/283268#M210551</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;we have two&amp;nbsp;SPARK2_THRIFTSERVER on node01/03 in our ambari server&lt;/P&gt;
&lt;P&gt;we want to delete both&amp;nbsp;SPARK2_THRIFTSERVER on both nodes&lt;/P&gt;
&lt;P&gt;we try the following API , but without success , any idea where we are wrong?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;component_name : &lt;STRONG&gt;SPARK2_THRIFTSERVER&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;the REST API: ( we try to delete the thrift server on one of the nodes )&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;curl -iv -u admin:admin -H "X-Requested-By: ambari" -X DELETE http://node02:8080/api/v1/clusters/HDP/hosts/node01/SPARK2_THRIFTSERVER&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;* About to connect() to node02 port 8080 (#0)&lt;BR /&gt;* Connected to node02 (45.3.23.4) port 8080 (#0)&lt;BR /&gt;* Server auth using Basic with user 'admin'&lt;BR /&gt;&amp;gt; DELETE /api/v1/clusters/HDP/hosts/node01/SPARK2_THRIFTSERVER HTTP/1.1&lt;BR /&gt;&amp;gt; Authorization: Basic YWRtaW46YWRtaW4=&lt;BR /&gt;&amp;gt; User-Agent: curl/7.29.0&lt;BR /&gt;&amp;gt; Accept: */*&lt;BR /&gt;&amp;gt; X-Requested-By: ambari&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;lt; HTTP/1.1 404 Not Found&lt;BR /&gt;HTTP/1.1 404 Not Found&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Nov 2019 18:58:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/cant-delete-SPARK2-THRIFTSERVER-from-node01-03-from-ambari/m-p/283268#M210551</guid>
      <dc:creator>mike_bronson7</dc:creator>
      <dc:date>2019-11-18T18:58:10Z</dc:date>
    </item>
    <item>
      <title>Re: cant delete SPARK2_THRIFTSERVER from node01/03 from ambari</title>
      <link>https://community.cloudera.com/t5/Support-Questions/cant-delete-SPARK2-THRIFTSERVER-from-node01-03-from-ambari/m-p/283271#M210554</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/59349"&gt;@mike_bronson7&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It looks like you forgot a parameter&amp;nbsp; &lt;STRONG&gt;host_components&amp;nbsp;&amp;nbsp;&lt;/STRONG&gt;assuming the ambari server is running on node2 and the thrift Server is on node01 and node02&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Delete on Node1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF6600"&gt;curl -iv -u admin:admin -H "X-Requested-By: ambari" -X DELETE "http://node02:8080/api/v1/clusters/HDP/hosts/&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;node01&lt;/STRONG&gt;&lt;/FONT&gt;/host_components/SPARK2_THRIFTSERVER"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#000000"&gt;Delete on Node 2&amp;nbsp;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF6600"&gt;curl -iv -u admin:admin -H "X-Requested-By: ambari" -X DELETE &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF6600"&gt;"http://node02:8080/api/v1/clusters/HDP/hosts/&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;node02&lt;/FONT&gt;&lt;/STRONG&gt;/host_components/SPARK2_THRIFTSERVER"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;HTH&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Nov 2019 19:21:31 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/cant-delete-SPARK2-THRIFTSERVER-from-node01-03-from-ambari/m-p/283271#M210554</guid>
      <dc:creator>Shelton</dc:creator>
      <dc:date>2019-11-18T19:21:31Z</dc:date>
    </item>
    <item>
      <title>Re: cant delete SPARK2_THRIFTSERVER from node01/03 from ambari</title>
      <link>https://community.cloudera.com/t5/Support-Questions/cant-delete-SPARK2-THRIFTSERVER-from-node01-03-from-ambari/m-p/283301#M210566</link>
      <description>&lt;P&gt;yes I did it ( i forget to write it in my post ( but cant edit the post )&lt;/P&gt;&lt;P&gt;so after I run it as you wrote still with the same problem&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt; HTTP/1.1 405 Method Not Allowed&lt;BR /&gt;HTTP/1.1 405 Method Not Allowed&lt;/P&gt;</description>
      <pubDate>Mon, 18 Nov 2019 21:03:23 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/cant-delete-SPARK2-THRIFTSERVER-from-node01-03-from-ambari/m-p/283301#M210566</guid>
      <dc:creator>mike_bronson7</dc:creator>
      <dc:date>2019-11-18T21:03:23Z</dc:date>
    </item>
    <item>
      <title>Re: cant delete SPARK2_THRIFTSERVER from node01/03 from ambari</title>
      <link>https://community.cloudera.com/t5/Support-Questions/cant-delete-SPARK2-THRIFTSERVER-from-node01-03-from-ambari/m-p/283302#M210567</link>
      <description>&lt;P&gt;I get also&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;p&amp;gt;The requested method DELETE is not allowed for the URL /api/v1/clusters/............/host_components/SPARK2_THRIFTSERVER.&amp;lt;/p&amp;gt;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Nov 2019 21:08:16 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/cant-delete-SPARK2-THRIFTSERVER-from-node01-03-from-ambari/m-p/283302#M210567</guid>
      <dc:creator>mike_bronson7</dc:creator>
      <dc:date>2019-11-18T21:08:16Z</dc:date>
    </item>
    <item>
      <title>Re: cant delete SPARK2_THRIFTSERVER from node01/03 from ambari</title>
      <link>https://community.cloudera.com/t5/Support-Questions/cant-delete-SPARK2-THRIFTSERVER-from-node01-03-from-ambari/m-p/283305#M210570</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/59349"&gt;@mike_bronson7&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I see the difference in the response of the CURL.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#FF6600"&gt;HTTP/1.1 404 Not Found&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [Before]&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;HTTP/1.1 405 Method Not Allowed&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;[Now]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have just tried on my cluster without the &lt;FONT color="#FF0000"&gt;-i v&lt;/FONT&gt; and it worked&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Worked for me right now&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF6600"&gt;curl&amp;nbsp; -u admin:admin -H "X-Requested-By: ambari" -X DELETE "http://node02:8080/api/v1/clusters/HDP/hosts/node01/host_components/SPARK2_THRIFTSERVER"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Seen a case where with only a &lt;STRONG&gt;-i&lt;/STRONG&gt;&lt;BR /&gt;&lt;FONT color="#FF6600"&gt;curl -i -u admin:admin -H "X-Requested-By: ambari" -X DELETE "http://node02:8080/api/v1/clusters/HDP/hosts/node01/host_components/SPARK2_THRIFTSERVER"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;Please revert&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Nov 2019 21:50:02 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/cant-delete-SPARK2-THRIFTSERVER-from-node01-03-from-ambari/m-p/283305#M210570</guid>
      <dc:creator>Shelton</dc:creator>
      <dc:date>2019-11-18T21:50:02Z</dc:date>
    </item>
    <item>
      <title>Re: cant delete SPARK2_THRIFTSERVER from node01/03 from ambari</title>
      <link>https://community.cloudera.com/t5/Support-Questions/cant-delete-SPARK2-THRIFTSERVER-from-node01-03-from-ambari/m-p/283324#M210587</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I change it as your advice but still:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;curl -u admin:admin -H "X-Requested-By: ambari" -X DELETE "http://node02:8080/api/v1/clusters/HDP/hosts/node01/host_components/SPARK2_THRIFTSERVE"&lt;BR /&gt;{&lt;BR /&gt;"status" : 404,&lt;BR /&gt;"message" : "org.apache.ambari.server.controller.spi.NoSuchResourceException: The specified resource doesn't exist: Service not found, clusterName=HDP, serviceName=component: SPARK2_THRIFTSERVE"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.note - spark thrift server is on - node01 and on node 03&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;its strange because: (&amp;nbsp;SPARK2_THRIFTSERVER is the component name )&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;curl -u admin:admin -H "X-Requested-By: ambari"-X GET http://node02:8080/api/v1/clusters/HDP/components/ | grep -i spark | grep component_name | tail -1&lt;/P&gt;&lt;P&gt;"component_name" : "SPARK2_THRIFTSERVER",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Nov 2019 06:46:32 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/cant-delete-SPARK2-THRIFTSERVER-from-node01-03-from-ambari/m-p/283324#M210587</guid>
      <dc:creator>mike_bronson7</dc:creator>
      <dc:date>2019-11-19T06:46:32Z</dc:date>
    </item>
    <item>
      <title>Re: cant delete SPARK2_THRIFTSERVER from node01/03 from ambari</title>
      <link>https://community.cloudera.com/t5/Support-Questions/cant-delete-SPARK2-THRIFTSERVER-from-node01-03-from-ambari/m-p/283327#M210589</link>
      <description>&lt;P&gt;now it works&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I set FQDN&amp;nbsp; , incited just node1&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Nov 2019 07:07:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/cant-delete-SPARK2-THRIFTSERVER-from-node01-03-from-ambari/m-p/283327#M210589</guid>
      <dc:creator>mike_bronson7</dc:creator>
      <dc:date>2019-11-19T07:07:08Z</dc:date>
    </item>
    <item>
      <title>Re: cant delete SPARK2_THRIFTSERVER from node01/03 from ambari</title>
      <link>https://community.cloudera.com/t5/Support-Questions/cant-delete-SPARK2-THRIFTSERVER-from-node01-03-from-ambari/m-p/283330#M210591</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/59349"&gt;@mike_bronson7&lt;/a&gt;&amp;nbsp; The latest command you posted again has typo. "R" is missing at the end in below command -&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;curl -u admin:admin -H "X-Requested-By: ambari" -X DELETE "http://node02:8080/api/v1/clusters/HDP/hosts/node01/host_components/SPARK2_THRIFTSERVE"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Pls try and pass new error if any.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Nov 2019 07:09:17 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/cant-delete-SPARK2-THRIFTSERVER-from-node01-03-from-ambari/m-p/283330#M210591</guid>
      <dc:creator>sagarshimpi</dc:creator>
      <dc:date>2019-11-19T07:09:17Z</dc:date>
    </item>
  </channel>
</rss>

