zoukankan      html  css  js  c++  java
  • 本地运行storm时报错

    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>
  • 相关阅读:
    Thread与Handler
    开始机顶盒的生涯
    解决布局被键盘顶的难题
    自动滚动的Textview
    2-解决粘包问题
    1-socket编程
    zipfile模块
    subprocess模块
    day31-异常处理
    collections模块
  • 原文地址:https://www.cnblogs.com/rocky-AGE-24/p/7159905.html
Copyright © 2011-2022 走看看