jedis报错求助,ERR This instance has cluster support disabled

是一只Joker啊 是一只Joker啊 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区

目前搭建了redis的cluster集群,但是使用jedis连接时报ERR This instance has cluster support disabled的错误,求助下为什么呢

redis版本:3.0.504

jedis版本:3.7.0

环境:

 代码:

        Set<HostAndPort> nodes = new HashSet();
        nodes.add(new HostAndPort("192.168.202.203", 6379));
        nodes.add(new HostAndPort("192.168.202.203", 6380));
        nodes.add(new HostAndPort("192.168.202.203", 6381));
        nodes.add(new HostAndPort("192.168.202.203", 6382));
        nodes.add(new HostAndPort("192.168.202.203", 6383));
        nodes.add(new HostAndPort("192.168.202.203", 6384));
        JedisCluster cluster = new JedisCluster(nodes);
        cluster.setnx("123","123");
        System.out.printf(cluster.get("123"));

报错:

 

 

...全文

相关推荐

评论 1
收藏 已收藏
分享
返回顶部