Because this time wasted too much time, so just record this mistake, for everyone to reference
Check it out, the configuration is no problem, but on the Redis cluster machine can be, the error is as follows:
Exception in thread ' main ' redis.clients.jedis.exceptions.JedisConnectionException:Could not get a resource from the pool
Reason:
Because I was in the creation of the cluster when the IP address is: 127.0.0.1, not the computer access to the machine is not accessible, so re-create a cluster, the following command 127.0.0.1 change the cost machine IP
The wrong:
./redis-trib.rb Create --replicas 1 127.0.0.1:7001 127.0.0.1:7002 127.0.0.1:7003 127.0.0.1:7004 127.0.0.1:7005 127.0.0.1:7006
Correct:
./redis-trib.rb Create --replicas 1 native IP:7001 native IP:7002 Native IP: 7003 Native:7004 native IP:7005 native IP:7006
Java connect Redis cluster times error: Could not get a resource from the pool