1. 程式人生 > >redis叢集報錯Node is not empty

redis叢集報錯Node is not empty

叢集啟動時候遇到以下問題

[[email protected] 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等本地備份檔案刪除
[[email protected] redis-4.0.11]# rm -rf dump.rdb 
[[email protected] redis-4.0.11]# rm -rf nodes-700*

Java Demo 連線Redis
在這裡插入圖片描述

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