[ERR] Node 192.168.1.77:7000 is not empty. Either the node already knows other nodes (check with CLU

[ERR] Node 192.168.1.77:7000 is not empty. Either the node already knows other nodes (check with CLUSTER NODES) or contains some key in database 0.


解决方法:


1)、将需要新增的节点下aof、rdb、nodes.conf等本地备份文件删除;
2)、同时将新Node的集群配置文件删除,即:删除你redis.conf里面cluster-config-file所在的文件;


3)、再次添加新节点如果还是报错,则登录新Node,./redis-cli–h x –p对数据库进行清除:
172.168.63.201:7001> flushdb #清空当前数据库


通过以上解决方法中的1)、2)或者3)之后再执行脚本,成功执行;

猜你喜欢

转载自blog.csdn.net/qq_15936309/article/details/78592411