Ursache: FEHLER XSDB6: Möglicherweise hat eine andere Derby-Instanz die Datenbank bereits gebootet

Ich versuche SparkSQL auszuführen:

val sqlContext = new org.apache.spark.sql.hive.HiveContext(sc)  

Aber der Fehler, den ich bekomme, ist unten:

        ... 125 more
Caused by: java.sql.SQLException: Another instance of Derby may have already booted the database /root/spark/bin/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)
        ... 122 more
Caused by: ERROR XSDB6: Another instance of Derby may have already booted the database /root/spark/bin/metastore_db.
        at org.apache.derby.iapi.error.StandardException.newException(Unknown Source)
        at org.apache.derby.impl.store.raw.data.BaseDataFileFactory.privGetJBMSLockOnDB(Unknown Source)
        at org.apache.derby.impl.store.raw.data.BaseDataFileFactory.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at org.apache.derby.impl.store.raw.data.BaseDataFileFactory.getJBMSLockOnDB(Unknown Source)
        at org.apache.derby.impl.store.raw.data.BaseDataFileFactory.boot(Unknown Source)

Ich sehe da ist ein metastore_db Ordner existiert ..
Mein Hive-Metastore enthält MySQL als Metastore. Aber ich bin mir nicht sicher, warum der Fehler als Derby-Ausführung angezeigt wird.

Antworten auf die Frage(18)

Ihre Antwort auf die Frage