I\'m using Structured Spark Streaming to write to HBase data coming from Kafka.
My cluster distribution is : Hadoop 3.0.0-cdh6.2.0, and i\'m using Spark 2.4.0
My
To solve this, do not use spark.driver.userClassPathFirst
and spark.executor.userClassPathFirst
but intstead, use spark.driver.extraClassPath
and spark.executor.extraClassPath
.
Definition from the official documentation : "Extra classpath entries to prepend to the classpath of the driver."
Example :
--conf spark.driver.extraClassPath=C:\Users\Khalid\Documents\Projects\libs\jackson-annotations-2.6.0.jar;C:\Users\Khalid\Documents\Projects\libs\jackson-core-2.6.0.jar;C:\Users\Khalid\Documents\Projects\libs\jackson-databind-2.6.0.jar
This solved my problem (conflict between the version of Jackson i want to use, and the one spark is using).
Hope it helps.