【问题标题】:ProcessSimulator.killAllProcesses(line:78) NoSuchMethodError ConcurrentHashMap.keySet()ProcessSimulator.killAllProcesses(line:78) NoSuchMethodError ConcurrentHashMap.keySet()
【发布时间】:2017-04-01 09:49:04
【问题描述】:

为什么? 我第一次使用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 hadoop apache-storm


    【解决方案1】:

    这可能是 Java 8 7 不兼容问题。请。检查这个问题:ConcurrentHashMap crashing application compiled with JDK 8 but targeting JRE 7

    【讨论】:

      猜你喜欢
      • 2021-07-15
      • 1970-01-01
      • 2016-10-04
      • 1970-01-01
      • 1970-01-01
      • 2021-03-15
      • 2013-09-20
      • 2021-07-19
      • 2018-04-08
      相关资源
      最近更新 更多