Skip to content
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

add support to spark.redis.url #349

Open
jonathansp opened this issue Jul 14, 2022 · 0 comments
Open

add support to spark.redis.url #349

jonathansp opened this issue Jul 14, 2022 · 0 comments

Comments

@jonathansp
Copy link

jonathansp commented Jul 14, 2022

Since redis 4.0, redis-cli accepts -u parameter, where an URL can be provided. Redis URL scheme is a well-known format (https://www.iana.org/assignments/uri-schemes/prov/redis) supported by most Redis drivers.

# snippet from redis-py.

>>> from redis.cluster import RedisCluster as Redis
>>> rc = Redis.from_url("redis://localhost:6379/0")
// snippet from jedis.

Jedis jedis = new Jedis("redis://:password@host:port/database");

Since spark-redis uses Jedis, I'd like to suggest adding support to spark.redis.url to connect to Redis.

References:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant