processsimulator.killallprocesses(line:78)nosuchmethoderror concurrenthashmap.keyset()

b1zrtrql  于 2021-05-29  发布在  Hadoop
关注(0)|答案(1)|浏览(307)

为什么?我第一次使用storm(从storm入门开始学习)并运行成功,但没有发现任何方法错误:

java.lang.NoSuchMethodError: java.util.concurrent.ConcurrentHashMap.keySet()Ljava/util/concurrent/ConcurrentHashMap$KeySetView;
        at org.apache.storm.ProcessSimulator.killAllProcesses(ProcessSimulator.java:78) ~[storm-core-1.0.3.jar:1.0.3]
        at org.apache.storm.testing$kill_local_storm_cluster.invoke(testing.clj:206) ~[storm-core-1.0.3.jar:1.0.3]
        at org.apache.storm.LocalCluster$_shutdown.invoke(LocalCluster.clj:66) ~[storm-core-1.0.3.jar:1.0.3]
        at org.apache.storm.LocalCluster.shutdown(Unknown Source) ~[storm-core-1.0.3.jar:1.0.3]
        at com.wjl.hello.TopologyMain.main(TopologyMain.java:45) ~[storm-hello-0.0.1-SNAPSHOT.jar:?]

以及

org.apache.storm.shade.org.apache.zookeeper.server.ServerCnxn$EndOfStreamException: Unable to read additional data from client sessionid 0x15b28de9a8b0011, likely client has closed socket
        at org.apache.storm.shade.org.apache.zookeeper.server.NIOServerCnxn.doIO(NIOServerCnxn.java:228) [storm-core-1.0.3.jar:1.0.3]
        at org.apache.storm.shade.org.apache.zookeeper.server.NIOServerCnxnFactory.run(NIOServerCnxnFactory.java:208) [storm-core-1.0.3.jar:1.0.3]
        at java.lang.Thread.run(Thread.java:722) [?:1.7.0_15]

运行成功:

-- Word Counter [word-counter-2] --
yes: 1 is: 5 it: 1 what: 1 apple: 1 name: 4 your: 3 funny: 1 haha: 2 en: 1 my: 2 this: 2
7z5jn7bk

7z5jn7bk1#

这可能是Java8<>7不兼容的问题。拜托。检查这个问题:concurrenthashmap崩溃应用程序是用jdk 8编译的,但目标是jre 7

相关问题