Java Apache storm:无法加载主类org.Apache.storm.starter.EquipmationTopology
首先,我已经提到了很多类似的问题,但仍然无法解决。 我已经正确安装了nimbus和supervisor,没有错误,而“make install”甚至maven clean install and compile也没有任何错误,甚至我的0qm是用jzmq正确设置的,我的nimbus也是由./storm nimbus启动的,我的supervisor是由./storm supervisor启动的,但当我这样做的时候 ./storm jar~/ccbd work/storm2/examples/target/storm-starter-topologies-0.10.0.jar org.apache.storm.starter.惊呼本体论 我得到以下错误 运行:/usr/lib/jvm/java-7-openjdk-amd64/bin/java-client-Ddaemon.name=-Dstorm.options=-Dstorm.home=/home/hubatrix/ccbd-work/storm2/apache-storm-0.10.0-Dstorm.log.dir=/home/hubatrix/ccbd-work/storm-0.10.0/logs-Djava.library.path=/usr/local-Dstorm.conf.file=-cp/home/hubatrix/ccbd-work/storm2/apache-storm-0.10.0/lib/log4j-core-2.1.jar:/home/hubatrix/ccbd-work/storm2/apache-storm-0.10.0/lib/ccbd-api-1.7.jar:/home/hubatrix/ccbd-work/storm/storm2/apache-storm-0.10.0/lib/log4j-over-slf4j-1.6.jar:/home/hubatrix/ccbd/ccbd-work/storm-0.10.0.0/lib/asm/asm/apache/ccbd-4.0/storm-jar。10.0/lib/reflectasm-1.07-shaded.jar:/home/hubatrix/ccbd-work/storm2/apache-storm-0.10.0/lib/minlog-1.2.jar:/home/hubatrix/ccbd-work/storm2/apache-storm-0.10.0/lib/kryo-2.21.jar:/home/hubatrix/ccbd/ccbd/ccbd-work/storm2/storm2/apache-storm-0.10.0/disruptor-2.10.4.jar:/home/hubatrix/hubatrix/ccbd/ccbd/ccbd-work/storm-2/sastorm-2/0.10.0.10.0.0.0.0-work/storm2/apache-storm-0.10.0/lib/hadoop-auth-2.4.0.jar:/home/hubatrix/ccbd-work/storm2/apache-storm-0.10.0/lib/log4j-api-2.1.jar:/home/hubatrix/ccbd-work/storm-0.10.0/storm2/apache-storm-0.10.0/clojure-1.0.jar:/home/hubatrix/0.10.0/lib/log4j-slf4j-slf4j-impl.0.jar-core-0.10.0.jar:/home/hubatrix/ccbd-work/storm2/examples/target/storm-starter-topologies-0.10.0.jar:/home/hubatrix/ccbd-work/storm2/apache-storm-0.10.0/bin-Dstorm.jar=/home/hubatrix/ccbd-work/storm2/examples/target/storm-starter-topologies-0.10.jarorg.apache.storm.starter.pology 错误:找不到或加载主类org.apache.storm.starter.EquirtMationTopology 我做错了什么?请帮我修一下 而且我在本地机器上运行这个,并且我的storm.yaml配置正确 这是我的storm2文件结构,如果我在定义正确的自我时有任何错误的话 正如Matthias J.Sax提到的那样,我的每一个设置直到最后都是正确的,我的jar文件有问题,但我不知道问题是jar文件(拓扑)本身还是我刚刚下载了一个新的jar文件并运行的路径 ./storm jar~/ccbd work/storm2/storm-starter-0.0.1-SNAPSHOT-jar-with-dependencies.jar storm.starter.WordCountTopology WordCount-c nimbus.host=localhostJava Apache storm:无法加载主类org.Apache.storm.starter.EquipmationTopology,java,jar,apache-storm,Java,Jar,Apache Storm,首先,我已经提到了很多类似的问题,但仍然无法解决。 我已经正确安装了nimbus和supervisor,没有错误,而“make install”甚至maven clean install and compile也没有任何错误,甚至我的0qm是用jzmq正确设置的,我的nimbus也是由./storm nimbus启动的,我的supervisor是由./storm supervisor启动的,但当我这样做的时候 ./storm jar~/ccbd work/storm2/examples/targ
它的工作原理就像在蛋糕里散步一样,再次感谢您的回复。它不在正确的文件夹中:错误消息是“org.apache.storm.starter.EquipmationTopology”,但类文件在文件夹“storm/starter”中。(在Java中,包名必须与目录结构对齐。) 最近,
ExportmationTopology
从包storm.starter
移动到org.apache.storm.starter
。在版本0.10.0中,它仍然处于storm.starter
。因此,您需要通过
./storm jar ~/ccbd-work/storm2/examples/target/storm-starter-topologies-0.10.0.jar storm.starter.ExclamationTopology
它不在正确的文件夹中:错误消息显示为“org.apache.storm.starter.EquirmationTopology”,但类文件位于文件夹“storm/starter”中。(在Java中,包名必须与目录结构对齐。) 最近,
ExportmationTopology
从包storm.starter
移动到org.apache.storm.starter
。在版本0.10.0中,它仍然处于storm.starter
。因此,您需要通过
./storm jar ~/ccbd-work/storm2/examples/target/storm-starter-topologies-0.10.0.jar storm.starter.ExclamationTopology
我也遇到了这个问题,困惑了两天。然后我发现它是错误的文件夹问题。解决办法其实很简单。您不需要在前面添加“org.apache.storm.starter”。这意味着您只需将cd刻录到starter文件夹,然后运行“storm jar~/ccbd-work/storm2/examples/target/storm-starter-topologies-0.10.0.jar-pology”。这就是全部。然后可以在localhost:8080上检查拓扑。祝你好运 我也遇到了这个问题,困惑了两天。然后我发现它是错误的文件夹问题。解决办法其实很简单。您不需要在前面添加“org.apache.storm.starter”。这意味着您只需将cd刻录到starter文件夹,然后运行“storm jar~/ccbd-work/storm2/examples/target/storm-starter-topologies-0.10.0.jar-pology”。这就是全部。然后可以在localhost:8080上检查拓扑。祝你好运 我是否缺少任何信息?您确定jar文件包含该类吗?您可以通过
解压-l yourJarFile.jar | grep感叹号查看解压-l storm-starter-topologies-0.10.0.jar | grep感叹号1921 2015-10-23 15:35 storm/starter/感叹号pology$惊叹号bolt.class 2135 2015-10-23 15:35 storm/starter/感叹号pology.class 1764 2015-10-23 15:35storm/starter/ManualDRPC$ExportmationBolt.class
@MatthiasJ.Sax看到它了吗,我的numbus和主管都在运行,但无法设置主题,这也是来自storm starter的示例我缺少任何信息吗?你确定jar文件包含该类吗?您可以通过解压-l yourJarFile.jar | grep感叹号
$unzip-l storm-starter-topologies-0.10.0.jar | grep感叹号1921 2015-10-23 15:35 storm/starter/感叹号pology$惊叹号博尔特.2135级2015-10-23进行检查