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

Pyspark + Redis Remote Server

I have a server with redis and maven configured I then do the following sparkSession spark = pyspark .sql .SparkSession .builder .master('local[4]') .appName('try_one_core') .config("spark.redis.host", "XX.XXX.XXX.XXX") .config("spark.redis.port", "6379") .config("spark.redis.auth", "XXXX") .getOrCreate() I am trying to connect to a remote redis server…

VIEW QUESTION
Back To Top
Search