Error when submit topology in Nimbus

空扰寡人 提交于 2019-12-13 02:47:09

问题


The error i had when submit a topology

java.net.ConnectException: Connection refused
at backtype.storm.utils.NimbusClient.<init>(NimbusClient.java:36)
at backtype.storm.utils.NimbusClient.getConfiguredClient(NimbusClient.java:17)

This what i got in nimbus log file

2015-09-22 04:19:58 ClientCnxn [INFO] Socket connection established to   
localhost/127.0.0.1:2181, initiating session
2015-09-22 04:20:13 ConnectionState [ERROR] Connection timed out
org.apache.zookeeper.KeeperException$ConnectionLossException: 
KeeperErrorCode = ConnectionLoss
at com.netflix.curator.ConnectionState.getZooKeeper(ConnectionState.java:72)
at com.netflix.curator.CuratorZookeeperClient.getZooKeeper(CuratorZookeeperClient.java:74)

and here my storm.yaml file

storm.zookeeper.servers:
  - "127.0.0.1" 
nimbus.host: "127.0.0.1"
storm.local.dir: /tmp/storm
drpc.servers:
  - "127.0.0.1"
  - "server2"

is there anything else ??! what's wrong i have here ?


回答1:


The problem was in the size of nimbus it should be greater as possible

like

nimbus.thrift.max_buffer_size: 20480000 


来源:https://stackoverflow.com/questions/32729542/error-when-submit-topology-in-nimbus

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!