我正在使用storm jar类将拓扑提交到“nimbus”。它在本地工作正常,但在远程集群上它说无法加载主类。下面是错误
stderr: SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/usr/local/storm-0.9.0.1/lib/logback-classic-1.0.6.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/tmp/storm-starter.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
Error: Could not find or load main class ExclamationTopology
我正在 CLI 上运行以下命令:
usr/local/storm/bin/storm jar /tmp/storm-starter.jar ExclamationTopology
小智 5
对我来说这是一个类路径问题。一旦我遍历到 jar 所在的目录,并运行命令,一切工作正常。
从 Storm 主文件夹运行
./bin/storm jar examples/storm-starter/storm-starter-topologies-0.9.3.jar storm.starter.WordCountTopology TOne
Failed with error: Error: Could not find or load main class storm.starter.WordCountTopology
Running from directory examples/storm-starter
/root/storm/apache-storm-0.10.0/bin/storm jar storm-starter-topologies-0.10.0.jar storm.starter.WordCountTopology TOne
工作得很好。
| 归档时间: | 
 | 
| 查看次数: | 7117 次 | 
| 最近记录: |