Closed ighack closed 3 years ago
spark-redis_2.11 : 2.4.2
spark : 2.4.0
redis : 4.0.2
DF.write .format("org.apache.spark.sql.redis") .option("spark.redis.host", "10.3.87.33") .option("spark.redis.port", "6379") .option("spark.redis.ssl", false) .option("table", "person") .mode(SaveMode.Overwrite) .save()
Caused by: java.lang.ClassNotFoundException: redis.clients.jedis.util.JedisClusterCRC16
<dependency> <groupId>redis.clients</groupId> <artifactId>jedis</artifactId> <version>3.2.0</version> </dependency>
add this to pom.xml
spark-redis_2.11 : 2.4.2
spark : 2.4.0
redis : 4.0.2
DF.write .format("org.apache.spark.sql.redis") .option("spark.redis.host", "10.3.87.33") .option("spark.redis.port", "6379") .option("spark.redis.ssl", false) .option("table", "person") .mode(SaveMode.Overwrite) .save()
Caused by: java.lang.ClassNotFoundException: redis.clients.jedis.util.JedisClusterCRC16