yanlin-Lynn opened a new pull request #25099: [SPARK-28337][spark-assembly]add 
commons-jxpath dependency for assembly.
URL: https://github.com/apache/spark/pull/25099
 
 
   ## What changes were proposed in this pull request?
   
   This PR add `commons-jxpath:commons-jxpath` dependency for assembly it into 
jars directory.
   Spark contains `commons-configuration-1.6.jar` in the jars directory after 
assembly, and `commons-configuration-1.6.jar` depends on 
`commons-jxpath:commons-jxpath`. For spark application which use 
`XPathExpressionEngine`, a ClassNotFound exception will be thrown even though 
the classes of commons-jxpath:commons-jxpath are shaded inside the app jar. 
Becase class `XPathExpressionEngine`
   is loader by the **Launcher$AppClassLoader** in jars directory, so when the 
classloader need to load **NodePointerFactory**(which need by 
`XPathExpressionEngine`) class, user spark app jar is not in the path for 
searching.
   ## How was this patch tested?
   manual tests.
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to