向Storm发送jar包的时候出错

周佳龙 发布于 2014/07/30 11:19
阅读 4K+
收藏 0

在向storm发送jar包的时候报错!

报错信息如下:

Exception in thread "main" java.lang.RuntimeException: org.apache.thrift7.transport.TTransportException: java.net.ConnectException: Connection refused
at backtype.storm.utils.NimbusClient.<init>(NimbusClient.java:36)
at backtype.storm.utils.NimbusClient.getConfiguredClient(NimbusClient.java:17)
at backtype.storm.StormSubmitter.submitTopology(StormSubmitter.java:69)
at backtype.storm.StormSubmitter.submitTopology(StormSubmitter.java:40)
at storm.starter.WordCountTopology.main(WordCountTopology.java:77)
Caused by: org.apache.thrift7.transport.TTransportException: java.net.ConnectException: Connection refused
at org.apache.thrift7.transport.TSocket.open(TSocket.java:183)
at org.apache.thrift7.transport.TFramedTransport.open(TFramedTransport.java:81)
at backtype.storm.utils.NimbusClient.<init>(NimbusClient.java:34)
... 4 more
Caused by: java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:579)
at org.apache.thrift7.transport.TSocket.open(TSocket.java:178)
... 6 more
上面说是连接出错,我网上查了一下大概是nimbus没起得来,但是我用bin/storm nimbus命令起来了,没报错。不知道该怎么办了?求大神们指点一二。

加载中
0
book
book
再三确认下logs/nimbus.log这个文件,看有没有报错,另外直接netstat -nap | grep -e port试试,看有没有监听,如果这些都好了,看看防火墙,防火墙ipv4和ipv6起停方式不一样
返回顶部
顶部