Storm Local Cluster可以正常工作但StormSubmitter失败

时间:2015-07-20 07:21:01

标签: apache-storm

我有两种拓扑结构。其中一个非常简单,Spout生成一个随机数,Bolt在数据库中保存相同的数字。此拓扑在本地群集和使用StormSubmitter提交到Storm时都可以正常工作。

下一个,虽然有点复杂,但遵循与先前拓扑相同的代码模式。这种拓扑在LocalCluster实现时效果很好,但在使用StormSubmitter时却无法正常工作。这可能是什么原因失败了?

我没有收到任何错误,但我在日志文件

中看到了这一点
2015-07-16T11:24:59.376+0530 b.s.m.n.Client [INFO] Reconnect started for Netty-Client-/192.168.1.117:6700... [1]
838 2015-07-16T11:25:09.532+0530 b.s.m.n.Client [INFO] Reconnect started for Netty-Client-/192.168.1.117:6700... [2]
839 2015-07-16T11:25:19.702+0530 b.s.m.n.Client [INFO] Reconnect started for Netty-Client-/192.168.1.117:6700... [3]
840 2015-07-16T11:25:29.837+0530 b.s.m.n.Client [INFO] Reconnect started for Netty-Client-/192.168.1.117:6700... [4]
841 2015-07-16T11:25:40.010+0530 b.s.m.n.Client [INFO] Reconnect started for Netty-Client-/192.168.1.117:6700... [5]
842 2015-07-16T11:25:50.187+0530 b.s.m.n.Client [INFO] Reconnect started for Netty-Client-/192.168.1.117:6700... [6]
843 2015-07-16T11:26:00.442+0530 b.s.m.n.Client [INFO] Reconnect started for Netty-Client-/192.168.1.117:6700... [7]
844 2015-07-16T11:26:10.760+0530 b.s.m.n.Client [INFO] Reconnect started for Netty-Client-/192.168.1.117:6700... [8]
845 2015-07-16T11:26:21.174+0530 b.s.m.n.Client [INFO] Reconnect started for Netty-Client-/192.168.1.117:6700... [9]

即使我检查Storm UI,拓扑也会成功运行,但不会打印任何本地日志。没有执行任何DB操作。但是所有内容都按照预期使用LocalCluster执行。

修改

storm.yaml:

 storm.zookeeper.servers:
   - "127.0.0.1"
 storm.zookeeper.port: 2181
 nimbus.host: "127.0.0.1"
 storm.local.dir: "/tmp/storm-data"
 java.library.path: "/usr/local/lib"
 storm.messaging.transport: backtype.storm.messaging.netty.Context
 supervisor.slots.ports:
      - 6700
      - 6701
      - 6702
      - 6703

0 个答案:

没有答案