Redis集群创建报错

Redis集群环境:och163/och164/och165

在执行如下脚本时报错:

./src/redis-trib.rb create  10.1.253.163:6379 10.1.253.164:6379 10.1.253.165:6379
/usr/lib/ruby/gems/1.8/gems/redis-3.0.7/lib/redis/client.rb:97:in `call': ERR Slot 16011 is already busy (Redis::CommandError)

from /usr/lib/ruby/gems/1.8/gems/redis-3.0.7/lib/redis.rb:2432:in `method_missing'

from /usr/lib/ruby/gems/1.8/gems/redis-3.0.7/lib/redis.rb:37:in `synchronize'

from /usr/lib/ruby/1.8/monitor.rb:242:in `mon_synchronize'

from /usr/lib/ruby/gems/1.8/gems/redis-3.0.7/lib/redis.rb:37:in `synchronize'

from /usr/lib/ruby/gems/1.8/gems/redis-3.0.7/lib/redis.rb:2431:in `method_missing'

.....

解决办法:

redis.conf中定义的 cluster-config-file 所在的文件删除,重新启动redis-server及运行redis-trib即可。

注:执行redis-trib.rb create时,不能使用hostname,只能使用ip地址

 

你可能感兴趣的:(redis)