<?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: zeppelin twitter StreamingContext...not found in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/zeppelin-twitter-StreamingContext-not-found/m-p/146025#M44267</link>
    <description>&lt;P&gt;thanks &lt;A rel="user" href="https://community.cloudera.com/users/48/pankajsingh.html" nodeid="48"&gt;@pankaj singh&lt;/A&gt;, how did you add the repository to zeppelin?&lt;/P&gt;</description>
    <pubDate>Mon, 24 Oct 2016 13:31:53 GMT</pubDate>
    <dc:creator>avijeetd</dc:creator>
    <dc:date>2016-10-24T13:31:53Z</dc:date>
    <item>
      <title>zeppelin twitter StreamingContext...not found</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/zeppelin-twitter-StreamingContext-not-found/m-p/146021#M44263</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;while trying the twitter-streaming zeppelin notebook example in hdp 25., I keep getting this error&lt;/P&gt;&lt;P&gt;&amp;lt;console&amp;gt;:44: error: not found: type StreamingContext&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;&lt;P&gt;import org.apache.spark.streaming._ &lt;/P&gt;&lt;P&gt;import org.apache.spark.streaming.twitter._ &lt;/P&gt;&lt;P&gt;import org.apache.spark.storage.StorageLevel&lt;/P&gt;&lt;P&gt;import scala.io.Source&lt;/P&gt;&lt;P&gt;
import scala.collection.mutable.HashMap&lt;/P&gt;&lt;P&gt;
import java.io.File
import org.apache.log4j.Logger &lt;/P&gt;&lt;P&gt;import org.apache.log4j.Level&lt;/P&gt;&lt;P&gt;
&amp;lt;console&amp;gt;:44: error: not found: type StreamingContext &lt;/P&gt;&lt;P&gt;              val ssc = new StreamingContext(sc, Seconds(2))
                            ^&lt;/P&gt;&lt;P&gt;
