The jarOfClass was added to JavaStreamignContext in Spark 0.9. It seems you
are somehow linking against an older version of Spark. If you have
generated your eclipse project from the Spark project master branch, make
sure that you have run "sbt/sbt clean" to ensure that there are no older
Spark jars in the target folders. Also make sure that the eclipse project
does not have any explicit Spark jars in the project classpath.

TD


On Fri, Feb 21, 2014 at 5:15 PM, Ankur Saran <ankur...@buffalo.edu> wrote:

> Hi All,
>
>
> I have build Spark from main branch(cloned from site today) and using
> eclipse to run the examples.
>
> I am tring to run JavaNetworkWordCount and getting error of (no method
> named *jarOfClass* in JavaStreamingContext)
>
> Compile time error:
>
> Exception in thread "main" java.lang.NoSuchMethodError:
> org.apache.spark.streaming.api.java.JavaStreamingContext.*jarOfClass*(Ljava/lang/Class;)[Ljava/lang/String;
> at
> org.apache.spark.streaming.examples.JavaNetworkWordCount.main(JavaNetworkWordCount.java:59)
>
> Similar error was in this mail but I think I havent mixed two
> branches.(Please help me know if there is a way to figure out if (in case)
> there is  mix in branch.
>
>
> http://mail-archives.apache.org/mod_mbox/spark-user/201401.mbox/%3ccaltjkpvejoeediexcfvsbj1jjqdsrjsevo-2bgk4pot71sa...@mail.gmail.com%3E
>
>
> Regrads
>

Reply via email to