Lorg/apache/spark/streaming/api/java/JavaPairReceiverInputDStream; NoSuchMethodError

5G架构师 发布于 2017/07/01 17:21
阅读 155
收藏 0

Exception 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;
    at org.apache.spark.examp.JavaKafkaWordCount.main(JavaKafkaWordCount.java:84)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    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)
 

加载中
0
5G架构师
5G架构师

报错代码行,是   JavaPairReceiverInputDStream<String, String> messages =
            KafkaUtils.createStream(jssc, args[0], args[1], topicMap);

返回顶部
顶部