NutzCN Logo
问答 redis cluster 集群模式无法连接
发布于 38天前 作者 一直在猜疑 136 次浏览 复制 上一个帖子 下一个帖子
标签: nutzwk

g.nutz.boot.NbApp - something happen!!
org.nutz.ioc.IocException: IocBean[loglevelService -> jedisClusterWrapper -> jedisCluster] throw Exception when creating
at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:153)
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:241)
at org.nutz.ioc.val.ReferValue.get(ReferValue.java:24)
at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:64)
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:241)
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:271)
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:161)
at org.nutz.integration.jedis.JedisAgent.getJedisClusterWrapper(JedisAgent.java:66)
at org.nutz.integration.jedis.JedisAgent.jedis(JedisAgent.java:50)
at org.nutz.integration.jedis.JedisAgent.getResource(JedisAgent.java:54)
at org.nutz.integration.jedis.RedisService.getJedis(RedisService.java:34)
at org.nutz.integration.jedis.RedisService.setex(RedisService.java:759)
at org.nutz.boot.starter.logback.exts.loglevel.LoglevelService.saveToRedis(LoglevelService.java:58)
at org.nutz.boot.starter.logback.exts.loglevel.LoglevelService.init(LoglevelService.java:37)
at org.nutz.boot.starter.logback.exts.loglevel.LoglevelService$FM$init$10583fbff8d536aad3a9d8b6141ae03e.invoke(LoglevelService.java)
at org.nutz.ioc.impl.ObjectMakerImpl$2.trigger(ObjectMakerImpl.java:181)
at org.nutz.ioc.weaver.DefaultWeaver.onCreate(DefaultWeaver.java:89)
at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:141)
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:241)
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:271)
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:161)
at org.nutz.boot.starter.logback.exts.LogbackStarter.start(LogbackStarter.java:92)
at org.nutz.boot.AppContext.startServers(AppContext.java:310)
at org.nutz.boot.NbApp.execute(NbApp.java:206)
at org.nutz.boot.NbApp.run(NbApp.java:178)
at cn.wizzer.app.sys.commons.core.DubboRpcSysMainLauncher.main(DubboRpcSysMainLauncher.java:39)
Caused by: org.nutz.lang.born.BorningException: Fail to born or cast to 'redis.clients.jedis.JedisCluster'
by args: [
@(172.17.241.43:26379)
@(2000)
@(0)
@(10)
@(null)
@(redis.clients.jedis.JedisPoolConfig@588ab592)]
because:redis.clients.jedis.exceptions.JedisDataException: ERR unknown command 'CLUSTER'
at org.nutz.lang.born.ConstructorCastingBorning.born(ConstructorCastingBorning.java:23)
at org.nutz.ioc.weaver.DefaultWeaver.born(DefaultWeaver.java:78)
at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:117)
... 25 common frames omitted
Caused by: redis.clients.jedis.exceptions.JedisDataException: ERR unknown command 'CLUSTER'
at redis.clients.jedis.Protocol.processError(Protocol.java:127)
at redis.clients.jedis.Protocol.process(Protocol.java:161)
at redis.clients.jedis.Protocol.read(Protocol.java:215)
at redis.clients.jedis.Connection.readProtocolWithCheckingBroken(Connection.java:340)
at redis.clients.jedis.Connection.getRawObjectMultiBulkReply(Connection.java:285)
at redis.clients.jedis.Connection.getObjectMultiBulkReply(Connection.java:291)
at redis.clients.jedis.Jedis.clusterSlots(Jedis.java:3376)
at redis.clients.jedis.JedisClusterInfoCache.discoverClusterNodesAndSlots(JedisClusterInfoCache.java:54)
at redis.clients.jedis.JedisClusterConnectionHandler.initializeSlotsCache(JedisClusterConnectionHandler.java:39)
at redis.clients.jedis.JedisClusterConnectionHandler.(JedisClusterConnectionHandler.java:17)
at redis.clients.jedis.JedisSlotBasedConnectionHandler.(JedisSlotBasedConnectionHandler.java:24)
at redis.clients.jedis.BinaryJedisCluster.(BinaryJedisCluster.java:54)
at redis.clients.jedis.JedisCluster.(JedisCluster.java:58)
at redis.clients.jedis.JedisCluster$FC$54543adb48f086b2d51f3b578bbdf575.invoke(JedisCluster.java)
at org.nutz.lang.born.AbstractConstructorBorning.call(AbstractConstructorBorning.java:25)
at org.nutz.lang.born.ConstructorCastingBorning.born(ConstructorCastingBorning.java:20)
... 27 common frames omitted
[INFO ] 14:27:43.925 org.nutz.ioc.impl.NutIoc - org.nutz.ioc.impl.NutIoc@1487230025 is closing. startup date [20-04-29 14:27:27.942] [DEBUG] 14:27:43.925 org.nutz.ioc.impl.ScopeContext - Depose object 'jedisPoolConfig' ...
[DEBUG] 14:27:43.925 org.nutz.ioc.impl.ScopeContext - Depose object 'jedisClusterNodes' ...
[DEBUG] 14:27:43.925 org.nutz.ioc.impl.ScopeContext - Depose object 'loglevelHeartbeatThread' ...
[DEBUG] 14:27:43.925 org.nutz.ioc.impl.ScopeContext - Depose object 'pubSubService' ...
[DEBUG] 14:27:43.926 org.nutz.integration.jedis.pubsub.PubSubService - punsubscribe logback:loglevel:pubsub
redis.clients.jedis.exceptions.JedisConnectionException: JedisPubSub is not subscribed to a Jedis instance.
at redis.clients.jedis.JedisPubSub.punsubscribe(JedisPubSub.java:86)
at org.nutz.integration.jedis.pubsub.PubSubService.depose(PubSubService.java:65)
at org.nutz.integration.jedis.pubsub.PubSubService$FM$depose$10583fbff8d536aad3a9d8b6141ae03e.invoke(PubSubService.java)
at org.nutz.ioc.impl.ObjectMakerImpl$2.trigger(ObjectMakerImpl.java:181)
at org.nutz.ioc.ObjectProxy.depose(ObjectProxy.java:83)
at org.nutz.ioc.impl.ScopeContext.clear(ScopeContext.java:110)
at org.nutz.ioc.impl.ScopeContext.depose(ScopeContext.java:122)
at org.nutz.ioc.impl.NutIoc.depose(NutIoc.java:297)
at org.nutz.boot.AppContext.depose(AppContext.java:299)
at org.nutz.boot.NbApp._shutdown(NbApp.java:228)
at org.nutz.boot.NbApp.run(NbApp.java:185)
at cn.wizzer.app.sys.commons.core.DubboRpcSysMainLauncher.main(DubboRpcSysMainLauncher.java:39)
[DEBUG] 14:27:43.926 org.nutz.ioc.impl.ScopeContext - Depose object 'jedisAgent' ...
[DEBUG] 14:27:43.926 org.nutz.ioc.impl.ScopeContext - Depose object 'redisService' ...
[DEBUG] 14:27:43.926 org.nutz.ioc.impl.ScopeContext - Depose object '7ktra2i8o8gs7r75o146inscov' ...
[INFO ] 14:27:43.926 com.alibaba.dubbo.registry.zookeeper.ZookeeperRegistry - [DUBBO] Unregister: dubbo://172.

4 回复

because:redis.clients.jedis.exceptions.JedisDataException: ERR unknown command 'CLUSTER'

你的reids不是集群的,要么没部署好要么地址不对

OK 我问问运维同学,谢谢鲨鱼哥

添加回复
请先登陆
回到顶部