About storm error java.lang.NoClassDefFoundError: org/json/simple/JSONValue at storm.kafka.DynamicBroker


Solution:


Reduced dependency conflicts in 0.10.0 Storm relocation classes, see  http://storm.apache.org/2015/06/15/storm0100-beta-released.html .

Additionally, the json.simple package got relocated, see https://github.com/apache/storm/blob/v0.10.0-beta/storm-core/pom.xml#L552 . So the code that worked before because it implicitly relied on the existence of this package will now fail. To solve this problem, I added the following dependencies to my pom file:

<dependency>
  <groupId>com.googlecode.json-simple</groupId>
  <artifactId>json-simple</artifactId>
  <version>1.1.1</version>
</dependency>



Guess you like

Origin blog.csdn.net/csdn9874123/article/details/79142104