spark-redis icon indicating copy to clipboard operation
spark-redis copied to clipboard

How to use spark to access Redis which running on sentinel mode?

Open NicoKam opened this issue 7 years ago • 2 comments

Well, I'm a rookie. I want to access Redis in my spark project. Here is the Redis process running on my server.

$ ps -ef|grep redis kam 7237 4438 0 14:01 pts/0 00:00:00 grep --color=auto redis kam 7469 1 0 Aug07 ? 00:10:23 src/redis-server bogon:6379 kam 7541 1 0 Aug07 ? 00:11:56 src/redis-server bogon:6380 kam 7547 1 0 Aug07 ? 00:11:57 src/redis-server bogon:6381 kam 7835 1 0 Aug07 ? 00:10:27 src/redis-sentinel *:26379 [sentinel]

Maybe I will raise up another sentinel using port 26380 So how shoud I config the spark-redis? I will highly appreciate your help..

NicoKam avatar Aug 15 '17 06:08 NicoKam

any news about this?

i checked the code and it shouldn't be too hard to support sentinels as the underlying Jedis library support it.

https://stackoverflow.com/questions/19382065/how-to-setup-a-connection-to-redis-sentinel-using-jedis-library

maybe there is a fast hack?

jrse avatar Dec 15 '20 10:12 jrse

updates on this?

jonathansp avatar Jul 15 '22 15:07 jonathansp