<?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 there a way to get time-based ticks/triggers in a Spark Streaming job? in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Is-there-a-way-to-get-time-based-ticks-triggers-in-a-Spark/m-p/108033#M25687</link>
    <description>&lt;P&gt;I ended up creating an additional source upstream that generates "tick" events at my specified interval, then joined the two RDDs. Every interval, the RDD element from the "tick" stream has a non-zero value.&lt;/P&gt;</description>
    <pubDate>Fri, 05 Aug 2016 14:30:19 GMT</pubDate>
    <dc:creator>rgelhausen</dc:creator>
    <dc:date>2016-08-05T14:30:19Z</dc:date>
    <item>
      <title>Is there a way to get time-based ticks/triggers in a Spark Streaming job?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Is-there-a-way-to-get-time-based-ticks-triggers-in-a-Spark/m-p/108031#M25685</link>
      <description />
      <pubDate>Thu, 21 Apr 2016 00:17:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Is-there-a-way-to-get-time-based-ticks-triggers-in-a-Spark/m-p/108031#M25685</guid>
      <dc:creator>rgelhausen</dc:creator>
      <dc:date>2016-04-21T00:17:43Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to get time-based ticks/triggers in a Spark Streaming job?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Is-there-a-way-to-get-time-based-ticks-triggers-in-a-Spark/m-p/108032#M25686</link>
      <description>&lt;P&gt;That is one of the things that is more natural in storm. I think your only chance is to set a pretty low base frequency and then either check for the time/trigger event yourself ( in code that gets executed Iike a mappartitions. ) or to use a trigger input  ( for example a kafka topic wirh control commands) and join with your main data stream. &lt;/P&gt;&lt;P&gt;the first approach would be in pseudo code &lt;/P&gt;&lt;P&gt;Inputstream.mappartitions{&lt;/P&gt;&lt;P&gt;String command=&amp;lt;load trigger from database hbase whatever...&amp;gt;&lt;/P&gt;&lt;P&gt;Transform your data flow based on command &lt;/P&gt;&lt;P&gt;}&lt;/P&gt;</description>
      <pubDate>Thu, 21 Apr 2016 05:01:17 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Is-there-a-way-to-get-time-based-ticks-triggers-in-a-Spark/m-p/108032#M25686</guid>
      <dc:creator>bleonhardi</dc:creator>
      <dc:date>2016-04-21T05:01:17Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to get time-based ticks/triggers in a Spark Streaming job?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Is-there-a-way-to-get-time-based-ticks-triggers-in-a-Spark/m-p/108033#M25687</link>
      <description>&lt;P&gt;I ended up creating an additional source upstream that generates "tick" events at my specified interval, then joined the two RDDs. Every interval, the RDD element from the "tick" stream has a non-zero value.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Aug 2016 14:30:19 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Is-there-a-way-to-get-time-based-ticks-triggers-in-a-Spark/m-p/108033#M25687</guid>
      <dc:creator>rgelhausen</dc:creator>
      <dc:date>2016-08-05T14:30:19Z</dc:date>
    </item>
  </channel>
</rss>

