Awww yessss. That worked! Thank you Sameer. Is this documented somewhere? I feel there there's a slight doc deficiency here.
Nick On Wed, Jul 9, 2014 at 2:50 PM, Sameer Tilak <ssti...@live.com> wrote: > Hi Nicholas, > > I am using Spark 1.0 and I use this method to specify the additional jars. > First jar is the dependency and the second one is my application. Hope this > will work for you. > > ./spark-shell --jars > /apps/software/secondstring/secondstring/dist/lib/secondstring-20140630.jar,/apps/software/scala-approsstrmatch/approxstrmatch.jar > > > > ------------------------------ > Date: Wed, 9 Jul 2014 11:44:27 -0700 > From: nicholas.cham...@gmail.com > To: u...@spark.incubator.apache.org > Subject: How should I add a jar? > > > 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: How should I add a jar? > <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 > <http://apache-spark-user-list.1001560.n3.nabble.com/> at Nabble.com. >