New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JedisCluster with password exception #1165
Comments
@pythoner02 You can't because Redis cluster doesn't support it. Check https://groups.google.com/forum/#!searchin/redis-db/password/redis-db/Z8lMxTfDct8/fQY8slgbkYYJ for further info. |
Wanted to ping you that Redis Cluster works with authentication (using |
@mp911de I was aware that you can set a password individually to all Redis Cluster nodes, the thing is that all the official tools around like The reason why we didn't add this to JedisCluster is because based on the thread comments we have the impression that password in RC still haven't been totally polished and that it's probably that they might change in the future. That's why we were holding on this, because it seems like it's something that very few people need and the redis collaborators still haven't decide how to properly implement it in a clustered environment |
I Rewrite the source code. |
? |
@marcosnils @mp911de @pythoner02 May I suggest opening this issue again? Azure redis supports cluster but always requires password authentication, even with cluster. |
@TimLovellSmith this has been submitted as a PR here: #1269 |
redis's client connections. (set masterauth and requirepass in the cluster config files). as we know,
[ERR] Sorry, can't connect to node 192.168.1.100:6379. then, i want to ask that does jedis support connecting to redis-cluster-model server with password ?which jedis version is recommend ? |
@soulsoul jedis 2.9 and master (3.0) support password authentication in cluster. Releases are not ready yet but you can easily build jar from sources. |
@marcosnils thank you! |
First, please forgive my English is poor.
I use redis3.0.5 and jedis2.7.2.
redis cluster mode with requirepass open.
Here are my code:
JedisCluster jedisCluster = new JedisCluster(nodes); jedisCluster.auth("bar");
and it throws an exception :
redis.clients.jedis.exceptions.JedisDataException: NOAUTH Authentication required.
Please tell me how to use password with redis cluster.
Thank you!
The text was updated successfully, but these errors were encountered: