-
Notifications
You must be signed in to change notification settings - Fork 382
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Maven classpath order is non-deterministic and Spark UI is affected #7472
Comments
I've verified that the classpath constructed by Maven (using The current implementation uses A little bit of refactoring is going to be required, because the performance problem from #5701 reappears when a list of actual names is used instead of a wildcard. Also, the default behavior when Maven builds the classpath is to point into the Maven local repo. It's not clear whether copying all the jar files into a per-kernel-instance directory is needed if wildcards aren't being used. On the other hand, clearing the shared Maven local repo would pull the rug out from under other running kernels, so maybe the copying still makes sense. |
thank you for researching this joe, i don't understand it yet, will look further after 0.19 is done. |
Hi @jpallas |
It seems that every time I run
%classpath add mvn org.apache.spark spark-sql_2.11 2.3.0
I get a different order for the classpath.This is problematic because there seems to be some version conflict in the Spark dependencies that is sensitive to the classpath ordering. I'm not 100% sure where the problem lies, but here's what I have so far. The stack dump when Spark starts up shows
and subsequently, visiting the Spark UI and going to the Executors tab dumps this
These complaints are apparently connected to a conflict between JAX-RS versions 1 and 2. Spark is using Jersey 2, but Hadoop 2.x is using Jersey 1. There is some discussion of conflict at SPARK-15343 but it doesn't yield a definitive resolution (if that's the underlying issue in this case).
It does appear that the order assigned to
jersey-core 1.9
andjavax.ws.rs-api 2.0.1
affects whether I see errors (but, I have to admit, I'm not sure that's the only factor).MNG-1412 is where Maven declares that classpath ordering should be consistent.
The text was updated successfully, but these errors were encountered: