为提高效率,提问时请提供以下信息,问题描述清晰可优先响应。
- 【TiDB 版本】:
- 【问题描述】:
通过spark shell提交tispark任务,在执行任务时报如下错误,但是我的任务中并没有使用metastore_db中的数据,这个 metastore_db和tidb的表有什么关系呢?并且看着错误是hive表的元数据:
at org.apache.spark.deploy.SparkSubmit.main(SparkSubmit.scala)
Stdoutput Caused by: ERROR XJ040: Failed to start database ‘metastore_db’ with class loader org.apache.spark.sql.hive.client.IsolatedClientLoader$$anon$1@352df548, see the next exception for details.
Stdoutput at org.apache.derby.iapi.error.StandardException.newException(Unknown Source)
Stdoutput at org.apache.derby.impl.jdbc.SQLExceptionFactory.wrapArgsForTransportAcrossDRDA(Unknown Source)
Stdoutput … 152 more
Stdoutput Caused by: ERROR XSDB6: Another instance of Derby may have already booted the database /home/teld/tispark/spark-2.3.3-bin-hadoop2.7/bin/metastore_db.
Stdoutput at org.apache.derby.iapi.error.StandardException.newException(Unknown Source)
Stdoutput at org.apache.derby.iapi.error.StandardException.newException(Unknown Source)
Stdoutput at org.apache.derby.impl.store.raw.data.BaseDataFileFactory.privGetJBMSLockOnDB(Unknown Source)
Stdoutput at org.apache.derby.impl.store.raw.data.BaseDataFileFactory.run(Unknown Source)
Stdoutput at java.security.AccessController.doPrivileged(Native Method)
Stdoutput at org.apache.derby.impl.store.raw.data.BaseDataFileFactory.getJBMSLockOnDB(Unknown Source)
Stdoutput at org.apache.derby.impl.store.raw.data.BaseDataFileFactory.boot(Unknown Source)