由于org.apache.storm.thrift.transport.TTransportException,提交拓扑到风暴集群失败:java.net.ConnectException:拒绝连接

时间:2016-08-10 07:46:01

标签: tcp connection apache-storm

当我在暴风雨中将我的topo提交给nimbus群集时,由于以下原因而失败:

Exception in thread "main" java.lang.RuntimeException: org.apache.storm.thrift.transport.TTransportException: java.net.ConnectException: Connection refused
at org.apache.storm.security.auth.TBackoffConnect.retryNext(TBackoffConnect.java:64)
at org.apache.storm.security.auth.TBackoffConnect.doConnectWithRetry(TBackoffConnect.java:56)
at org.apache.storm.security.auth.ThriftClient.reconnect(ThriftClient.java:99)
at org.apache.storm.security.auth.ThriftClient.<init>(ThriftClient.java:69)
at org.apache.storm.utils.NimbusClient.<init>(NimbusClient.java:106)
at org.apache.storm.utils.NimbusClient.getConfiguredClientAs(NimbusClient.java:78)
at org.apache.storm.StormSubmitter.submitTopologyAs(StormSubmitter.java:228)
at org.apache.storm.StormSubmitter.submitTopology(StormSubmitter.java:288)
at org.apache.storm.StormSubmitter.submitTopologyWithProgressBar(StormSubmitter.java:324)
at org.apache.storm.StormSubmitter.submitTopologyWithProgressBar(StormSubmitter.java:305)
at com.shuruitech.telepathia.storm.topo.DRPCTopology.main(DRPCTopology.java:54)

我在谷歌搜索了很多,我满足了提交topo的所有条件。但它仍然失败了。而且我使用了“tcpdump&#39;在6627端口捕获nimbus服务器和客户端之间的软件包的工具。它让我感到困惑的是,在我的access-nimbus.log中,它记录了它收到客户的请求:

2016-08-10 12:56:17.437 o.a.s.l.ThriftAccessLogger [INFO] Request ID: 4 access from:  principal:  operation: getClusterInfo

我知道如果它成功提交topo,access-nimbus.log将记录如下:

  

2016-07-19 10:10:3​​5.883 o.a.s.l.ThriftAccessLogger [INFO]请求ID:19访问自:principal:operation:getClusterInfo   2016-07-19 10:10:3​​5.883 o.a.s.l.ThriftAccessLogger [INFO]请求ID:20访问自:principal:operation:getClusterInfo   2016-07-19 10:10:3​​5.887 o.a.s.l.ThriftAccessLogger [INFO]请求ID:21访问自:principal:operation:getClusterInfo   2016-07-19 10:10:3​​5.887 o.a.s.l.ThriftAccessLogger [INFO]请求ID:22访问自:principal:operation:getClusterInfo   2016-07-19 10:10:3​​5.890 o.a.s.l.ThriftAccessLogger [INFO]请求ID:23访问自:principal:operation:getNimbusConf   2016-07-19 10:12:24.989 o.a.s.l.ThriftAccessLogger [INFO]请求ID:24访问自:principal:operation:getClusterInfo   2016-07-19 10:12:25.005 o.a.s.l.ThriftAccessLogger [INFO]请求ID:25访问自:principal:operation:getClusterInfo   2016-07-19 10:12:25.011 o.a.s.l.ThriftAccessLogger [INFO]请求ID:26访问自:principal:operation:getClusterInfo   2016-07-19 10:12:25.020 o.a.s.l.ThriftAccessLogger [INFO]请求ID:27访问自:principal:operation:getClusterInfo   2016-07-19 10:12:25.077 o.a.s.l.ThriftAccessLogger [INFO]请求ID:28访问权限:principal:operation:fileUpload   ...   2016-07-19 10:12:25.405 o.a.s.l.ThriftAccessLogger [INFO]请求ID:31访问权限:principal:operation:fileUpload   2016-07-19 10:12:25.426 o.a.s.l.ThriftAccessLogger [INFO]请求ID:32访问自:principal:operation:submitTopology

那我该怎么办?

P.S。 1)我关闭了服务器的防火墙

2)还收听了nimbus的端口(6627)

3)动物园管理员正常运行

1 个答案:

答案 0 :(得分:0)

我今天也遇到了这个错误! 我刚刚重启了风暴集群! 它已经解决了! 我不知道你是否已经解决了这个错误! 但你可以尝试重启!