【发布时间】:2020-12-30 06:16:56
【问题描述】:
以下是 system.replication_queue 表中的错误:
代码:86,e.displayText() = DB::Exception: 收到来自远程的错误 服务器 ?endpoint=DataPartsExchange%3A%2Fclickhouse%2Ftables%2Freplicated%2Ftest8%2Freplicas%2FR01&part=1009_0_0_0&client_protocol_version=2&compress=false。 HTTP 状态代码:500 内部服务器错误,正文:代码:221, e.displayText() = DB::Exception: 没有命名的服务器间 IO 端点 DataPartsExchange:/clickhouse/tables/replicated/test8/replicas/R01, 堆栈跟踪(复制此消息时,始终包括行 下面):
我有 3 个 zookeeper 节点,以下是所有 3 个节点的配置:
<zookeeper incl="zookeeper" optional="true" />
<node index="1">
<host>ZK_Node1/host>
<port>2181</port>
</node>
<node index="2">
<host>ZK_Node2</host>
<port>2181</port>
</node>
<node index="3">
<host>ZK_Node3</host>
<port>2181</port>
</node>
</zookeeper>
它是一个 2 节点副本集,因此以下是每个副本的设置:
<interserver_http_host>HostName of server</interserver_http_host>
<remote_servers incl="clickhouse_remote_servers" >
<Prod_Cluster>
<shard>
<replica>
<host>Rep1_IPAddress</host>
<port>9000</port>
</replica>
<replica>
<host>Rep2_IPAddress</host>
<port>9000</port>
</replica>
</shard>
<Prod_Cluster>
</remote_servers>
<macros incl="macros" optional="true" />
<cluster>Prod_Cluster</cluster>
<shard>1</shard>
<replica>R01</replica>
</macros>
不确定,为了避免上述错误,我缺少什么。
【问题讨论】:
-
配置文件不是有效的 XML 可以吗?查找示例 -
ZK_Node1/host>. -
检查一下:您只为一个节点提供了
;您是否为第二个节点定义了单独的 macros-config(在 replica-field 中应该有另一个值)?
标签: clickhouse