Closed karthick30121990 closed 1 year ago
var spark = SparkSession.Builder() .AppName("Redis-cache") .Master("local[*]") .Config("spark.redis.host", "localhost") .Config("spark.redis.port", "6379") .GetOrCreate();
DataFrame sdf = spark.Sql("CREATE TABLE IF NOT EXISTS clicks(asset STRING, count INT) USING org.apache.spark.sql.redis OPTIONS(table 'clicks',key.column 'asset')");
Hi @karthick30121990, it looks like something is wrong with your classpath, Scala is missing there. How do you run it?
Closed due to inactivity.
var spark = SparkSession.Builder() .AppName("Redis-cache") .Master("local[*]") .Config("spark.redis.host", "localhost") .Config("spark.redis.port", "6379") .GetOrCreate();
DataFrame sdf = spark.Sql("CREATE TABLE IF NOT EXISTS clicks(asset STRING, count INT) USING org.apache.spark.sql.redis OPTIONS(table 'clicks',key.column 'asset')");