<?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: Integration of Spark Streaming with Flume in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Integration-of-Spark-Streaming-with-Flume/m-p/40714#M24319</link>
    <description>&lt;P&gt;thanks, but i have an other error with&amp;nbsp;sink machine hostname.&lt;/P&gt;&lt;P&gt;I do &amp;nbsp;:&lt;/P&gt;&lt;PRE&gt;FlumeUtils.createPollingStream(ssc,198.168.1.31,8020)&lt;/PRE&gt;&lt;P&gt;the error is :&amp;nbsp;&lt;STRONG&gt;overloaded method value createPollingStream with alternatives&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;In the official site :&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;val flumeStream = FlumeUtils.createPollingStream(streamingContext, [sink machine hostname], [sink port])&lt;/PRE&gt;&lt;P&gt;How can i enter the sink machine hostname ?&lt;/P&gt;</description>
    <pubDate>Wed, 11 May 2016 10:15:27 GMT</pubDate>
    <dc:creator>ghandrisaleh</dc:creator>
    <dc:date>2016-05-11T10:15:27Z</dc:date>
    <item>
      <title>Integration of Spark Streaming with Flume</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Integration-of-Spark-Streaming-with-Flume/m-p/40708#M24317</link>
      <description>&lt;P&gt;Hi i'm using spark streaming to analyse data arrived from flume. But i have an error with FlumeUtils, he says :&lt;STRONG&gt;&amp;nbsp;not found value : FlumeUtils&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;This is my code :&lt;/P&gt;&lt;PRE&gt;import org.apache.spark.SparkConf
import org.apache.spark.streaming.flume._
import org.apache.spark.SparkContext
import org.apache.spark.streaming.StreamingContext._
import org.apache.spark.streaming.{ Seconds, StreamingContext }
object WordCount {
  def main(args: Array[String]) {
    val conf = new SparkConf()
      .setAppName("File Count")
      .setMaster("local[2]")

    val sc = new SparkContext(conf)
    val ssc = new StreamingContext(sc, Seconds(10))
    val flumeStream = FlumeUtils.createPollingStream(ssc,198.168.1.31,8020) // not found value : FlumeUtils
    ............
       ssc.start()
    ssc.awaitTermination()
  }
}&lt;/PRE&gt;&lt;P&gt;and this is pom.xml dependency:&lt;/P&gt;&lt;PRE&gt;&amp;lt;dependency&amp;gt;
	&amp;lt;groupId&amp;gt;org.scala-lang&amp;lt;/groupId&amp;gt;
	&amp;lt;artifactId&amp;gt;scala-library&amp;lt;/artifactId&amp;gt;
	&amp;lt;version&amp;gt;2.10.4&amp;lt;/version&amp;gt;
&amp;lt;/dependency&amp;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-core_2.10&amp;lt;/artifactId&amp;gt;
	&amp;lt;version&amp;gt;1.6.1&amp;lt;/version&amp;gt;
&amp;lt;/dependency&amp;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-sql_2.10&amp;lt;/artifactId&amp;gt;
	&amp;lt;version&amp;gt;1.6.1&amp;lt;/version&amp;gt;
&amp;lt;/dependency&amp;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-flume-sink_2.10&amp;lt;/artifactId&amp;gt;
	&amp;lt;version&amp;gt;1.5.0&amp;lt;/version&amp;gt;
&amp;lt;/dependency&amp;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_2.10&amp;lt;/artifactId&amp;gt;
        &amp;lt;version&amp;gt;1.5.0&amp;lt;/version&amp;gt;
&amp;lt;/dependency&amp;gt;
&amp;lt;dependency&amp;gt;
	&amp;lt;groupId&amp;gt;org.apache.commons&amp;lt;/groupId&amp;gt;
	&amp;lt;artifactId&amp;gt;commons-lang3&amp;lt;/artifactId&amp;gt;
	&amp;lt;version&amp;gt;3.3.2&amp;lt;/version&amp;gt;
&amp;lt;/dependency&amp;gt;&lt;/PRE&gt;&lt;P&gt;thanks in advance for your reply !!!&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 10:18:28 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Integration-of-Spark-Streaming-with-Flume/m-p/40708#M24317</guid>
      <dc:creator>ghandrisaleh</dc:creator>
      <dc:date>2022-09-16T10:18:28Z</dc:date>
    </item>
    <item>
      <title>Re: Integration of Spark Streaming with Flume</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Integration-of-Spark-Streaming-with-Flume/m-p/40710#M24318</link>
      <description>&lt;P&gt;Add below dependency as well:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt; groupId = org.apache.spark
 artifactId = spark-streaming-flume_2.10
 version = 1.6.1&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;See &lt;A href="http://spark.apache.org/docs/latest/streaming-flume-integration.html#configuring-spark-streaming-application-1" target="_self"&gt;here&lt;/A&gt; for pull based configuration.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2016 08:52:22 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Integration-of-Spark-Streaming-with-Flume/m-p/40710#M24318</guid>
      <dc:creator>_Umesh</dc:creator>
      <dc:date>2016-05-11T08:52:22Z</dc:date>
    </item>
    <item>
      <title>Re: Integration of Spark Streaming with Flume</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Integration-of-Spark-Streaming-with-Flume/m-p/40714#M24319</link>
      <description>&lt;P&gt;thanks, but i have an other error with&amp;nbsp;sink machine hostname.&lt;/P&gt;&lt;P&gt;I do &amp;nbsp;:&lt;/P&gt;&lt;PRE&gt;FlumeUtils.createPollingStream(ssc,198.168.1.31,8020)&lt;/PRE&gt;&lt;P&gt;the error is :&amp;nbsp;&lt;STRONG&gt;overloaded method value createPollingStream with alternatives&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;In the official site :&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;val flumeStream = FlumeUtils.createPollingStream(streamingContext, [sink machine hostname], [sink port])&lt;/PRE&gt;&lt;P&gt;How can i enter the sink machine hostname ?&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2016 10:15:27 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Integration-of-Spark-Streaming-with-Flume/m-p/40714#M24319</guid>
      <dc:creator>ghandrisaleh</dc:creator>
      <dc:date>2016-05-11T10:15:27Z</dc:date>
    </item>
    <item>
      <title>Re: Integration of Spark Streaming with Flume</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Integration-of-Spark-Streaming-with-Flume/m-p/40715#M24320</link>
      <description>&lt;P&gt;You are messing with createPollingStream method.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Give 198.168.1.31 as sink address as below and it should work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;FlumeUtils.createPollingStream(ssc,"198.168.1.31",8020)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2016 10:47:55 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Integration-of-Spark-Streaming-with-Flume/m-p/40715#M24320</guid>
      <dc:creator>_Umesh</dc:creator>
      <dc:date>2016-05-11T10:47:55Z</dc:date>
    </item>
    <item>
      <title>Re: Integration of Spark Streaming with Flume</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Integration-of-Spark-Streaming-with-Flume/m-p/40717#M24321</link>
      <description>&lt;P&gt;Yes it's working now, thanks for your help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2016 10:56:31 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Integration-of-Spark-Streaming-with-Flume/m-p/40717#M24321</guid>
      <dc:creator>ghandrisaleh</dc:creator>
      <dc:date>2016-05-11T10:56:31Z</dc:date>
    </item>
  </channel>
</rss>

