You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2020/03/06 03:51:29 UTC

[GitHub] [spark] yaooqinn opened a new pull request #27823: [SPARK-31063][Core] xml-apis is missing after xercesImpl bumped up to 2.12.0

yaooqinn opened a new pull request #27823: [SPARK-31063][Core] xml-apis is missing after xercesImpl bumped up to 2.12.0
URL: https://github.com/apache/spark/pull/27823
 
 
   <!--
   Thanks for sending a pull request!  Here are some tips for you:
     1. If this is your first time, please read our contributor guidelines: https://spark.apache.org/contributing.html
     2. Ensure you have added or run the appropriate tests for your PR: https://spark.apache.org/developer-tools.html
     3. If the PR is unfinished, add '[WIP]' in your PR title, e.g., '[WIP][SPARK-XXXX] Your PR title ...'.
     4. Be sure to keep the PR description updated to reflect all changes.
     5. Please write your PR title to summarize what this PR proposes.
     6. If possible, provide a concise example to reproduce the issue for a faster review.
     7. If you want to add a new configuration, please read the guideline first for naming configurations in
        'core/src/main/scala/org/apache/spark/internal/config/ConfigEntry.scala'.
   -->
   
   ### What changes were proposed in this pull request?
   <!--
   Please clarify what changes you are proposing. The purpose of this section is to outline the changes and how this PR fixes the issue. 
   If possible, please consider writing useful notes for better and faster reviews in your PR. See the examples below.
     1. If you refactor some codes with changing classes, showing the class hierarchy will help reviewers.
     2. If you fix some SQL features, you can provide some references of other DBMSes.
     3. If there is design documentation, please add the link.
     4. If there is a discussion in the mailing list, please add the link.
   -->
   ```java
    ✘ kentyao@hulk  ~/Downloads/spark/spark-3.1.0-SNAPSHOT-bin-20200305  bin/spark-sql
   20/03/06 11:05:58 WARN Utils: Your hostname, hulk.local resolves to a loopback address: 127.0.0.1; using 10.242.189.214 instead (on interface en0)
   20/03/06 11:05:58 WARN Utils: Set SPARK_LOCAL_IP if you need to bind to another address
   Exception in thread "main" java.lang.NoClassDefFoundError: org/w3c/dom/ElementTraversal
   	at java.lang.ClassLoader.defineClass1(Native Method)
   	at java.lang.ClassLoader.defineClass(ClassLoader.java:756)
   	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
   	at java.net.URLClassLoader.defineClass(URLClassLoader.java:468)
   	at java.net.URLClassLoader.access$100(URLClassLoader.java:74)
   	at java.net.URLClassLoader$1.run(URLClassLoader.java:369)
   	at java.net.URLClassLoader$1.run(URLClassLoader.java:363)
   	at java.security.AccessController.doPrivileged(Native Method)
   	at java.net.URLClassLoader.findClass(URLClassLoader.java:362)
   	at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
   	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:355)
   	at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
   	at org.apache.xerces.parsers.AbstractDOMParser.startDocument(Unknown Source)
   	at org.apache.xerces.xinclude.XIncludeHandler.startDocument(Unknown Source)
   	at org.apache.xerces.impl.dtd.XMLDTDValidator.startDocument(Unknown Source)
   	at org.apache.xerces.impl.XMLDocumentScannerImpl.startEntity(Unknown Source)
   	at org.apache.xerces.impl.XMLVersionDetector.startDocumentParsing(Unknown Source)
   	at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
   	at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
   	at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
   	at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
   	at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
   	at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:150)
   	at org.apache.hadoop.conf.Configuration.parse(Configuration.java:2482)
   	at org.apache.hadoop.conf.Configuration.parse(Configuration.java:2470)
   	at org.apache.hadoop.conf.Configuration.loadResource(Configuration.java:2541)
   	at org.apache.hadoop.conf.Configuration.loadResources(Configuration.java:2494)
   	at org.apache.hadoop.conf.Configuration.getProps(Configuration.java:2407)
   	at org.apache.hadoop.conf.Configuration.set(Configuration.java:1143)
   	at org.apache.hadoop.conf.Configuration.set(Configuration.java:1115)
   	at org.apache.spark.deploy.SparkHadoopUtil$.org$apache$spark$deploy$SparkHadoopUtil$$appendS3AndSparkHadoopHiveConfigurations(SparkHadoopUtil.scala:456)
   	at org.apache.spark.deploy.SparkHadoopUtil$.newConfiguration(SparkHadoopUtil.scala:427)
   	at org.apache.spark.deploy.SparkSubmit.$anonfun$prepareSubmitEnvironment$2(SparkSubmit.scala:342)
   	at scala.Option.getOrElse(Option.scala:189)
   	at org.apache.spark.deploy.SparkSubmit.prepareSubmitEnvironment(SparkSubmit.scala:342)
   	at org.apache.spark.deploy.SparkSubmit.org$apache$spark$deploy$SparkSubmit$$runMain(SparkSubmit.scala:871)
   	at org.apache.spark.deploy.SparkSubmit.doRunMain$1(SparkSubmit.scala:180)
   	at org.apache.spark.deploy.SparkSubmit.submit(SparkSubmit.scala:203)
   	at org.apache.spark.deploy.SparkSubmit.doSubmit(SparkSubmit.scala:90)
   	at org.apache.spark.deploy.SparkSubmit$$anon$2.doSubmit(SparkSubmit.scala:1007)
   	at org.apache.spark.deploy.SparkSubmit$.main(SparkSubmit.scala:1016)
   	at org.apache.spark.deploy.SparkSubmit.main(SparkSubmit.scala)
   Caused by: java.lang.ClassNotFoundException: org.w3c.dom.ElementTraversal
   	at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
   	at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
   	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:355)
   	at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
   	... 42 more
   
   ```
   
   this pr change the scope of  `xml-apis` artifacts from test to compile
   ### Why are the changes needed?
   <!--
   Please clarify why the changes are needed. For instance,
     1. If you propose a new API, clarify the use case for a new API.
     2. If you fix a bug, you can clarify why it is a bug.
   -->
   
   bug fix for missing dependency
   ### Does this PR introduce any user-facing change?
   <!--
   If yes, please clarify the previous behavior and the change this PR proposes - provide the console output, description and/or an example to show the behavior difference if possible.
   If no, write 'No'.
   -->
   
   no
   ### How was this patch tested?
   <!--
   If tests were added, say they were added here. Please make sure to add some test cases that check the changes thoroughly including negative and positive cases if possible.
   If it was tested in a way different from regular unit tests, please clarify how you tested step by step, ideally copy and paste-able, so that other reviewers can test and check, and descendants can verify in the future.
   If tests were not added, please describe why they were not added and/or why it was difficult to add.
   -->
   Manually,
   1  w/o this pr, I replaced `xercesImpl` back to 2.9.1 and problem solved.
   2 w/o this pr, I put `xml-apis` jar to jars dir and problem solved
   3. w/ this pr, verified 

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services

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


[GitHub] [spark] yaooqinn closed pull request #27823: [SPARK-31063][Core] xml-apis is missing after xercesImpl bumped up to 2.12.0

Posted by GitBox <gi...@apache.org>.
yaooqinn closed pull request #27823: [SPARK-31063][Core] xml-apis is missing after xercesImpl bumped up to 2.12.0
URL: https://github.com/apache/spark/pull/27823
 
 
   

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services

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