How to override spark conf in OLP

160 Views Asked by At

How can I use the following flags to run a spark job in OLP?

--conf spark.driver.userClassPathFirst=true
--conf spark.executor.userClassPathFirst=true
2

There are 2 best solutions below

0
On

OLP currently do not support setting custom Spark properties. If you are running into dependency conflicts (often what triggers this question), you will need to find another way to resolve them such as shading (when building the deployed fat jar).

0
On

Using a shaded jar did help, and yes it was a dependency issue, since I was using a higher version of the commons lib.

I had to put my commons lib dependency before any other conflicting dependency would be included, incase anyone else faces this issue, they could try that to resolve conflicts.