Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-6205

UISeleniumSuite fails for Hadoop 2.x test with NoClassDefFoundError

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.3.0
    • 1.3.2, 1.4.0
    • Tests
    • None

    Description

      mvn -DskipTests -Pyarn -Phive -Phadoop-2.4 -Dhadoop.version=2.6.0 clean install
      mvn -Pyarn -Phive -Phadoop-2.4 -Dhadoop.version=2.6.0 test -DwildcardSuites=org.apache.spark.ui.UISeleniumSuite -Dtest=none -pl core/ 
      

      will produce:

      UISeleniumSuite:
      *** RUN ABORTED ***
        java.lang.NoClassDefFoundError: org/w3c/dom/ElementTraversal
        ...
      

      It doesn't seem to happen without the various profiles set above.

      The fix is simple, although sounds weird; Selenium's dependency on xml-apis:xml-apis must be manually included in core's test dependencies. This probably has something to do with Hadoop 2 vs 1 dependency changes and the fact that Maven test deps aren't transitive, AFAIK.

      PR coming...

      Attachments

        Activity

          People

            srowen Sean R. Owen
            srowen Sean R. Owen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: