Spline Bundled Fat jar #713
Replies: 3 comments 3 replies
-
The provided dependencies are the ones provided by Spark itself. Please let us know the following info to help you solve the issue:
|
Beta Was this translation helpful? Give feedback.
-
+1 to Adam's answer. Just to expand it a little bit more:
It is a true fat jar. But remember, the agent isn't executable - it's an add-on to Spark. Therefore it doesn't have to (and it even could not) include the whole world. There's no point in bundling dependencies that are a priori available in the target runtime. It could even lead to classpath conflict in certain circumstances. Those jars aren't just missing - thay are excluded in purpose. So no, do not include those "provided" jars additionally unless you know exactly what you arw doing. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Hi @wajda,
The Spline agent bundled jar is not ideally a fat jar. As per the pom.xml under the bundled directory, it only includes the agent-core dependency and all other dependencies are marked as provided. So ideally this is not a fat jar.
There when we use the --jars option on pyspark with the bundled agent, it doesnot resolve the transitive dependencies and it fails with ClassNotFoundException.
Any reason why are we using provided in the bundled pom.xml ? Can we have a true fat jar for the bundled version ?
Beta Was this translation helpful? Give feedback.
All reactions