<?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 Kafka spout not reading from beginning even if the fKakfaSpout.forceFromStart is set to true in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Kafka-spout-not-reading-from-beginning-even-if-the/m-p/96469#M9955</link>
    <description>&lt;P&gt;Spout try to query zookeeper to get the state and set the offset to prior location. We have retention policy of three days in kafka. So I guess offset moves back to location which does not exists in kafka and its does not pull anymore data.&lt;/P&gt;&lt;P&gt;Already checked that in the spout config, the Zookeeper configuration is pointing to Kafka ZooKeeper.&lt;/P&gt;&lt;P&gt;Anything else that we're missing here? Thank you.&lt;/P&gt;</description>
    <pubDate>Wed, 04 Nov 2015 07:21:30 GMT</pubDate>
    <dc:creator>vjiang</dc:creator>
    <dc:date>2015-11-04T07:21:30Z</dc:date>
    <item>
      <title>Kafka spout not reading from beginning even if the fKakfaSpout.forceFromStart is set to true</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Kafka-spout-not-reading-from-beginning-even-if-the/m-p/96469#M9955</link>
      <description>&lt;P&gt;Spout try to query zookeeper to get the state and set the offset to prior location. We have retention policy of three days in kafka. So I guess offset moves back to location which does not exists in kafka and its does not pull anymore data.&lt;/P&gt;&lt;P&gt;Already checked that in the spout config, the Zookeeper configuration is pointing to Kafka ZooKeeper.&lt;/P&gt;&lt;P&gt;Anything else that we're missing here? Thank you.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Nov 2015 07:21:30 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Kafka-spout-not-reading-from-beginning-even-if-the/m-p/96469#M9955</guid>
      <dc:creator>vjiang</dc:creator>
      <dc:date>2015-11-04T07:21:30Z</dc:date>
    </item>
    <item>
      <title>Re: Kafka spout not reading from beginning even if the fKakfaSpout.forceFromStart is set to true</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Kafka-spout-not-reading-from-beginning-even-if-the/m-p/96470#M9956</link>
      <description>&lt;P&gt;Kafka Consumer configs has an option called "auto.offset.reset", which can be used to decide what to do when the requested offset does not exist. Per documentation, it will:&lt;/P&gt;&lt;P&gt;What to do when there is no initial offset in ZooKeeper or if an offset is out of range:
* smallest : automatically reset the offset to the smallest offset
* largest : automatically reset the offset to the largest offset
* anything else: throw exception to the consumer&lt;/P&gt;&lt;P&gt;Therefore, I would try setting it to "smallest". &lt;/P&gt;</description>
      <pubDate>Wed, 04 Nov 2015 09:19:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Kafka-spout-not-reading-from-beginning-even-if-the/m-p/96470#M9956</guid>
      <dc:creator>phargis</dc:creator>
      <dc:date>2015-11-04T09:19:33Z</dc:date>
    </item>
    <item>
      <title>Re: Kafka spout not reading from beginning even if the fKakfaSpout.forceFromStart is set to true</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Kafka-spout-not-reading-from-beginning-even-if-the/m-p/96471#M9957</link>
      <description>&lt;P&gt;you need to set&lt;/P&gt;&lt;PRE&gt;spoutConfig.useStartOffsetTimeIfOffsetOutOfRange = true;

spoutConfig.startOffsetTime = kafka.api.OffsetRequest.EarliestTime();
        KafkaSpout kafkaSpout = new KafkaSpout(spoutConfig);&lt;/PRE&gt;</description>
      <pubDate>Thu, 05 Nov 2015 00:27:29 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Kafka-spout-not-reading-from-beginning-even-if-the/m-p/96471#M9957</guid>
      <dc:creator>aervits</dc:creator>
      <dc:date>2015-11-05T00:27:29Z</dc:date>
    </item>
    <item>
      <title>Re: Kafka spout not reading from beginning even if the fKakfaSpout.forceFromStart is set to true</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Kafka-spout-not-reading-from-beginning-even-if-the/m-p/96472#M9958</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/184/phargis.html" nodeid="184"&gt;@Paul Hargis&lt;/A&gt;
&lt;A rel="user" href="https://community.cloudera.com/users/184/phargis.html" nodeid="184"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;any pointers on how to set "auto.offset.reset" in storm ?&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/questions/2737/kafka-spout-not-reading-from-beginning-even-if-the.html#"&gt;@Artem Ervits&lt;/A&gt;&lt;/P&gt;&lt;P&gt;if I use "kafka.api.OffsetRequest.EarliestTime();" everytime I restart topology will it consume old data(I mean from beginning) ?&lt;/P&gt;&lt;P&gt;My use case is this:&lt;/P&gt;&lt;P&gt;My topology was down for over 2 weeks, but kafka has only 1 weeks data. so I am thinking that when I start the topology it will not find the offset. Should I use "kafka.api.OffsetRequest.EarliestTime();"  ?&lt;/P&gt;&lt;P&gt;update:&lt;/P&gt;&lt;P&gt;tried restarting the topoloy&lt;/P&gt;&lt;P&gt;I am using OpaqueTridentKafkaSpout, getting storm.kafka.UpdateOffsetException (using storm 0.9.4)&lt;/P&gt;&lt;P&gt;checked KafkaConfig it has&lt;/P&gt;&lt;P&gt;public boolean useStartOffsetTimeIfOffsetOutOfRange = true;&lt;/P&gt;&lt;P&gt;public long startOffsetTime = kafka.api.OffsetRequest.EarliestTime();&lt;/P&gt;&lt;P&gt;So what I am not getting is that why it is not setting offset to earliest and failing with UpdateOffsetException instead &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Could you guys please help ?&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jan 2017 14:27:31 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Kafka-spout-not-reading-from-beginning-even-if-the/m-p/96472#M9958</guid>
      <dc:creator>amber_kulkarni8</dc:creator>
      <dc:date>2017-01-30T14:27:31Z</dc:date>
    </item>
    <item>
      <title>Re: Kafka spout not reading from beginning even if the fKakfaSpout.forceFromStart is set to true</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Kafka-spout-not-reading-from-beginning-even-if-the/m-p/96473#M9959</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/11708/amberkulkarni89.html" nodeid="11708"&gt;@Amber Kulkarni&lt;/A&gt; please open this as a new thread. &lt;/P&gt;</description>
      <pubDate>Mon, 30 Jan 2017 22:09:36 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Kafka-spout-not-reading-from-beginning-even-if-the/m-p/96473#M9959</guid>
      <dc:creator>aervits</dc:creator>
      <dc:date>2017-01-30T22:09:36Z</dc:date>
    </item>
  </channel>
</rss>

