java.lang.NoClassDefFoundError: backtype/storm/topology/IRichSpout
    at java.lang.Class.getDeclaredMethods0(Native Method)
    at java.lang.Class.privateGetDeclaredMethods(Class.java:2701)
    at java.lang.Class.privateGetMethodRecursive(Class.java:3048)
    at java.lang.Class.getMethod0(Class.java:3018)
    at java.lang.Class.getMethod(Class.java:1784)
    at sun.launcher.LauncherHelper.validateMainClass(LauncherHelper.java:544)
    at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:526)
Caused by: java.lang.ClassNotFoundException: backtype.storm.topology.IRichSpout

 原因是由于storm打包时不需要加入storm-core但是本地运行时需要所以需要手动去修改pom文件

<dependency>
<groupId>org.apache.storm</groupId>
<artifactId>storm-core</artifactId>
<version>0.9.5</version>

<!--<scope>provided</scope>-->
</dependency>

相关文章:

  • 2021-12-29
  • 2021-06-02
  • 2021-05-16
  • 2022-12-23
  • 2022-12-23
  • 2021-08-16
  • 2021-07-18
  • 2022-12-23
猜你喜欢
  • 2021-12-24
  • 2021-12-26
  • 2021-11-19
  • 2022-12-23
  • 2021-12-11
  • 2021-09-03
  • 2021-04-28
相关资源
相似解决方案