I’m just starting to use the Scala version of Spark’s shell, and I’d like
to add in a jar I believe I need to access Twitter data live, twitter4j
<http://twitter4j.org/en/index.html>. I’m confused over where and how to
add this jar in.

SPARK-1089 <https://issues.apache.org/jira/browse/SPARK-1089> mentions two
environment variables, SPARK_CLASSPATH and ADD_JARS. SparkContext also has
an addJar method and a jars property, the latter of which does not have an
associated doc
<http://spark.apache.org/docs/latest/api/scala/index.html#org.apache.spark.SparkContext>
.

What’s the difference between all these jar-related things, and what do I
need to do to add this Twitter jar in correctly?

Nick
​




--
View this message in context: 
http://apache-spark-user-list.1001560.n3.nabble.com/How-should-I-add-a-jar-tp9224.html
Sent from the Apache Spark User List mailing list archive at Nabble.com.

Reply via email to