簡體   English   中英

ProcessSimulator.killAllProcesses(line:78)NoSuchMethodError ConcurrentHashMap.keySet()

[英]ProcessSimulator.killAllProcesses(line:78) NoSuchMethodError ConcurrentHashMap.keySet()

為什么? 我第一次使用Storm(從Storm入門中學習)並運行成功,但發現NoSuchMethodError:

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

那可能是Java 8 <> 7不兼容的問題。 請。 檢查以下問題: ConcurrentHashMap使使用JDK 8編譯但針對JRE 7的應用程序崩潰

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM