Exclusion of dependency of spark-core in CDH

不羁岁月 提交于 2019-12-02 08:33:22
Khalid Bourhaba

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."

  • "prepend", as in, put in front of Spark’s core classpath.

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.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!