<?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: Moving Kafka Log dirs through Ambari in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Moving-Kafka-Log-dirs-through-Ambari/m-p/227230#M60932</link>
    <description>&lt;P&gt;Thanks for the quick response! So a work around would be something like? (in pseudo code) : &lt;/P&gt;&lt;PRE&gt;correct_log_location = a
for each node:
  manually set log.dirs &amp;lt;- correct_log_location
  restart kafka
  wait till partitions have been migrated

Set correct config in Ambari and restart through Ambari&lt;/PRE&gt;</description>
    <pubDate>Thu, 11 May 2017 18:05:41 GMT</pubDate>
    <dc:creator>scarroll</dc:creator>
    <dc:date>2017-05-11T18:05:41Z</dc:date>
    <item>
      <title>Moving Kafka Log dirs through Ambari</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Moving-Kafka-Log-dirs-through-Ambari/m-p/227228#M60930</link>
      <description>&lt;P&gt;If I want to change all the locations of log.dirs, can I just make this change in Ambari and restart kafka? &lt;/P&gt;&lt;P&gt;There are a couple of articles saying that data will be replicated if I just delete a folder however it implies that the migration has to be done on a per machine basis : e.g.: &lt;A href="https://community.hortonworks.com/articles/59715/migrating-kafka-partitions-data-to-new-data-folder.html" target="_blank"&gt;https://community.hortonworks.com/articles/59715/migrating-kafka-partitions-data-to-new-data-folder.html&lt;/A&gt;. &lt;/P&gt;&lt;P&gt;If Ambari applies this change to all machines at once, can it still migrate the data?&lt;/P&gt;</description>
      <pubDate>Thu, 11 May 2017 16:44:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Moving-Kafka-Log-dirs-through-Ambari/m-p/227228#M60930</guid>
      <dc:creator>scarroll</dc:creator>
      <dc:date>2017-05-11T16:44:50Z</dc:date>
    </item>
    <item>
      <title>Re: Moving Kafka Log dirs through Ambari</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Moving-Kafka-Log-dirs-through-Ambari/m-p/227229#M60931</link>
      <description>&lt;P&gt;@Sebastian No, We have to migrate one node at a time&lt;/P&gt;</description>
      <pubDate>Thu, 11 May 2017 17:59:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Moving-Kafka-Log-dirs-through-Ambari/m-p/227229#M60931</guid>
      <dc:creator>mkumar2</dc:creator>
      <dc:date>2017-05-11T17:59:50Z</dc:date>
    </item>
    <item>
      <title>Re: Moving Kafka Log dirs through Ambari</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Moving-Kafka-Log-dirs-through-Ambari/m-p/227230#M60932</link>
      <description>&lt;P&gt;Thanks for the quick response! So a work around would be something like? (in pseudo code) : &lt;/P&gt;&lt;PRE&gt;correct_log_location = a
for each node:
  manually set log.dirs &amp;lt;- correct_log_location
  restart kafka
  wait till partitions have been migrated

Set correct config in Ambari and restart through Ambari&lt;/PRE&gt;</description>
      <pubDate>Thu, 11 May 2017 18:05:41 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Moving-Kafka-Log-dirs-through-Ambari/m-p/227230#M60932</guid>
      <dc:creator>scarroll</dc:creator>
      <dc:date>2017-05-11T18:05:41Z</dc:date>
    </item>
    <item>
      <title>Re: Moving Kafka Log dirs through Ambari</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Moving-Kafka-Log-dirs-through-Ambari/m-p/227231#M60933</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/10930/scarroll.html" nodeid="10930"&gt;@Sebastian Carroll&lt;/A&gt; ,&lt;/P&gt;&lt;P&gt;why not copying over content of previous log.dirs to new ones, before restarting kafka ? this should reduce/remove the takeover of partitions&lt;/P&gt;</description>
      <pubDate>Fri, 12 May 2017 01:48:22 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Moving-Kafka-Log-dirs-through-Ambari/m-p/227231#M60933</guid>
      <dc:creator>geko</dc:creator>
      <dc:date>2017-05-12T01:48:22Z</dc:date>
    </item>
    <item>
      <title>Re: Moving Kafka Log dirs through Ambari</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Moving-Kafka-Log-dirs-through-Ambari/m-p/227232#M60934</link>
      <description>&lt;P&gt;I'm not moving all directories to new places, but consolidating 8 locations to 3 - I wasn't sure how all the metadata and splits would copy over given some of the filenames are the same in each directory&lt;/P&gt;</description>
      <pubDate>Mon, 15 May 2017 22:07:04 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Moving-Kafka-Log-dirs-through-Ambari/m-p/227232#M60934</guid>
      <dc:creator>scarroll</dc:creator>
      <dc:date>2017-05-15T22:07:04Z</dc:date>
    </item>
  </channel>
</rss>

