<?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>topic Re: Fetch new data from kinesis for every minute. in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/fetch-new-data-from-kinesis-for-every-minute/m-p/9300#M4733</link>
    <description>&lt;P&gt;Hi, What is the DBR you are running on it? Also, what is the error you get when it is not working? &lt;/P&gt;</description>
    <pubDate>Thu, 16 Feb 2023 16:01:46 GMT</pubDate>
    <dc:creator>Debayan</dc:creator>
    <dc:date>2023-02-16T16:01:46Z</dc:date>
    <item>
      <title>Fetch new data from kinesis for every minute.</title>
      <link>https://community.databricks.com/t5/data-engineering/fetch-new-data-from-kinesis-for-every-minute/m-p/9299#M4732</link>
      <description>&lt;P&gt;I want to fetch new data from kinesis source for every minute. &lt;/P&gt;&lt;P&gt;I'm using "minFetchPeriod"  option and specified 60s. But this doesn't seem to be working.&lt;/P&gt;&lt;P&gt;Streaming query: &lt;/P&gt;&lt;P&gt;spark \&lt;/P&gt;&lt;P&gt;&amp;nbsp;.readStream \&lt;/P&gt;&lt;P&gt;&amp;nbsp;.format("kinesis") \&lt;/P&gt;&lt;P&gt;&amp;nbsp;.option("streamName", kinesis_stream_name) \&lt;/P&gt;&lt;P&gt;&amp;nbsp;.option("region", region name) \&lt;/P&gt;&lt;P&gt;&amp;nbsp;.option("initial Position", "latest") \&lt;/P&gt;&lt;P&gt;&amp;nbsp;.option("awsAccessKey", awsAccessKey) \&lt;/P&gt;&lt;P&gt;&amp;nbsp;.option("awsSecretKey", aws_secret_access_key)\&lt;/P&gt;&lt;P&gt; .option("minFetchPeriod","60s")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help me on this ? I'm new to this topic.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Feb 2023 12:59:57 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/fetch-new-data-from-kinesis-for-every-minute/m-p/9299#M4732</guid>
      <dc:creator>pranathisg97</dc:creator>
      <dc:date>2023-02-15T12:59:57Z</dc:date>
    </item>
    <item>
      <title>Re: Fetch new data from kinesis for every minute.</title>
      <link>https://community.databricks.com/t5/data-engineering/fetch-new-data-from-kinesis-for-every-minute/m-p/9301#M4734</link>
      <description>&lt;P&gt;Hi, DBR is 12.1 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error : &lt;I&gt;"java.lang.IllegalArgumentException: maxFetchDuration needs to be a duration string such as '10s' for 10 seconds or '2m' for 2 minutes. Also needs to be greater than minFetchPeriod in order to avoid falling behind in the stream". &lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do I have to configure maxFetchDuration whenever I configure minFetchPeriod ?&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2023 09:55:35 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/fetch-new-data-from-kinesis-for-every-minute/m-p/9301#M4734</guid>
      <dc:creator>pranathisg97</dc:creator>
      <dc:date>2023-02-17T09:55:35Z</dc:date>
    </item>
    <item>
      <title>Re: Fetch new data from kinesis for every minute.</title>
      <link>https://community.databricks.com/t5/data-engineering/fetch-new-data-from-kinesis-for-every-minute/m-p/9302#M4735</link>
      <description>&lt;P&gt;Hi @Pranathi Girish​&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope all is well! Just wanted to check in if you were able to resolve your issue and would you be happy to share the solution or mark an answer as best? Else please let us know if you need more help.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We'd love to hear from you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Feb 2023 07:55:22 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/fetch-new-data-from-kinesis-for-every-minute/m-p/9302#M4735</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-02-21T07:55:22Z</dc:date>
    </item>
    <item>
      <title>Re: Fetch new data from kinesis for every minute.</title>
      <link>https://community.databricks.com/t5/data-engineering/fetch-new-data-from-kinesis-for-every-minute/m-p/9303#M4736</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was able to solve the issue by specifying maxFetchDuration value more than minFetchPeriod. However I didn't get the purpose of specifying maxFetchDuration value greater than or equal to minFetchPeriod value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;spark \&lt;/P&gt;&lt;P&gt;&amp;nbsp;.readStream \&lt;/P&gt;&lt;P&gt;&amp;nbsp;.format("kinesis") \&lt;/P&gt;&lt;P&gt;&amp;nbsp;.option("streamName", kinesis_stream_name) \&lt;/P&gt;&lt;P&gt;&amp;nbsp;.option("region", region name) \&lt;/P&gt;&lt;P&gt;&amp;nbsp;.option("initial Position", "latest") \&lt;/P&gt;&lt;P&gt;&amp;nbsp;.option("awsAccessKey", awsAccessKey) \&lt;/P&gt;&lt;P&gt;&amp;nbsp;.option("awsSecretKey", aws_secret_access_key)\&lt;/P&gt;&lt;P&gt; .option("maxFetchDuration","60s")\&lt;/P&gt;&lt;P&gt; .option("minFetchPeriod","60s")&lt;/P&gt;</description>
      <pubDate>Wed, 22 Feb 2023 07:51:26 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/fetch-new-data-from-kinesis-for-every-minute/m-p/9303#M4736</guid>
      <dc:creator>pranathisg97</dc:creator>
      <dc:date>2023-02-22T07:51:26Z</dc:date>
    </item>
    <item>
      <title>Re: Fetch new data from kinesis for every minute.</title>
      <link>https://community.databricks.com/t5/data-engineering/fetch-new-data-from-kinesis-for-every-minute/m-p/9304#M4737</link>
      <description>&lt;P&gt;I would like to share the following docs with best practices when using kinesis &lt;A href="https://docs.databricks.com/structured-streaming/kinesis-best-practices.html" target="test_blank"&gt;https://docs.databricks.com/structured-streaming/kinesis-best-practices.html&lt;/A&gt; please check this doc. it will help you to undertand what does maxFetchDuration does.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Feb 2023 22:20:38 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/fetch-new-data-from-kinesis-for-every-minute/m-p/9304#M4737</guid>
      <dc:creator>jose_gonzalez</dc:creator>
      <dc:date>2023-02-23T22:20:38Z</dc:date>
    </item>
    <item>
      <title>Re: Fetch new data from kinesis for every minute.</title>
      <link>https://community.databricks.com/t5/data-engineering/fetch-new-data-from-kinesis-for-every-minute/m-p/9305#M4738</link>
      <description>&lt;P&gt;Hi @Jose Gonzalez​&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for sharing the document. I would like to share my understanding from the document. Please correct me if I'm wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;minFetchPeriod is the time interval between consecutive pre-fetch between kinesis and spark. maxFetchDuration is the how long the pre-fetched data will be stored in buffer. In my case, after 60s data will be available to process. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But how the data from kinesis is pre-fetched?&lt;/P&gt;</description>
      <pubDate>Fri, 24 Feb 2023 10:48:57 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/fetch-new-data-from-kinesis-for-every-minute/m-p/9305#M4738</guid>
      <dc:creator>pranathisg97</dc:creator>
      <dc:date>2023-02-24T10:48:57Z</dc:date>
    </item>
    <item>
      <title>Re: Fetch new data from kinesis for every minute.</title>
      <link>https://community.databricks.com/t5/data-engineering/fetch-new-data-from-kinesis-for-every-minute/m-p/9306#M4739</link>
      <description>&lt;P&gt;Hi @Pranathi Girish​&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your question! To assist you better, please take a moment to review the answer and let me know if it best fits your needs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help us select the best solution by clicking on "Select As Best" if it does.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your feedback will help us ensure that we are providing the best possible service to you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 11 Mar 2023 02:04:19 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/fetch-new-data-from-kinesis-for-every-minute/m-p/9306#M4739</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-03-11T02:04:19Z</dc:date>
    </item>
    <item>
      <title>Re: Fetch new data from kinesis for every minute.</title>
      <link>https://community.databricks.com/t5/data-engineering/fetch-new-data-from-kinesis-for-every-minute/m-p/9300#M4733</link>
      <description>&lt;P&gt;Hi, What is the DBR you are running on it? Also, what is the error you get when it is not working? &lt;/P&gt;</description>
      <pubDate>Thu, 16 Feb 2023 16:01:46 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/fetch-new-data-from-kinesis-for-every-minute/m-p/9300#M4733</guid>
      <dc:creator>Debayan</dc:creator>
      <dc:date>2023-02-16T16:01:46Z</dc:date>
    </item>
  </channel>
</rss>

