前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >[ERR] Node xxxxx is not empty. Either the node already knows other nodes (check with CLUSTER NODES)

[ERR] Node xxxxx is not empty. Either the node already knows other nodes (check with CLUSTER NODES)

作者头像
zhangdd
发布2018-10-08 10:00:06
5.3K0
发布2018-10-08 10:00:06
举报
文章被收录于专栏:zhangdd.comzhangdd.com

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

处理办法:

解决方法:

1)、停止所有redis进程,将需要新增的节点下aof、rdb等本地备份文件删除;

2)、同时将新Node的集群配置文件删除,即:删除你redis.conf里面cluster-config-file所在的文件,一般为nodes.conf;

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

192.168.15.102:6000>? flushdb????? #清空当前数据库

启动redis进程重新执行集群新建命令

./redis-trib.rb create –replicas 1 192.168.15.102:6000 192.168.15.102:6001 192.168.15.102:6002 192.168.15.102:6003 192.168.15.102:6004 192.168.15.102:6005

>> Creating cluster >>> Performing hash slots allocation on 6 nodes… Using 3 masters: 192.168.15.102:6000 192.168.15.102:6001 192.168.15.102:6002 Adding replica 192.168.15.102:6004 to 192.168.15.102:6000 Adding replica 192.168.15.102:6005 to 192.168.15.102:6001 Adding replica 192.168.15.102:6003 to 192.168.15.102:6002 >>> Trying to optimize slaves allocation for anti-affinity ……. Can I set the above configuration? (type ‘yes’ to accept): yes >>> Nodes configuration updated >>> Assign a different config epoch to each node >>> Sending CLUSTER MEET messages to join the cluster Waiting for the cluster to join…

本文参与?腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
原始发表:2018-09-07,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客?前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与?腾讯云自媒体同步曝光计划? ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档
http://www.vxiaotou.com