Node XXX is not empty. Either the node already knows other nodes or contains some key in database 0
来源:互联网 发布:ezdsdpro软件下载 编辑:程序博客网 时间:2024/06/07 17:23
关于启动redis集群或者集群(主、从)节点添加时:[ERR] Node 192.168.1.115:7007 is not empty. Either the node already knows other nodes (check with CLUSTER NODES) or contains some key in database 0.的问题
1.启动redis集群报该错误解决办法:
1)将每个节点下aof、rdb、nodes.conf本地备份文件删除;
[root@localhost 7001]# rm -rf appendonly.aof dump.rdb
……
2)192.168.1.115:7001> flushdb 清空当前数据库
3)重新连接redis集群,成功
[root@localhost redis-cluster]# vi startCluster.sh ./redis-trib.rb create --replicas l 192.168.1.115:7001 192.168.1.115:7002 192.168.1.115:7003 192.168.1.115:7004 192.168.1.115:7005 192.168.1.115:7006[root@localhost redis-cluster]# chmod 777 startCluster.sh [root@localhost redis-cluster]# ./startCluster.sh >>> Creating clusterConnecting to node 192.168.1.115:7001: OK>>> Performing hash slots allocation on 6 nodes...Using 3 masters:192.168.1.115:7001 192.168.1.115:7002 192.168.1.115:7003............................Can I set the above configuration? (type 'yes' to accept): yes..........................[OK] All nodes agree about slots configuration.>>> Check for open slots...>>> Check slots coverage...[OK] All 16384 slots covered.
这种情况发生在每次非正常关闭redis集群的时候
2.集群(主、从)节点添加报该错误解决办法:
错误原因:如果原来该结点在集群中的配置信息已经生成到cluster-config-file指定的配置文件中(如果cluster-config-file没有指定则默认为nodes.conf),这时可能会报错:
[ERR] Node XXXXXX is not empty. Either the node already knows other nodes (check with CLUSTER NODES) or contains some key in database 0
解决方法:删除生成的配置文件nodes.conf,删除后再执行./redis-trib.rb add-node指令
- Node XXX is not empty. Either the node already knows other nodes or contains some key in database 0
- Either the node already knows other nodes (check with CLUSTER NODES) or contains some key in databas
- [ERR] Node is not empty. Either the node already knows other nodes (check with C
- [ERR] Node is not empty. Either the node already knows other nodes (check with C
- [ERR] Node 127.0.0.1:7000 is not empty. Either the node already knows other nodes (check with CLUSTE
- redis 集群 创建报错 [ERR] Node is not empty. Either the node already knows other nodes (check with C
- 问题:Node 127.0.0.1:6379 is not empty. Either the node already knows other nodes (check with CLUSTER N
- [ERR] Node 192.168.1.77:7000 is not empty. Either the node already knows other nodes (check with CLU
- [ERR] Node 192.168.25.128:7111 is not empty. Either the node already knows other nodes (check with C
- Node 127.0.0.1:7001 is not empty. Either the nodealready knows other nodes
- redis集群服务器迁移报错[ERR] Node XXX.XXX.XXX.XX:7001 is not empty. Either the nodealready knows other nodes
- Node 192.168.206.130:7001 is not empty.Either the node already knows....异常
- rosrun,roslaunch: cannot launch node or is either a launch file in package
- rosrun,roslaunch: cannot launch node or is either a launch file in package
- redis 集群 Node is not empty
- adstpall.sh: Database connection could not be established. Either the database is down or the APPS c
- SSISThe Address in the "To" line is malformed. It is either missing the "@" symbol or is not valid.
- The node /hbase-unsecure is not in ZooKeeper.
- Dom对象模型
- Centos6配置JDK以及Tomcat,发布web项目
- AndroidStdio 关于课程表的小项目
- JAVA中值、对象的判等
- deemind_lab CODE_DIR 和ARCH_VAR 的东西
- Node XXX is not empty. Either the node already knows other nodes or contains some key in database 0
- 快速排序
- JDK1.5新特性之---可变参数
- 1079. 延迟的回文数 (20)
- TOJ4132 Hanoi tower 汉诺塔(递归入门)
- 考题篇(5.4) NSE4 01. 入门 ❀ 飞塔 (Fortinet) 网络安全专家
- 【opencv学习之二十二】Threshold阈值分割进阶adaptiveThreshold
- 模板引擎
- C语言学习历程(十四) 结构体链表实现通讯录