&amp;lt;console&amp;gt;:45: error: not found: value TwitterUtils
              val tweets = TwitterUtils.createStream(ssc, None)&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Avijeet&lt;/P&gt;</description>
      <pubDate>Sun, 23 Oct 2016 15:03:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/zeppelin-twitter-StreamingContext-not-found/m-p/146021#M44263</guid>
      <dc:creator>avijeetd</dc:creator>
      <dc:date>2016-10-23T15:03:26Z</dc:date>
    </item>
    <item>
      <title>Re: zeppelin twitter StreamingContext...not found</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/zeppelin-twitter-StreamingContext-not-found/m-p/146022#M44264</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/11016/avijeetd.html" nodeid="11016" target="_blank"&gt;@Avijeet Dash&lt;/A&gt;&lt;P&gt;Try loading &lt;A href="https://mvnrepository.com/artifact/org.apache.spark/spark-streaming-twitter_2.11/1.5.2" target="_blank" rel="nofollow noopener noreferrer"&gt;https://mvnrepository.com/artifact/org.apache.spark/spark-streaming-twitter_2.11/1.5.2&lt;/A&gt; under spark interpreter as a dependency&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="8828-screen-shot-2016-10-23-at-73157-pm.png" style="width: 1426px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/21451iB0033813BC875A36/image-size/medium?v=v2&amp;amp;px=400" role="button" title="8828-screen-shot-2016-10-23-at-73157-pm.png" alt="8828-screen-shot-2016-10-23-at-73157-pm.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 13:28:22 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/zeppelin-twitter-StreamingContext-not-found/m-p/146022#M44264</guid>
      <dc:creator>pankaj_singh</dc:creator>
      <dc:date>2019-08-18T13:28:22Z</dc:date>
    </item>
    <item>
      <title>Re: zeppelin twitter StreamingContext...not found</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/zeppelin-twitter-StreamingContext-not-found/m-p/146023#M44265</link>
      <description>&lt;P&gt;hi &lt;A rel="user" href="https://community.cloudera.com/users/48/pankajsingh.html" nodeid="48"&gt;@pankaj singh&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I am trying to use the local repo @ /usr/hdp/current/zeppelin-server/local-repo/2BXQ86S9Q&lt;/P&gt;&lt;P&gt;Which has the jar files&lt;/P&gt;&lt;P&gt;Also isn't StreamContext part of Spark core libraries?&lt;/P&gt;&lt;P&gt;Why does it complain StremContext cont found.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Avijeet&lt;/P&gt;</description>
      <pubDate>Mon, 24 Oct 2016 12:22:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/zeppelin-twitter-StreamingContext-not-found/m-p/146023#M44265</guid>
      <dc:creator>avijeetd</dc:creator>
      <dc:date>2016-10-24T12:22:52Z</dc:date>
    </item>
    <item>
      <title>Re: zeppelin twitter StreamingContext...not found</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/zeppelin-twitter-StreamingContext-not-found/m-p/146024#M44266</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/11016/avijeetd.html" nodeid="11016"&gt;@Avijeet Dash&lt;/A&gt; I was trying some use-case and was facing similar issue. When i added the library the issue got resolved. So thought of sharing with you &lt;/P&gt;</description>
      <pubDate>Mon, 24 Oct 2016 12:37:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/zeppelin-twitter-StreamingContext-not-found/m-p/146024#M44266</guid>
      <dc:creator>pankaj_singh</dc:creator>
      <dc:date>2016-10-24T12:37:08Z</dc:date>
    </item>
    <item>
      <title>Re: zeppelin twitter StreamingContext...not found</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/zeppelin-twitter-StreamingContext-not-found/m-p/146025#M44267</link>
      <description>&lt;P&gt;thanks &lt;A rel="user" href="https://community.cloudera.com/users/48/pankajsingh.html" nodeid="48"&gt;@pankaj singh&lt;/A&gt;, how did you add the repository to zeppelin?&lt;/P&gt;</description>
      <pubDate>Mon, 24 Oct 2016 13:31:53 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/zeppelin-twitter-StreamingContext-not-found/m-p/146025#M44267</guid>
      <dc:creator>avijeetd</dc:creator>
      <dc:date>2016-10-24T13:31:53Z</dc:date>
    </item>
    <item>
      <title>Re: zeppelin twitter StreamingContext...not found</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/zeppelin-twitter-StreamingContext-not-found/m-p/146026#M44268</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/11016/avijeetd.html" nodeid="11016"&gt;@Avijeet Dash&lt;/A&gt;&lt;P&gt; Have a look at &lt;A href="https://zeppelin.apache.org/docs/latest/manual/dependencymanagement.html" target="_blank"&gt;https://zeppelin.apache.org/docs/latest/manual/dependencymanagement.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Oct 2016 15:36:01 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/zeppelin-twitter-StreamingContext-not-found/m-p/146026#M44268</guid>
      <dc:creator>pankaj_singh</dc:creator>
      <dc:date>2016-10-24T15:36:01Z</dc:date>
    </item>
    <item>
      <title>Re: zeppelin twitter StreamingContext...not found</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/zeppelin-twitter-StreamingContext-not-found/m-p/146027#M44269</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I tried this again with a new zeppelin instance - I can see the Jars getting added in log&lt;/P&gt;&lt;P&gt;still I get the same error&lt;/P&gt;&lt;P&gt;&amp;lt;console&amp;gt;:44: error: not found: type StreamingContext
              val ssc = new StreamingContext(sc, Seconds(2))&lt;/P&gt;&lt;P&gt;Logs (I have masked the ip address)&lt;/P&gt;&lt;P&gt;--------&lt;/P&gt;&lt;P&gt;a-support-3.0.3.jar with timestamp 1488442845223 INFO [2017-03-02 08:20:45,225] ({pool-2-thread-3} SparkInterpreter.java[open]:684) - sc.addJar(/usr/hdp/current/zeppelin-server/local-repo/org/twitter4j/twitter4j-media-support/3.0.3/twitter4j-media-support-3.0.3.jar) INFO [2017-03-02 08:20:45,227] ({pool-2-thread-3} Logging.scala[logInfo]:58) - Added JAR /usr/hdp/current/zeppelin-server/local-repo/org/twitter4j/twitter4j-stream/3.0.3/twitter4j-stream-3.0.3.jar at &lt;A href="http://000.000.0.00:43221/jars/twitter4j-stream-3.0.3.jar" target="_blank"&gt;http://000.000.0.00:43221/jars/twitter4j-stream-3.0.3.jar&lt;/A&gt; with timestamp 1488442845227 INFO [2017-03-02 08:20:45,228] ({pool-2-thread-3} SparkInterpreter.java[open]:684) - sc.addJar(/usr/hdp/current/zeppelin-server/local-repo/org/twitter4j/twitter4j-stream/3.0.3/twitter4j-stream-3.0.3.jar) INFO [2017-03-02 08:20:45,231] ({pool-2-thread-3} Logging.scala[logInfo]:58) - Added JAR /usr/hdp/current/zeppelin-server/local-repo/org/twitter4j/twitter4j-core/3.0.3/twitter4j-core-3.0.3.jar at &lt;A href="http://000.000.0.00:43221/jars/twitter4j-core-3.0.3.jar" target="_blank"&gt;http://000.000.0.00:43221/jars/twitter4j-core-3.0.3.jar&lt;/A&gt; with timestamp 1488442845231 INFO [2017-03-02 08:20:45,235] ({pool-2-thread-3} SparkInterpreter.java[open]:684) - sc.addJar(/usr/hdp/current/zeppelin-server/local-repo/org/twitter4j/twitter4j-core/3.0.3/twitter4j-core-3.0.3.jar) INFO [2017-03-02 08:20:45,237] ({pool-2-thread-3} Logging.scala[logInfo]:58) - Added JAR /usr/hdp/current/zeppelin-server/local-repo/2C73PQ8RJ/unused-1.0.0.jar at &lt;A href="http://000.000.0.00:43221/jars/unused-1.0.0.jar" target="_blank"&gt;http://000.000.0.00:43221/jars/unused-1.0.0.jar&lt;/A&gt; with timestamp 1488442845237 INFO [2017-03-02 08:20:45,238] ({pool-2-thread-3} SparkInterpreter.java[open]:703) - sc.addJar(/usr/hdp/current/zeppelin-server/local-repo/2C73PQ8RJ/unused-1.0.0.jar) INFO [2017-03-02 08:20:45,307] ({pool-2-thread-3} Logging.scala[logInfo]:58) - Added JAR /usr/hdp/current/zeppelin-server/local-repo/2C73PQ8RJ/twitter4j-core-3.0.3.jar at &lt;A href="http://000.000.0.00:43221/jars/twitter4j-core-3.0.3.jar" target="_blank"&gt;http://000.000.0.00:43221/jars/twitter4j-core-3.0.3.jar&lt;/A&gt; with timestamp 1488442845307 INFO [2017-03-02 08:20:45,313] ({pool-2-thread-3} SparkInterpreter.java[open]:703) - sc.addJar(/usr/hdp/current/zeppelin-server/local-repo/2C73PQ8RJ/twitter4j-core-3.0.3.jar) INFO [2017-03-02 08:20:45,314] ({pool-2-thread-3} Logging.scala[logInfo]:58) - Added JAR /usr/hdp/current/zeppelin-server/local-repo/2C73PQ8RJ/spark-streaming-twitter_2.11-1.5.2.jar at &lt;A href="http://000.000.0.00:43221/jars/spark-streaming-twitter_2.11-1.5.2.jar" target="_blank"&gt;http://000.000.0.00:43221/jars/spark-streaming-twitter_2.11-1.5.2.jar&lt;/A&gt; with timestamp 1488442845314 INFO [2017-03-02 08:20:45,314] ({pool-2-thread-3} SparkInterpreter.java[open]:703) - sc.addJar(/usr/hdp/current/zeppelin-server/local-repo/2C73PQ8RJ/spark-streaming-twitter_2.11-1.5.2.jar) INFO [2017-03-02 08:20:45,314] ({pool-2-thread-3} Logging.scala[logInfo]:58) - Added JAR /usr/hdp/current/zeppelin-server/local-repo/2C73PQ8RJ/twitter4j-stream-3.0.3.jar at &lt;A href="http://000.000.0.00:43221/jars/twitter4j-stream-3.0.3.jar" target="_blank"&gt;http://000.000.0.00:43221/jars/twitter4j-stream-3.0.3.jar&lt;/A&gt; with timestamp 1488442845314 INFO [2017-03-02 08:20:45,315] ({pool-2-thread-3} SparkInterpreter.java[open]:703) - sc.addJar(/usr/hdp/current/zeppelin-server/local-repo/2C73PQ8RJ/twitter4j-stream-3.0.3.jar) INFO [2017-03-02 08:20:50,921] ({pool-2-thread-3} SchedulerFactory.java[jobFinished]:137) - Job remoteInterpretJob_1488442776622 finished by scheduler org.apache.zeppelin.spark.SparkInterpreter776184430 INFO [2017-03-02 08:24:23,965] ({pool-2-thread-5} SchedulerFactory.java[jobStarted]:131) - Job remoteInterpretJob_1488443063964 started by scheduler org.apache.zeppelin.spark.SparkInterpreter776184430 INFO [2017-03-02 08:24:28,131] ({pool-2-thread-5} SchedulerFactory.java[jobFinished]:137) - Job remoteInterpretJob_1488443063964 finished by scheduler org.apache.zeppelin.spark.SparkInterpreter776184430&lt;/P&gt;</description>
      <pubDate>Thu, 02 Mar 2017 16:34:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/zeppelin-twitter-StreamingContext-not-found/m-p/146027#M44269</guid>
      <dc:creator>avijeetd</dc:creator>
      <dc:date>2017-03-02T16:34:45Z</dc:date>
    </item>
    <item>
      <title>Re: zeppelin twitter StreamingContext...not found</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/zeppelin-twitter-StreamingContext-not-found/m-p/146028#M44270</link>
      <description>&lt;P&gt;StreamingContext expects spark Conf. Can you pass conf instead of sc context?&lt;/P&gt;&lt;P&gt;A &lt;A href="https://spark.apache.org/docs/latest/api/scala/index.html#org.apache.spark.streaming.StreamingContext"&gt;StreamingContext&lt;/A&gt; object can be created from a &lt;A href="https://spark.apache.org/docs/latest/api/scala/index.html#org.apache.spark.SparkConf"&gt;SparkConf&lt;/A&gt; object. From &lt;A href="https://spark.apache.org/docs/latest/streaming-programming-guide.html#initializing-streamingcontext" target="_blank"&gt;https://spark.apache.org/docs/latest/streaming-programming-guide.html#initializing-streamingcontext&lt;/A&gt;&lt;/P&gt;
&lt;PRE&gt;import org.apache.spark._
import org.apache.spark.streaming._

val conf = new SparkConf().setAppName(appName).setMaster(master)
val ssc = new StreamingContext(conf, Seconds(1))&lt;/PRE&gt;</description>
      <pubDate>Thu, 02 Mar 2017 22:22:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/zeppelin-twitter-StreamingContext-not-found/m-p/146028#M44270</guid>
      <dc:creator>aervits</dc:creator>
      <dc:date>2017-03-02T22:22:25Z</dc:date>
    </item>
    <item>
      <title>Re: zeppelin twitter StreamingContext...not found</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/zeppelin-twitter-StreamingContext-not-found/m-p/146029#M44271</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/393/aervits.html" nodeid="393"&gt;@Artem Ervits&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I am getting below error now - which class is it complaining about&lt;/P&gt;&lt;P&gt;SparkConf OR StremingContext OR TwitterUtils ?&lt;/P&gt;&lt;P&gt;import org.apache.spark._
import org.apache.spark.streaming._
import org.apache.spark.streaming.twitter._
import org.apache.spark.storage.StorageLevel
import scala.io.Source
import scala.collection.mutable.HashMap
import java.io.File
import org.apache.log4j.Logger
import org.apache.log4j.Level
import sys.process.stringSeqToProcess
&amp;lt;console&amp;gt;:40: error: not found: type SparkConf
              val conf = new SparkConf().setAppName("avi_twitter").setMaster("local")
                             ^
