Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
2.4.0
-
None
-
None
Description
Add org.apache.derby to IsolatedClientLoader,otherwise it may throw an exception:
[info] Cause: java.sql.SQLException: Failed to start database 'metastore_db' with class loader org.apache.spark.sql.hive.client.IsolatedClientLoader$$anon$1@2439ab23, see the next exception for details. [info] at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(Unknown Source) [info] at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(Unknown Source) [info] at org.apache.derby.impl.jdbc.Util.seeNextException(Unknown Source) [info] at org.apache.derby.impl.jdbc.EmbedConnection.bootDatabase(Unknown Source) [info] at org.apache.derby.impl.jdbc.EmbedConnection.<init>(Unknown Source) [info] at org.apache.derby.jdbc.InternalDriver$1.run(Unknown Source)
How to reproduce:
build/sbt clean package -Phive -Phive-thriftserver export SPARK_PREPEND_CLASSES=true bin/spark-sql --conf spark.sql.hive.metastore.version=2.3.4 --conf spark.sql.hive.metastore.jars=maven -e "create table t1 as select 1 as c"
Attachments
Issue Links
- is blocked by
-
HIVE-21639 Spark test failed since HIVE-10632
- Closed
- links to