redis集群报错Node is not empty

集群启动时候遇到以下问题

[root@hadoop redis-4.0.11]# ./src/redis-trib.rb create  --replicas 1 192.168.164.133:7000 192.168.164.133:7001 192.168.164.134:7002 192.168.164.134:7003 192.168.164.135:7004 192.168.164.135:7005 
>>> Creating cluster
[ERR] Node 192.168.164.134:7002 is not empty. Either the node already knows other nodes (check with CLUSTER NODES) or contains some key in database 0.

解决办法

#将需要新增的节点下dump、nodes等本地备份文件删除
[root@hadoop redis-4.0.11]# rm -rf dump.rdb 
[root@hadoop redis-4.0.11]# rm -rf nodes-700*

Java Demo 连接Redis
在这里插入图片描述

github https://github.com/liruizi/storm_Kafka_demo

猜你喜欢

转载自blog.csdn.net/liruizi/article/details/84572260