cassandra - Cassandra 多 dc 复制 nodetool 重建问题和架构不匹配
问题描述
团队,我有一个 6 个节点的 Cassandra 集群,并且我在现有的 5 个节点设置中添加了一个新的数据中心。我已按照所有步骤操作,但在新 dc 的节点上运行 nodetool rebuild 时出现以下错误。
节点工具重建——数据中心1
nodetool: Unable to find sufficient sources for streaming range (389537640310009811,390720100939923035] in keyspace system_distributed
See 'nodetool help' or 'nodetool help <command>'.
节点工具状态
Datacenter: datacenter1
=======================
Status=Up/Down
|/ State=Normal/Leaving/Joining/Moving
-- Address Load Tokens Owns (effective) Host ID Rack
UN 172.21.201.205 1.75 GiB 256 16.5% ff0accd4-c33a-4984-967f-3ec763fe5414 rack1
UN 172.21.201.45 1.55 GiB 256 17.0% d3ac5afa-d561-43ee-89e2-db1d20c59b38 rack1
UN 172.21.201.44 2.37 GiB 256 17.0% 73d8e6c6-0aa3-4a91-80fc-8c7068c78a64 rack1
UN 172.21.201.207 1020.15 MiB 256 16.0% 5751ea7d-b339-43b3-bcfe-89fcbc60dea0 rack1
UN 172.21.201.46 1.64 GiB 256 17.0% 1c1afbfc-6a4b-40f0-a4c3-1eaa543eb2d5 rack1
UN 172.21.201.206 1.13 GiB 256 17.2% b11bfef9-e708-45cc-9ab3-e52983834096 rack1
Datacenter: dc1
===============
Status=Up/Down
|/ State=Normal/Leaving/Joining/Moving
-- Address Load Tokens Owns (effective) Host ID Rack
UN 10.41.6.155 983.91 KiB 256 17.3% bf7244bb-70dc-4d91-8131-cbe4886f09e7 rack1
UN 10.41.6.157 946.36 KiB 256 15.5% 5499e7cc-db23-4163-8f0c-8f437f61bd6f rack1
UN 10.41.6.156 1.14 MiB 256 15.3% f27e94a6-7e1c-4177-9f88-36d821a7808d rack1
UN 10.41.6.159 659.3 KiB 256 17.3% 453e97df-5b83-4798-9e5e-a13bbb33acee rack1
UN 10.41.6.158 909.51 KiB 256 18.2% a4bc046a-e2ef-4fd4-9ab7-18be642a4d5a rack1
UN 10.41.6.160 1.08 MiB 256 15.5% 267cf9d0-cd55-4186-a737-998443125b19 rack1
节点工具描述集群状态
#nodetool describecluster
Cluster Information:
Name: Recommendation
Snitch: org.apache.cassandra.locator.GossipingPropertyFileSnitch
DynamicEndPointSnitch: enabled
Partitioner: org.apache.cassandra.dht.Murmur3Partitioner
Schema versions:
ea63e099-37c5-3d7b-9ace-32f4c833653d: [10.41.6.155, 10.41.6.157, 10.41.6.156, 10.41.6.159, 10.41.6.158, 10.41.6.160]
fd507b64-3070-3ffd-8217-f45f2f188dfc: [172.21.201.205, 172.21.201.45, 172.21.201.44, 172.21.201.207, 172.21.201.206, 172.21.201.46]
旧 DC Cassandra 版本 - 3.1.1
新的 DC Cassandra 版本 - 3.11.4
有人可以快速帮我解决这个问题吗?
解决方案
经过进一步研究,我了解到两个 DC 上的 Cassandra 版本差异导致了这个问题。当我在两个 DC 上匹配 Cassandra 版本时,架构不匹配问题得到了解决。
推荐阅读
- openssl - Debian Buster 上的 openssl 1.1.1d 卡住无法启用自定义密码
- python - 如何在mysql中查询带有标签的字符串
- php - Mysql 链接后选择照片位置
- linux - TypeError: '>' 在 'method' 和 'int' 的实例之间不支持,但在这种情况下,'method' 是一个数字
- reverse-proxy - 使用 Traefik 的反向代理:如何在 URL mydom.com/subfolder01 和 mydom.com/subfolder02 中路由子文件夹
- javascript - javascript中switch语句中预期的声明或语句
- c++ - Xcode - 终端程序的 C++ 代码将无法运行
- javascript - 多人连接onicecandidate事件不会触发
- python - 使用 Pulp 进行线性规划 - 约束分配
- c - 如何使用 CMake 复制现代 IDE 的“构建和运行”功能?