【clickhouse】ClickHouseException code: 999 Cannot allocate block number in ZooKeeper: Coordination

【clickhouse】ClickHouseException code: 999 Cannot allocate block number in ZooKeeper: Coordination_第1张图片

1.概述

clickhouse报错

com.dtstack.jlogstash.outputs.core.common.ClickhouseException: ru.yandex.clickhouse.except.ClickHouseException: ClickHouse exception, code: 999, host: 172.16.8.84, port: 8123; Code: 999, e.displayText() = DB::Exception: Cannot allocate block number in ZooKeeper: Coordination::Exception: Connection loss (version 19.14.6.12)

ck与Zookeeper的连接丢失导致不能分配块号等问题.

在Clickhouse中, 表的元数据信息, 每个数据块的信息, 每次插入的时候, 数据同步的时候, 都需要和zookeeper进行交互. zookeerper 服务在同步日志过程中, 会导致ZK无法响应外部请求, 进而引发session过期等问题.

2.解决方法

zookeeper相关的优化.修改zookeeper的配置项

具体的参数说明可以看官网 Clickhouse Settings

clientPort=

你可能感兴趣的:(clickhouse,clickhouse)