【已解决】DolphinScheduler连接Zookeeper超时定位

07-03 1569阅读

项目场景:

DolphinScheduler 使用 ZooKeeper 作为注册中心,实现了服务的注册与发现。在分布式系统中,注册中心的作用是管理服务实例的信息,并允许其他服务在需要时发现和连接到这些实例。


问题描述

项目版本:DolphinScheduler-3.1.3

Zookeeper版本:3.8.4

DolphinScheduler连接Zookeeper超时

【已解决】DolphinScheduler连接Zookeeper超时定位

报错信息

Invocation of init method failed; nested exception is org.apache.dolphinscheduler.registry.api.RegistryException: zookeeper connect timeout: 127.0.0.1:2181

解决方案:

如果你确定你的Zookeeper已经启动、服务器防火墙已经开发端口。

修改application.yaml文件

将connection-timeout 和 block-until-connected 都设置成60s

registry:
  type: zookeeper
  zookeeper:
    namespace: dolphinscheduler
    connect-string: 127.0.0.1:2181
    retry-policy:
      base-sleep-time: 60ms
      max-sleep: 300ms
      max-retries: 5
    session-timeout: 60s
    connection-timeout: 60s
    block-until-connected: 60s
VPS购买请点击我

文章版权声明:除非注明,否则均为主机测评原创文章,转载或复制请以超链接形式并注明出处。

目录[+]