-
Notifications
You must be signed in to change notification settings - Fork 371
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
Cannot use in Databricks JedisConnectionException: Could not get a resource from the pool #357
Comments
Ok so I was facing exactly the same issue and I managed to solve it. I tested it with version You must set the variables in Spark configuration before launching the cluster. Otherwise if you put them directly in your spark session through
Example code (in Scala)
|
@tonofll hey sorry for asking in an old topic, I am having issues even adding the JAR to the cluster. How did you do it? |
To install de JAR in the cluster, just go to the cluster configuration and open Afterwards click Once installed, simply restart the cluster and it should work properly. To avoid |
Oh yeah I just noticed you switched to Maven Central from Spark Packages. In there, the latest is 2.3.0. I managed today to workaround this by just pasting the coordinates, repository and clicking Install with no browsing. It worked too. Thanks! |
I'm currently testing this in pyspark
I've installed this
spark_redis_2_4_0_jar_with_dependencies.jar
From here: https://repo1.maven.org/maven2/com/redislabs/spark-redis/2.4.0/
The notebook currently runs:
10.4 LTS ML (includes Apache Spark 3.2.1, Scala 2.12)
I'm able to connect to redis from the notebook using the redis lib from python
The text was updated successfully, but these errors were encountered: