【问题标题】:Error when submit topology in Nimbus在 Nimbus 中提交拓扑时出错
【发布时间】:2015-11-27 01:51:05
【问题描述】:

我在提交拓扑时遇到的错误

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

这是我在 nimbus 日志文件中得到的内容

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)

这里是我的storm.yaml文件

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"

还有什么吗??!我怎么了?

【问题讨论】:

  • 动物园管理员正在运行吗?您要将其提交到集群吗?
  • 是的,我运行了 zookeeper,我找到了半个小时的解决方案!问题出在 nimbus 的大小上,我更新它并成功运行,但我现在在 zookeeper 中遇到问题无法重新连接到 ZooKeeper 服务,会话 0x14ff864dff70000 已过期,正在关闭套接字连接,如果连接关闭或应该打开,是否有任何问题一直都在,我该怎么做?

标签: apache-storm apache-zookeeper


【解决方案1】:

问题在于 nimbus 的大小 应该尽可能的大

喜欢

nimbus.thrift.max_buffer_size: 20480000 

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-12-13
    • 1970-01-01
    • 1970-01-01
    • 2016-11-18
    相关资源
    最近更新 更多