运行感叹号拓扑失败

时间:2014-04-24 16:20:58

标签: apache-storm nimbus topology

〜/ src / storm-0.8.1 / bin / storm jar /root/src/storm-starter/target/storm-starter-0.0.1-SNAPSHOT-jar-with-dependencies.jar storm.starter.ExclamationTopology演示

我试图运行它,它说问题在于nimbus连接,但是我的风暴客户端(和管理员在同一时间)与我的nimbus连接(在Strom UI中显示)

正在运行:java -client -Dstorm.options = -Dstorm.home = / root / src / storm-0.8.1 -Djava.library.path = / usr / local / lib:/ opt / local / lib:/ usr / lib -cp /root/src/storm-0.8.1/storm-0.8.1.jar:/root/src/storm-0.8.1/lib/asm-4.0.jar:/root/src/storm- 0.8.1 / lib目录/公地编解码器1.4.jar:/root/src/storm-0.8.1/lib/carbonite-1.5.0.jar:/root/src/storm-0.8.1/lib/kryo- 2.17.jar:/root/src/storm-0.8.1/lib/clout-0.4.1.jar:/root/src/storm-0.8.1/lib/clojure-1.4.0.jar:/根/ SRC /storm-0.8.1/lib/ring-servlet-0.3.11.jar:/root/src/storm-0.8.1/lib/hiccup-0.3.6.jar:/root/src/storm-0.8.1 /lib/disruptor-2.10.1.jar:/root/src/storm-0.8.1/lib/tools.cli-0.2.2.jar:/root/src/storm-0.8.1/lib/snakeyaml-1.9的.jar:/root/src/storm-0.8.1/lib/joda-time-2.0.jar:/root/src/storm-0.8.1/lib/jetty-util-6.1.26.jar:/根/ SRC /风暴-0.8.1 / lib目录/公地EXEC-1.1.jar:/root/src/storm-0.8.1/lib/jetty-6.1.26.jar:/root/src/storm-0.8.1/ LIB / servlet的API-2.5.jar:/root/src/storm-0.8.1/lib/jzmq-2.1.0.jar:/root/src/storm-0.8.1/lib/curator-framework-1.0。 1.jar:/根/ SRC / s的TORM-0.8.1 / lib目录/ HttpClient的-4.1.1.jar:/root/src/storm-0.8.1/lib/slf4j-log4j12-1.5.8.jar:/root/src/storm-0.8.1/ LIB / CLJ-时间0.4.1.jar:/root/src/storm-0.8.1/lib/commons-lang-2.5.jar:/root/src/storm-0.8.1/lib/libthrift7-0.7。 0.jar:/root/src/storm-0.8.1/lib/log4j-1.2.16.jar:/root/src/storm-0.8.1/lib/servlet-api-2.5-20081211.jar:/根/src/storm-0.8.1/lib/tools.logging-0.2.3.jar:/root/src/storm-0.8.1/lib/ring-core-0.3.10.jar:/root/src/storm -0.8.1 / LIB / minlog-1.2.jar:/root/src/storm-0.8.1/lib/objenesis-1.2.jar:/root/src/storm-0.8.1/lib/jline-0.9.94的.jar:/root/src/storm-0.8.1/lib/commons-io-1.4.jar:/root/src/storm-0.8.1/lib/ring-jetty-adapter-0.3.11.jar:/根/ SRC /风暴0.8.1 / LIB / jgrapht-0.8.3.jar:/root/src/storm-0.8.1/lib/json-simple-1.1.jar:/root/src/storm-0.8。 1 / LIB / tools.macro-0.1.0.jar:/root/src/storm-0.8.1/lib/commons-fileupload-1.2.1.jar:/root/src/storm-0.8.1/lib/的Compojure-0.6.4.jar:/root/src/storm-0.8.1/lib/httpcore-4.1.jar:/root/src/storm-0.8.1/lib/commons-logging-1.1.1.jar: /根/ SRC /风暴-0 .8.1 / LIB /番石榴13.0.jar:/root/src/storm-0.8.1/lib/curator-client-1.0.1.jar:/root/src/storm-0.8.1/lib/math.numeric -tower-0.0.1.jar:/root/src/storm-0.8.1/lib/junit-3.8.1.jar:/root/src/storm-0.8.1/lib/slf4j-api-1.5.8的.jar:/root/src/storm-0.8.1/lib/reflectasm-1.07-shaded.jar:/root/src/storm-0.8.1/lib/core.incubator-0.1.0.jar:/根/ SRC /风暴0.8.1 / LIB /动物园管理员-3.3.3.jar:/root/src/storm-starter/target/storm-starter-0.0.1-SNAPSHOT-jar-with-dependencies.jar:/根/ .storm:/root/src/storm-0.8.1/bin-Dstorm.jar = / root / src / storm-starter / target / storm-starter-0.0.1-SNAPSHOT-jar-with-dependencies.jar storm。 starter.ExclamationTopology demo线程“main”中的异常java.lang.RuntimeException:org.apache.thrift7.transport.TTransportException:java.net.ConnectException:连接在backtype.storm.utils.NimbusClient被拒绝。(NimbusClient.java:36) at backtype.storm.utils.NimbusClient.getConfiguredClient(NimbusClient.java:17)at backtype.storm.StormSubmitter.submitTopology(StormSubmitter.java:53)at storm .starter.ExclamationTopology.main(ExclamationTopology.java:59)引起:org.apache.thrift7.transport.TTransportException:java.net.ConnectException:连接在org.apache.thrift7.transport.TSocket.open(TSocket.java)被拒绝:183)atg.apache.thrift7.transport.TFramedTransport.open(TFramedTransport.java:81)at backtype.storm.utils.NimbusClient。(NimbusClient.java:34)... 3更多引起:java.net。 ConnectException:连接在java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)的java.net.PlainSocketImpl.socketConnect(Native Method)处于java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)处于java.net拒绝.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)位于java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)的java.net.Socket.connect(Socket.java:579)org.apache.thrift7.transport。 TSocket.open(TSocket.java:178)

1 个答案:

答案 0 :(得分:2)

这似乎表明您无法从尝试运行此命令的计算机连接到nimbus。很可能你的~/.storm/storm.yaml出了问题。确保你有correctly configured指向你的nimbus服务器。