Quantcast
Channel: Active questions tagged redis+java - Stack Overflow
Viewing all articles
Browse latest Browse all 2204

Jedis sentinelpool connection faling noauth authentication required

$
0
0

I am trying to connect with Redis using the following Jedis client code.

  jedisPool = new JedisSentinelPool(redisProperties.getSentinel().getMaster(), redisProperties.getSentinel().getNodes(), poolConfig, 2000, 2000, redisProperties.getPassword(),0, null, 2000, 2000, redisProperties.getSentinel().getPassword(), null);

Hoever, I am getting the following connections

Exception Occured Exception Message --> NOAUTH Authentication required.

I also tried providing the password in auth(), as other replies to a similar question have recommended.

jedisPool.getResource().auth(redisProperties.getSentinel().getPassword());

I tried almost all of JedisSentinelPool overloads but non of them seems working. I am using 4.4.3 version fo Jedis client. Upgrading or downgrading to a different version also did not help.


Viewing all articles
Browse latest Browse all 2204

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>