spark2.11和kafka_2.11-0.9.0.1 组合搭建,能顺利跑起来吗?我用spark的example代码跑不起来

知行合一1 发布于 2017/07/04 12:03
阅读 710
收藏 0

spark2.11和kafka_2.11-0.9.0.1 组合搭建,能顺利跑起来吗?我用spark的example代码跑不起来

in thread "main" java.lang.NoSuchMethodError: org.apache.spark.streaming.kafka.KafkaUtils.createStream(Lorg/apache/spark/streaming/api/java/JavaStreamingContext;Ljava/lang/String;Ljava/lang/String;Ljava/util/Map;)Lorg/apache/spark/streaming/api/java/JavaPairReceiverInputDStream;op      at org.apache.spark.examp.KafkaWordCount2.main(KafkaWordCount2.java:87)01      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) b      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)in      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)]$      at java.lang.reflect.Method.invoke(Method.java:498)
    at org.apache.spark.deploy.SparkSubmit$.org$apache$spark$deploy$SparkSubmit$$runMain(SparkSubmit.scala:738)
    at org.apache.spark.deploy.SparkSubmit$.doRunMain$1(SparkSubmit.scala:187)
    at org.apache.spark.deploy.SparkSubmit$.submit(SparkSubmit.scala:212)
    at org.apache.spark.deploy.SparkSubmit$.main(SparkSubmit.scala:126)
    at org.apache.spark.deploy.SparkSubmit.main(SparkSubmit.scala)
 

 

加载中
返回顶部
顶部