提交Storm拓扑失败/开始)

时间:2019-05-21 17:57:11

标签: java apache-storm

我正在尝试使用Storm。我设置了一个托管群集。我按照here中列出的所有步骤开始使用。在提交之前一切正常:

storm jar target/storm-starter-*.jar org.apache.storm.starter.RollingTopWords production-topology失败,

Running: java -client -Ddaemon.name= -Dstorm.options= -Dstorm.home=/usr/local/Cellar/storm/1.2.2/libexec -Dstorm.log.dir=/usr/local/Cellar/storm/1.2.2/libexec/logs -Djava.library.path=/usr/local/lib:/opt/local/lib:/usr/lib -Dstorm.conf.file= -cp /usr/local/Cellar/storm/1.2.2/libexec/*:/usr/local/Cellar/storm/1.2.2/libexec/lib/*:/usr/local/Cellar/storm/1.2.2/libexec/extlib/*:target/storm-starter-2.0.1-SNAPSHOT.jar:/usr/local/Cellar/storm/1.2.2/libexec/conf:/usr/local/Cellar/storm/1.2.2/libexec/bin -Dstorm.jar=target/storm-starter-2.0.1-SNAPSHOT.jar -Dstorm.dependency.jars= -Dstorm.dependency.artifacts={} org.apache.storm.starter.RollingTopWords production-topology
Error: Could not find or load main class org.apache.storm.starter.RollingTopWords
Caused by: java.lang.NoClassDefFoundError: org/apache/storm/topology/ConfigurableTopology

我对Java和Storm并不熟悉,但是入门还没有任何感觉。

1 个答案:

答案 0 :(得分:1)

可配置拓扑在Storm 1.2.2中不存在。最有可能您正在尝试使用从Storm 2.x构建的带有1.2.2集群的Storm-starter jar。这是行不通的。而是从1.x来源构建Storm-starter,它应该可以工作。