Adding the jar to SPARK_SUBMIT_OPTIONS is one approach.

But you can try out %dep also.

Regards,
Sourav

On Wed, Feb 24, 2016 at 1:54 PM, Felipe Almeida <falmeida1...@gmail.com>
wrote:

> There's z.load("maven-package") but I myself have had no luck with it (I
> get weird errors).
>
> I generally add the extra packages I need in the following file:
> /usr/lib/zeppelin/conf/zeppelin-env.sh
>
> I change the last line (that begins with export SPARK_SUBMIT_OPTIONS... )
> to this:
>
> export SPARK_SUBMIT_OPTIONS="$SPARK_SUBMIT_OPTIONS --packages
> org.apache.spark:spark-streaming-kinesis-asl_2.10:1.6.0"
>
> (I'm using Kinesis - you add whatever maven jars you need for you own
> project)
>
> Don't forget to restart the Spark interpreter for the changes to take
> effect.
>
> *FA *
> http://queirozf.com
> “Every time you stay out late; every time you sleep in; every time you
> miss a workout; every time you don’t give 100% – You make it that much
> easier for me to beat you.” - Unknown author
>
> On 24 February 2016 at 21:32, Vinayak Agrawal <vinayakagrawa...@gmail.com>
> wrote:
>
>> Hi All,
>> I am trying the tutorial for spark-streaming following the link
>> Tutorial with Streaming Data
>> https://zeppelin.incubator.apache.org/docs/0.5.5-incubating/tutorial/tutorial.html
>>
>> But I keep getting this error while importing twitter class:
>> import org.apache.spark.streaming._
>> <console>:39: error: object twitter is not a member of package
>> org.apache.spark.streaming import org.apache.spark.streaming.twitter._
>>
>> I would assume that perhaps something needs to be added in Spark Path?
>> any help is appreciated..
>>
>> Thanks
>> -
>> Vinayak Agrawal
>>
>>
>> "To Strive, To Seek, To Find and Not to Yield!"
>> ~Lord Alfred Tennyson
>>
>
>

Reply via email to