Yuming Wang created SPARK-29268:
-----------------------------------
Summary: Failed to start spark-sql when using Derby metastore and
isolatedLoader is enabled
Key: SPARK-29268
URL: https://issues.apache.org/jira/browse/SPARK-29268
Project: Spark
Issue Type: Bug
Components: SQL
Affects Versions: 2.4.4, 2.3.4, 3.0.0
Reporter: Yuming Wang
How to reproduce:
{noformat}
bin/spark-sql --conf spark.sql.hive.metastore.version=2.1 --conf
spark.sql.hive.metastore.jars=maven
{noformat}
Logs:
{noformat}
...
Caused by: java.sql.SQLException: Failed to start database 'metastore_db' with
class loader
org.apache.spark.sql.hive.client.IsolatedClientLoader$$anon$1@15a591d9, see the
next exception for details.
at
org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(Unknown Source)
at
org.apache.derby.impl.jdbc.SQLExceptionFactory40.wrapArgsForTransportAcrossDRDA(Unknown
Source)
... 108 more
Caused by: java.sql.SQLException: Another instance of Derby may have already
booted the database /root/spark-2.3.4-bin-hadoop2.7/metastore_db.
at
org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(Unknown Source)
at
org.apache.derby.impl.jdbc.SQLExceptionFactory40.wrapArgsForTransportAcrossDRDA(Unknown
Source)
at
org.apache.derby.impl.jdbc.SQLExceptionFactory40.getSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.Util.generateCsSQLException(Unknown
Source)
... 105 more
Caused by: ERROR XSDB6: Another instance of Derby may have already booted the
database /root/spark-2.3.4-bin-hadoop2.7/metastore_db.
...
{noformat}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]