spark-redis icon indicating copy to clipboard operation
spark-redis copied to clipboard

Unable to create table using spark.sql

Open karthick30121990 opened this issue 3 years ago • 1 comments

image image

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')");

karthick30121990 avatar Nov 28 '21 12:11 karthick30121990

Hi @karthick30121990, it looks like something is wrong with your classpath, Scala is missing there. How do you run it?

fe2s avatar Nov 29 '21 14:11 fe2s

Closed due to inactivity.

sazzad16 avatar Jan 17 '23 11:01 sazzad16