RedisLabs / spark-redis

A connector for Spark that allows reading and writing to/from Redis cluster
BSD 3-Clause "New" or "Revised" License
939 stars 372 forks source link

Caused by: java.lang.ClassNotFoundException: redis.clients.jedis.util.JedisClusterCRC16 #312

Closed ighack closed 3 years ago

ighack commented 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

ighack commented 3 years ago
 <dependency>
            <groupId>redis.clients</groupId>
            <artifactId>jedis</artifactId>
            <version>3.2.0</version>
        </dependency>

add this to pom.xml