lwcloud
北极心lw
2016-10-21 07:43

连接redis集群报错提示 ERR unknown command 'SENTINEL'?

Java 连接redis集群报错提示 ERR unknown command 'SENTINEL'?怎么解决呢!

连接集群的代码在这里https://github.com/warmbreeze/sharded-jedis-sentinel-pool

Exception in thread "main" redis.clients.jedis.exceptions.JedisDataException: ERR unknown command 'SENTINEL'
at redis.clients.jedis.Protocol.processError(Protocol.java:117)
at redis.clients.jedis.Protocol.process(Protocol.java:151)
at redis.clients.jedis.Protocol.read(Protocol.java:205)
at redis.clients.jedis.Connection.readProtocolWithCheckingBroken(Connection.java:297)
at redis.clients.jedis.Connection.getRawObjectMultiBulkReply(Connection.java:242)
at redis.clients.jedis.Connection.getObjectMultiBulkReply(Connection.java:248)
at redis.clients.jedis.Jedis.sentinelGetMasterAddrByName(Jedis.java:2824)
at com.cloud.utils.redis.ShardedJedisSentinelPool.initSentinels(ShardedJedisSentinelPool.java:166)
at com.cloud.utils.redis.ShardedJedisSentinelPool.(ShardedJedisSentinelPool.java:92)
at com.cloud.utils.redis.ShardedJedisSentinelPool.(ShardedJedisSentinelPool.java:75)
at ShardedJedisSentinelPoolTest.main(ShardedJedisSentinelPoolTest.java:31)

  • 点赞
  • 回答
  • 收藏
  • 复制链接分享

1条回答

为你推荐

换一换