<?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: is it possible to stop/start kafka service each kafka node separated not in parallel in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/is-it-possible-to-stop-start-kafka-service-each-kafka-node/m-p/290669#M215012</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;Looks like you have asked a very similar query on the other thread :&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.cloudera.com/t5/Support-Questions/amari-rest-API-how-to-stop-service-on-specific-host/m-p/290651" target="_blank"&gt;https://community.cloudera.com/t5/Support-Questions/amari-rest-API-how-to-stop-service-on-specific-host/m-p/290651&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 28 Feb 2020 03:34:05 GMT</pubDate>
    <dc:creator>jsensharma</dc:creator>
    <dc:date>2020-02-28T03:34:05Z</dc:date>
    <item>
      <title>is it possible to stop/start kafka service each kafka node separated not in parallel</title>
      <link>https://community.cloudera.com/t5/Support-Questions/is-it-possible-to-stop-start-kafka-service-each-kafka-node/m-p/290618#M214988</link>
      <description>&lt;P&gt;hi all&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;in our cluster HDP - 2.6.4 ,&amp;nbsp;we have kafka cluster with 11 nodes ( 11 machines )&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;restart the kafka service , from AMBARI REST API , will stop/start is brutal&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;when we do it from rest API then its cause corrupted indexes files in kafka topic partitions&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;what we search is , ambari rest API that do the restart in parallel&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;for example&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;first stop kafka01&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;then&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;start kafka01&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;wait until alert gone (from ambari)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;then stop kafka02 ,&amp;nbsp;&lt;/STRONG&gt;&lt;STRONG&gt;and start kafka02&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;etc....&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;is this process could be done by ambari rest API?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Feb 2020 20:07:13 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/is-it-possible-to-stop-start-kafka-service-each-kafka-node/m-p/290618#M214988</guid>
      <dc:creator>mike_bronson7</dc:creator>
      <dc:date>2020-02-27T20:07:13Z</dc:date>
    </item>
    <item>
      <title>Re: is it possible to stop/start kafka service each kafka node separated not in parallel</title>
      <link>https://community.cloudera.com/t5/Support-Questions/is-it-possible-to-stop-start-kafka-service-each-kafka-node/m-p/290669#M215012</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;Looks like you have asked a very similar query on the other thread :&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.cloudera.com/t5/Support-Questions/amari-rest-API-how-to-stop-service-on-specific-host/m-p/290651" target="_blank"&gt;https://community.cloudera.com/t5/Support-Questions/amari-rest-API-how-to-stop-service-on-specific-host/m-p/290651&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Feb 2020 03:34:05 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/is-it-possible-to-stop-start-kafka-service-each-kafka-node/m-p/290669#M215012</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2020-02-28T03:34:05Z</dc:date>
    </item>
    <item>
      <title>Re: is it possible to stop/start kafka service each kafka node separated not in parallel</title>
      <link>https://community.cloudera.com/t5/Support-Questions/is-it-possible-to-stop-start-kafka-service-each-kafka-node/m-p/290671#M215013</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;In addition to my previous comment:&lt;BR /&gt;Ambari provides option to "Rolling Restart Kafka Brokers" (one by one). In the ambari UI when you click on&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Ambari UI --&amp;gt; Kafka --&amp;gt; Service Actions (drop down) --&amp;gt; "Restart Kafka Brokers"&lt;/LI-CODE&gt;&lt;P&gt;Then it basically shows the Rolling restart Settings like. You can decide how much time in your env one Kafka Broker full restart taks and then after how much time do you want other Kafka broker restart will be scheduled by Ambari.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Kafka_Broker_Restart.png" style="width: 999px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/26525i9D89D292F6F58114/image-size/large?v=v2&amp;amp;px=999" role="button" title="Kafka_Broker_Restart.png" alt="Kafka_Broker_Restart.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;It can also be achieved using the API call as following:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;# curl -iskH "X-Requested-By: ambari" -u admin:admin -X POST -d '[{"RequestSchedule":{"batch":[{"requests":[{"order_id":1,"type":"POST","uri":"/clusters/NewCluster/requests","RequestBodyInfo":{"RequestInfo":{"context":"_PARSE_.ROLLING-RESTART.KAFKA_BROKER.1.3","command":"RESTART"},"Requests/resource_filters":[{"service_name":"KAFKA","component_name":"KAFKA_BROKER","hosts":"testnode2.example.com"}]}},{"order_id":2,"type":"POST","uri":"/clusters/NewCluster/requests","RequestBodyInfo":{"RequestInfo":{"context":"_PARSE_.ROLLING-RESTART.KAFKA_BROKER.2.3","command":"RESTART"},"Requests/resource_filters":[{"service_name":"KAFKA","component_name":"KAFKA_BROKER","hosts":"testnode3.example.com"}]}},{"order_id":3,"type":"POST","uri":"/clusters/NewCluster/requests","RequestBodyInfo":{"RequestInfo":{"context":"_PARSE_.ROLLING-RESTART.KAFKA_BROKER.3.3","command":"RESTART"},"Requests/resource_filters":[{"service_name":"KAFKA","component_name":"KAFKA_BROKER","hosts":"testnode5.example.com"}]}}]},{"batch_settings":{"batch_separation_in_seconds":"121","task_failure_tolerance":1}}]}}]' ttp://testnode1.example.com:8080/api/v1/clusters/NewCluster/request_schedules&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Feb 2020 03:40:54 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/is-it-possible-to-stop-start-kafka-service-each-kafka-node/m-p/290671#M215013</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2020-02-28T03:40:54Z</dc:date>
    </item>
  </channel>
</rss>

