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 2019/08/13 15:36:02 UTC

[GitHub] [spark] dongjoon-hyun edited a comment on issue #25429: [SPARK-28708][SQL] IsolatedClientLoader will not load hive classes from application jars on JDK9+

dongjoon-hyun edited a comment on issue #25429: [SPARK-28708][SQL] IsolatedClientLoader will not load hive classes from application jars on JDK9+
URL: https://github.com/apache/spark/pull/25429#issuecomment-520886671
 
 
   @wangyum . Did I miss something you did? I downloaded and rebased to the master.
   This PR still fails on both `hadoop-2.7` and `hadoop-3.2` profile like the followings on JDK11.
   ```
   $ build/sbt -Phive "hive/testOnly *.HiveSparkSubmitSuite"
   [info] Tests: succeeded 3, failed 8, canceled 3, ignored 0, pending 0
   [info] *** 8 TESTS FAILED ***
   [error] Failed: Total 11, Failed 8, Errors 0, Passed 3, Canceled 3
   [error] Failed tests:
   [error] 	org.apache.spark.sql.hive.HiveSparkSubmitSuite
   [error] (hive/test:testOnly) sbt.TestsFailedException: Tests unsuccessful
   [error] Total time: 148 s, completed Aug 13, 2019, 8:28:58 AM
   
   $ java -version
   openjdk version "11.0.3" 2019-04-16
   OpenJDK Runtime Environment AdoptOpenJDK (build 11.0.3+7)
   OpenJDK 64-Bit Server VM AdoptOpenJDK (build 11.0.3+7, mixed mode)
   ```
   
   The following is the error, `java.lang.ClassCastException`.
   ```
   [info] - SPARK-18989: DESC TABLE should not fail with format class not found *** FAILED *** (7 seconds, 649 milliseconds)
   [info]   spark-submit returned with exit code 1.
   [info]   Command line: './bin/spark-submit' '--class' 'org.apache.spark.sql.hive.SPARK_18989_CREATE_TABLE' '--name' 'SPARK-18947' '--master' 'local-cluster[2,1,1024]' '--conf' 'spark.ui.enabled=false' '--conf' 'spark.master.rest.enabled=false' '--jars' '/Users/dongjoon/.ivy2/cache/org.apache.hive/hive-contrib/jars/hive-contrib-2.3.5.jar' 'file:/Users/dongjoon/PRS/PR-25429/target/tmp/spark-48b7c936-0ec2-4311-9fb5-0de4bf86a0eb/testJar-1565710418275.jar'
   [info]
   [info]   2019-08-13 08:33:39.221 - stderr> WARNING: An illegal reflective access operation has occurred
   [info]   2019-08-13 08:33:39.221 - stderr> WARNING: Illegal reflective access by org.apache.spark.unsafe.Platform (file:/Users/dongjoon/PRS/PR-25429/common/unsafe/target/scala-2.12/classes/) to constructor java.nio.DirectByteBuffer(long,int)
   [info]   2019-08-13 08:33:39.221 - stderr> WARNING: Please consider reporting this to the maintainers of org.apache.spark.unsafe.Platform
   [info]   2019-08-13 08:33:39.221 - stderr> WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
   [info]   2019-08-13 08:33:39.221 - stderr> WARNING: All illegal access operations will be denied in a future release
   [info]   2019-08-13 08:33:43.59 - stderr> Exception in thread "main" org.apache.spark.sql.AnalysisException: java.lang.ClassCastException: class jdk.internal.loader.ClassLoaders$AppClassLoader cannot be cast to class java.net.URLClassLoader (jdk.internal.loader.ClassLoaders$AppClassLoader and java.net.URLClassLoader are in module java.base of loader 'bootstrap');
   [info]   2019-08-13 08:33:43.59 - stderr> 	at org.apache.spark.sql.hive.HiveExternalCatalog.withClient(HiveExternalCatalog.scala:109)
   ```

----------------------------------------------------------------
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