Github user mccheah commented on the pull request:
https://github.com/apache/spark/pull/9615#issuecomment-157598153
So to recap this approach holistically, both from the perspective of my
application and from what needs to change Spark side:
1. Create "org.spark-project.jersey" artifact (loosely speaking) which is
the Jersey 1 jar minus all the javax.ws.rs stuff (no need to actually
shade/namespace the classes that way, just the artifact name)
2. Put all the javax.ws.rs stuff extracted from step 1 into its own
artifact, say "org.spark-project.javax.ws.rs"
3. Spark-core's pom depends on org.spark-project artifacts from step 1 and 2
4. Spark assembly excludes META-INF/services/javax.ws.rs.*
5. In my application's dependencies, exclude org.spark-project.javax.ws.rs
from spark-core
6. Set spark.executor.userClassPathFirst=true and ship Jersey 2 and new
javax.ws.rs jars to the executors
Am I missing anything? Thanks a lot by the way @vanzin , this discussion
has been extremely helpful.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]