Apache的风暴:无法加载主类org.apache.storm.starter.ExclamationTopology [英] Apache storm : Could not load main class org.apache.storm.starter.ExclamationTopology
问题描述
首先,我已经提到了不少类似的问题,但仍然没有能够解决它。
我已经安装了灵气和监督者正确,有没有错误,同时使安装Maven的连干净的安装和编译必须不惜一切没有错误,连我0qm设置了jzmq正确,也可以通过./storm灵气开始了我的灵气和开始了我的导师由./storm主管但是当我做
firstly I already referred quite a few similar questions but still haven't been able to fix it. I have installed nimbus and supervisor properly and there were no errors while "make install" even maven clean install and compile had no errors at all, even my 0qm is set up properly with jzmq, and also started my nimbus by ./storm nimbus and started my supervisor by ./storm supervisor but when I do
./风暴瓶〜/ ccbd工作/风暴2 /例子/目标/风暴启动器拓扑结构,0.10.0.jar org.apache.storm.starter.ExclamationTopology
./storm jar ~/ccbd-work/storm2/examples/target/storm-starter-topologies-0.10.0.jar org.apache.storm.starter.ExclamationTopology
我收到以下错误
运行:/ usr / lib目录/ JVM / Java的7-的OpenJDK,AMD64 /斌/ JAVA -client -Ddaemon.name = -Dstorm.options = -Dstorm.home = /家庭/ hubatrix / ccbd工作/风暴2 /apache-storm-0.10.0 -Dstorm.log.dir = /家庭/ hubatrix / ccbd工作/风暴2 / Apache的风暴0.10.0 /日志-Djava.library.path =的/ usr /本地-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/slf4j-api-1.7.7.jar:/home/hubatrix/ccbd-work/storm2/apache-storm-0.10.0/lib/log4j-over-slf4j-1.6.6.jar:/home/hubatrix/ccbd-work/storm2/apache-storm-0.10.0/lib/asm-4.0.jar:/home/hubatrix/ccbd-work/storm2/apache-storm-0.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-work/storm2/apache-storm-0.10.0/lib/disruptor-2.10.4.jar:/home/hubatrix/ccbd-work/storm2/apache-storm-0.10.0/lib/servlet-api-2.5.jar:/home/hubatrix/ccbd-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/storm2/apache-storm-0.10.0/lib/log4j-slf4j-impl-2.1.jar:/home/hubatrix/ccbd-work/storm2/apache-storm-0.10.0/lib/clojure-1.6.0.jar:/home/hubatrix/ccbd-work/storm2/apache-storm-0.10.0/lib/storm-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/conf:/home/hubatrix/ccbd-work/storm2/apache-storm-0.10.0/bin -Dstorm.jar = /家庭/ hubatrix / ccbd工作/风暴2 /例子/目标/风暴启动器拓扑结构,0.10.0.jar org.apache.storm.starter.ExclamationTopology
错误:无法找到或加载主类org.apache.storm.starter.ExclamationTopology
Running: /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/storm2/apache-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/slf4j-api-1.7.7.jar:/home/hubatrix/ccbd-work/storm2/apache-storm-0.10.0/lib/log4j-over-slf4j-1.6.6.jar:/home/hubatrix/ccbd-work/storm2/apache-storm-0.10.0/lib/asm-4.0.jar:/home/hubatrix/ccbd-work/storm2/apache-storm-0.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-work/storm2/apache-storm-0.10.0/lib/disruptor-2.10.4.jar:/home/hubatrix/ccbd-work/storm2/apache-storm-0.10.0/lib/servlet-api-2.5.jar:/home/hubatrix/ccbd-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/storm2/apache-storm-0.10.0/lib/log4j-slf4j-impl-2.1.jar:/home/hubatrix/ccbd-work/storm2/apache-storm-0.10.0/lib/clojure-1.6.0.jar:/home/hubatrix/ccbd-work/storm2/apache-storm-0.10.0/lib/storm-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/conf:/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.0.jar org.apache.storm.starter.ExclamationTopology Error: Could not find or load main class org.apache.storm.starter.ExclamationTopology
我究竟做错了什么?请帮我解决这个问题
而且我运行这是在本地机器上,我的storm.yaml配置正确。
what am I doing wrong here? Please help me fix this and also I am running this is on a local machine and my storm.yaml is configured properly.
下面是风暴2 http://paste.linux.chat/view/e4424189我的文件结构一>如果在所有我做错什么,从它定义指正。
here is my file structure of storm2 http://paste.linux.chat/view/e4424189 if at all I am doing anything wrong in defining correct me from it.
我的每一个设置是正确的,直到最后的马蒂亚斯J.萨克斯提到我有问题,与我的jar文件,但真的不知道,如果问题是jar文件(拓扑结构)本身或路径我刚刚下载从一个新的jar文件<一href=\"https://dl.dropboxusercontent.com/s/kc933u6vz2crqkb/storm-starter-0.0.1-SNAPSHOT-jar-with-dependencies.jar\" rel=\"nofollow\">https://dl.dropboxusercontent.com/s/kc933u6vz2crqkb/storm-starter-0.0.1-SNAPSHOT-jar-with-dependencies.jar跑
My every setup was right till the end as Matthias J. Sax mentioned I had issues with my jar file, but dont really know if the issue was jar file(topology) itself or the path I just download a new jar file from https://dl.dropboxusercontent.com/s/kc933u6vz2crqkb/storm-starter-0.0.1-SNAPSHOT-jar-with-dependencies.jar and ran
./风暴瓶〜/ ccbd工作/风暴2 /风暴启动-0.0.1-SNAPSHOT-JAR与 - dependencies.jar storm.starter.WordCountTopology WORDCOUNT -c nimbus.host =本地主机
./storm jar ~/ccbd-work/storm2/storm-starter-0.0.1-SNAPSHOT-jar-with-dependencies.jar storm.starter.WordCountTopology WordCount -c nimbus.host=localhost
和它在一个蛋糕再次工作就像散步,感谢您的答复。
and it worked like walk in a cake, thanks again for the response
推荐答案
这是不正确的文件夹:错误消息说org.apache.storm.starter.ExclamationTopology,但类文件夹中的风暴/起动机。 (在Java中,包的名称必须以目录结构保持一致。)
It is not in the correct folder: the error messages says "org.apache.storm.starter.ExclamationTopology" but the class file is in folder "storm/starter". (In Java, package names must align with directory structure.)
ExclamationTopology
从包装 storm.starter
移到 org.apache.storm。启动
最近。在0.10.0版本,它仍然是 storm.starter
。因此,你需要通过
ExclamationTopology
was moved from package storm.starter
to org.apache.storm.starter
recently. In version 0.10.0 it is still in storm.starter
. Thus, you need to submit your topology via
./storm jar ~/ccbd-work/storm2/examples/target/storm-starter-topologies-0.10.0.jar storm.starter.ExclamationTopology
这篇关于Apache的风暴:无法加载主类org.apache.storm.starter.ExclamationTopology的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!