<?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: HOW TO INTEGRATE OR CONSUME DATA FROM KAFKA TO SPARK STREAM in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HOW-TO-INTEGRATE-OR-CONSUME-DATA-FROM-KAFKA-TO-SPARK-STREAM/m-p/122142#M26571</link>
    <description>&lt;A rel="user" href="https://community.cloudera.com/users/4020/mailsarfarazkhan.html" nodeid="4020"&gt;@sarfarazkhan pathan&lt;/A&gt;I think you can't ignore this guy &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;  Awesome explanation with code examples. &lt;P&gt;&lt;A href="http://www.michael-noll.com/blog/2014/10/01/kafka-spark-streaming-integration-example-tutorial/" target="_blank"&gt;http://www.michael-noll.com/blog/2014/10/01/kafka-spark-streaming-integration-example-tutorial/&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 30 Apr 2016 02:55:12 GMT</pubDate>
    <dc:creator>jyadav</dc:creator>
    <dc:date>2016-04-30T02:55:12Z</dc:date>
    <item>
      <title>HOW TO INTEGRATE OR CONSUME DATA FROM KAFKA TO SPARK STREAM</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HOW-TO-INTEGRATE-OR-CONSUME-DATA-FROM-KAFKA-TO-SPARK-STREAM/m-p/122140#M26569</link>
      <description>&lt;P&gt;Can somebody tell me the data comeing from twitter to kafka succesfull now i want to process further in spark and store into hdfs please provide the java code for the same or any link that i can refer to&lt;/P&gt;</description>
      <pubDate>Fri, 29 Apr 2016 16:33:09 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/HOW-TO-INTEGRATE-OR-CONSUME-DATA-FROM-KAFKA-TO-SPARK-STREAM/m-p/122140#M26569</guid>
      <dc:creator>mail_sarfarazkh</dc:creator>
      <dc:date>2016-04-29T16:33:09Z</dc:date>
    </item>
    <item>
      <title>Re: HOW TO INTEGRATE OR CONSUME DATA FROM KAFKA TO SPARK STREAM</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HOW-TO-INTEGRATE-OR-CONSUME-DATA-FROM-KAFKA-TO-SPARK-STREAM/m-p/122141#M26570</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You will find an article here : &lt;A href="https://community.hortonworks.com/articles/25726/spark-streaming-explained-kafka-to-phoenix.html" target="_blank"&gt;https://community.hortonworks.com/articles/25726/spark-streaming-explained-kafka-to-phoenix.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Writing to HDFS can be easily achieved with RDD.saveAsTextFile() for example.&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;</description>
      <pubDate>Fri, 29 Apr 2016 16:37:19 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/HOW-TO-INTEGRATE-OR-CONSUME-DATA-FROM-KAFKA-TO-SPARK-STREAM/m-p/122141#M26570</guid>
      <dc:creator>pvillard</dc:creator>
      <dc:date>2016-04-29T16:37:19Z</dc:date>
    </item>
    <item>
      <title>Re: HOW TO INTEGRATE OR CONSUME DATA FROM KAFKA TO SPARK STREAM</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HOW-TO-INTEGRATE-OR-CONSUME-DATA-FROM-KAFKA-TO-SPARK-STREAM/m-p/122142#M26571</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/4020/mailsarfarazkhan.html" nodeid="4020"&gt;@sarfarazkhan pathan&lt;/A&gt;I think you can't ignore this guy &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;  Awesome explanation with code examples. &lt;P&gt;&lt;A href="http://www.michael-noll.com/blog/2014/10/01/kafka-spark-streaming-integration-example-tutorial/" target="_blank"&gt;http://www.michael-noll.com/blog/2014/10/01/kafka-spark-streaming-integration-example-tutorial/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 30 Apr 2016 02:55:12 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/HOW-TO-INTEGRATE-OR-CONSUME-DATA-FROM-KAFKA-TO-SPARK-STREAM/m-p/122142#M26571</guid>
      <dc:creator>jyadav</dc:creator>
      <dc:date>2016-04-30T02:55:12Z</dc:date>
    </item>
    <item>
      <title>Re: HOW TO INTEGRATE OR CONSUME DATA FROM KAFKA TO SPARK STREAM</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HOW-TO-INTEGRATE-OR-CONSUME-DATA-FROM-KAFKA-TO-SPARK-STREAM/m-p/122143#M26572</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/4020/mailsarfarazkhan.html" nodeid="4020"&gt;@sarfarazkhan pathan&lt;/A&gt;&lt;P&gt;You will need the following in your Maven POM: &lt;/P&gt;&lt;PRE&gt;	&amp;lt;dependency&amp;gt;
		&amp;lt;groupId&amp;gt;org.apache.spark&amp;lt;/groupId&amp;gt;
		&amp;lt;artifactId&amp;gt;spark-streaming-kafka_2.10&amp;lt;/artifactId&amp;gt;
		&amp;lt;version&amp;gt;VERSION&amp;lt;/version&amp;gt;
	&amp;lt;/dependency&amp;gt;
&lt;/PRE&gt;&lt;P&gt;Then create a stream as follows:&lt;/P&gt;&lt;PRE&gt;Map&amp;lt;String, Integer&amp;gt; kafkaTopics = new HashMap&amp;lt;String, Integer&amp;gt;();
kafkaTopics.put("TopicName", 1);
SparkConf sparkConf = new SparkConf();
	
JavaStreamingContext jssc = new JavaStreamingContext(sparkConf, Durations.seconds(batchSize));	
JavaPairReceiverInputDStream&amp;lt;String, String&amp;gt; kafkaStream = 
KafkaUtils.createStream(jssc, Constants.zkConnString,"spark-streaming-consumer-group", kafkaTopics);
//kafkaStream.print();
JavaPairDStream&amp;lt;String, String&amp;gt; deviceStream = kafkaStream;
	
&lt;/PRE&gt;</description>
      <pubDate>Mon, 02 May 2016 23:46:03 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/HOW-TO-INTEGRATE-OR-CONSUME-DATA-FROM-KAFKA-TO-SPARK-STREAM/m-p/122143#M26572</guid>
      <dc:creator>vvaks</dc:creator>
      <dc:date>2016-05-02T23:46:03Z</dc:date>
    </item>
    <item>
      <title>Re: HOW TO INTEGRATE OR CONSUME DATA FROM KAFKA TO SPARK STREAM</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HOW-TO-INTEGRATE-OR-CONSUME-DATA-FROM-KAFKA-TO-SPARK-STREAM/m-p/122144#M26573</link>
      <description>&lt;P style="margin-left: 40px;"&gt;I agree with &lt;A rel="user" href="https://community.cloudera.com/users/2528/jyadav.html" nodeid="2528"&gt;@Jitendra Yadav&lt;/A&gt;. The blog-posts of Michael Noll are excellent reading, especially in the realm of Kafka. &lt;/P&gt;</description>
      <pubDate>Wed, 04 May 2016 18:56:46 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/HOW-TO-INTEGRATE-OR-CONSUME-DATA-FROM-KAFKA-TO-SPARK-STREAM/m-p/122144#M26573</guid>
      <dc:creator>Justin_Watkins</dc:creator>
      <dc:date>2016-05-04T18:56:46Z</dc:date>
    </item>
  </channel>
</rss>

