[ERR] Node is not empty. Either the node already knows other nodes (check with C
[root@node00 src]# ./redis-trib.rb add-node --slave --master-id4f6424e47a2275d2b7696bfbf8588e8c4c3a5b95 172.168.63.202:7001172.168.63.202:7000
......
[OK] All nodes agree about slotsconfiguration.
>>> Check for open slots...
>>> Check slots coverage...
[OK] All 16384 slots covered.
Connecting to node 172.168.63.202:7001: OK
[ERR] Node 172.168.63.202:7001 is not empty. Either the nodealready knows other nodes (check with CLUSTER NODES) or contains some key in database 0.
解決方法:
1)、將需要新增的節點下aof、rdb等本地備份文件刪除;
2)、同時將新Node的集群配置文件刪除,即:刪除你redis.conf裏面cluster-config-file所在的文件;
3)、再次添加新節點如果還是報錯,則登錄新Node,./redis-cli–h x –p對數據庫進行清除:
172.168.63.201:7001> flushdb #
通過以上解決方法中的1)、2)或者3)之後再執行腳本,成功執行;
[ERR] Node is not empty. Either the node already knows other nodes (check with C