jedis 2.9.0, redis.clients.jedis.exceptions.JedisDataException: ERR This instance has cluster support disabled

1,260 views
Skip to first unread message

Danny Conlon

unread,
Mar 16, 2017, 6:13:39 AM3/16/17
to Jedis

jedis 2.9.0,   


connecting to a Redis labs enterprise free trial 4 process / shard cluster


redis pack: redis-4.4.2


redis.clients.jedis.exceptions.JedisDataException: ERR This instance has cluster support disabled

redis.clients.jedis.exceptions.JedisDataException: ERR This instance has cluster support disabled
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:20)
at redis.clients.jedis.JedisSlotBasedConnectionHandler.(JedisSlotBasedConnectionHandler.java:15)
at redis.clients.jedis.BinaryJedisCluster.(BinaryJedisCluster.java:41)
at redis.clients.jedis.JedisCluster.(JedisCluster.java:83)
at redis.clients.jedis.JedisCluster.(JedisCluster.java:74)
I have created a 4 shard cluster running on 1 physical box, using the Redis web console.

screen shot 2017-03-15 at 11 32 18

the redis console says its a cluster ?

when using open source redis 3.2.8, and using the redis.conf file, every thing works as expected.

port 6379
cluster-enabled yes
cluster-config-file nodes.conf
cluster-node-timeout 5000
appendonly no




closed git iuuse

https://github.com/xetorthio/jedis/issues/1485#event-1001749919

Itamar Haber

unread,
Mar 16, 2017, 9:20:23 AM3/16/17
to Jedis
Hi Danny,

The Redis Labs cluster is transparent in the sense that it appears like a single-instance Redis to the client. That means you can use it with any client, not only those with cluster support.

To use Jedis with it, simply use the regular Jedis client rather then JedisCluster.

Cheers,
Itamar
Reply all
Reply to author
Forward
0 new messages