spark-redis
spark-redis copied to clipboard
How to use spark to access Redis which running on sentinel mode?
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..
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?
updates on this?