spark-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From avseq <>
Subject .toPairDStreamFunctions method not found
Date Thu, 23 Apr 2015 03:22:17 GMT
Dear allI had install spark 1.2.1 in centos 6.6 x64. I run the
NetworkWordcount example and it works.But when I paste the same code to the
Intellij , packet to a jar and execute it.It Always occurs the following
exceptionException in thread "main" java.lang.NoSuchMethodError:
at com.test.SparkStreamingApp$.main(SparkStreamingApp.scala:25)        at
com.test.SparkStreamingApp.main(SparkStreamingApp.scala)        at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)        at
at java.lang.reflect.Method.invoke(        at
org.apache.spark.deploy.SparkSubmit$.launch(SparkSubmit.scala:358)        at
org.apache.spark.deploy.SparkSubmit$.main(SparkSubmit.scala:75)        at
org.apache.spark.deploy.SparkSubmit.main(SparkSubmit.scala)But I confirm the
package had been import in the code.import
org.apache.spark.streaming.StreamingContext._import org.apache.spark._import
org.apache.spark.streaming.{Seconds, StreamingContext}I struggle in this
issue long time. Are there anyone can give me some suggestion?Thank you!

View this message in context:
Sent from the Apache Spark User List mailing list archive at
View raw message