skip to Main Content

How to setup jar configs in databricks for redis connections

I have installed the following jar in databricks "com.redislabs:spark-redis_2.12:2.5.0". And trying create a spark session with the respective authentications Below is the code where I create a spark session with creds redis= SparkSession.builder.appName("redis_connection").config("spark.redis.host", "hostname").config("spark.redis.port", "port").config("spark.redis.auth", "pass").getOrCreate() But when I try…

VIEW QUESTION
Back To Top
Search