&amp;lt;console&amp;gt;:41: error: not found: type StreamingContext
              val ssc = new StreamingContext(conf, Seconds(2))
                            ^
&amp;lt;console&amp;gt;:42: error: not found: value TwitterUtils
              val tweets = TwitterUtils.createStream(ssc, None, Array("#hadoop", "#bigdata", "#spark", "#hortonworks", "#HDP"))&lt;/P&gt;</description>
      <pubDate>Mon, 06 Mar 2017 14:08:24 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/zeppelin-twitter-StreamingContext-not-found/m-p/146029#M44271</guid>
      <dc:creator>avijeetd</dc:creator>
      <dc:date>2017-03-06T14:08:24Z</dc:date>
    </item>
    <item>
      <title>Re: zeppelin twitter StreamingContext...not found</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/zeppelin-twitter-StreamingContext-not-found/m-p/146030#M44272</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;It worked after I added imports again in the script.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Avijeet&lt;/P&gt;</description>
      <pubDate>Wed, 08 Mar 2017 16:32:23 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/zeppelin-twitter-StreamingContext-not-found/m-p/146030#M44272</guid>
      <dc:creator>avijeetd</dc:creator>
      <dc:date>2017-03-08T16:32:23Z</dc:date>
    </item>
  </channel>
</rss>

