Hi Chad,

You can use %dep (
http://zeppelin.incubator.apache.org/docs/interpreter/spark.html#dependencyloading)
to load missing library.

%dep
z.reset
z.load("org.apache.spark:spark-streaming-twitter_2.10:1.3.1")

%spark
import org.apache.spark.streaming._
import org.apache.spark.streaming.twitter._
....


Hope this helps.

Thanks,
moon


On Thu, Sep 10, 2015 at 12:19 AM Chad Roberts <crobe...@redhat.com> wrote:

> When attempting to run the Twitter streaming example from
> https://zeppelin.incubator.apache.org/docs/tutorial/tutorial.html I am
> seeing the following error.  Can anyone help me figure it out?
>
> import org.apache.spark.streaming._ <console>:30: error: object twitter is
> not a member of package org.apache.spark.streaming import
> org.apache.spark.streaming.twitter._
>
> I am using spark 1.3.1 and the tip of zeppelin master (as of yesterday) in
> case that makes a difference.
>
> Thanks,
> Chad
>

Reply via email to