Jedis是Redis的Java客户端,关于其详细介绍见:https://github.com/xetorthio/jedis
本来打算基于Redis2.8.13版本上编译Jedis2.5.1,但是执行“make package”时得到了下列错误:
*** FATAL CONFIG FILE ERROR ***
Reading the configuration file, at line 8
>>> 'cluster-enabled yes'
Bad directive or wrong number of arguments
看提示,应该是Redis2.8.13不支持cluster功能,所以替换为Redis3.0. 这次“make package”没有了上面的错误,但是又出现了新的错误:
Results :
Failed tests:
JedisClusterTest.testDiscoverNodesAutomatically:159->Assert.assertEquals:542->Assert.assertEquals:555->Assert.assertEquals:118->Assert.failNotEquals:743->Assert.fail:88 expected:<3> but was:<4>
Tests in error:
JedisSentinelPoolTest.ensureSafeTwiceFailover:43->forceFailover:150 » JedisConnection
Tests run: 364, Failures: 1, Errors: 1,