首页 文章

在 Storm 服务器上部署拓扑错误:_N_的 NoNode

提问于
浏览
0

我正在尝试将 storm/flux 拓扑部署到远程服务器。拓扑成功部署,但在服务器风暴 UI 上,它显示了 spout lag 错误:

无法获得 kafka 的偏移滞后。原因:org.apache.zookeeper.KeeperException$NoNodeException:KeeperErrorCode = org.apache.zookeeper.keeperExceptiom.create 的 NoNode 在 org.apache.zookeeper.keeperExceptiom.create...

虽然我已经使用以下方法检查了我的 zookeeper:

ls /brokers/topics/blockdata/partitions, it exists.

这是我的 spout 配置:

- id: "zkHosts"
    className: "org.apache.storm.kafka.ZkHosts"
    constructorArgs:
      - "172.25.33.191:2181"

  - id: "startingOffsetTime"
    className: "kafka.api.OffsetRequest"
    factory: "LatestTime"

  - id: "spoutConfig"
    className: "org.apache.storm.kafka.SpoutConfig"
    constructorArgs:
      - ref: "zkHosts"
      - "blockdata"
      - "/brokers/topics"
      - "myId"
    properties:
      - name: "ignoreZkOffsets"
        value: true
      - name: "scheme"
        ref: "stringMultiScheme"
      - name: "startOffsetTime"
        ref: "startingOffsetTime"

注意:此拓扑在本地模式下运行良好.

请看下面的截图:

错误截图

2 回答

相关问题