java.sql.SQLException: Failed to start database 'metastore_db' with class loader org.apache.spark.sql.hive.client.IsolatedClientLoader$$anon$1@1c49b38d, see the next exception for details.

GitHub | shijiyu | 4 months ago
  1. 0

    运行val cc = new CarbonContext(sc, "./carbondata/store")时遇到如下问题

    GitHub | 4 months ago | shijiyu
    java.sql.SQLException: Failed to start database 'metastore_db' with class loader org.apache.spark.sql.hive.client.IsolatedClientLoader$$anon$1@1c49b38d, see the next exception for details.
  2. 0

    GitHub comment 351#160377857

    GitHub | 1 year ago | deenar
    java.sql.SQLException: Failed to start database 'metastore_db' with class loader org.apache.spark.sql.hive.client.IsolatedClientLoader$$anon$1@6bfb8e98, see the next exception for details.
  3. 0

    14.04 - Errors when running ./hive command - Ask Ubuntu

    askubuntu.com | 5 months ago
    java.sql.SQLException: Failed to create database 'metastore_db', see the next exception for details.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Zeppelin: Using `Isolated` mode for spark interpreter

    Stack Overflow | 1 month ago | eatSleepCode
    java.sql.SQLException: Failed to start database 'metastore_db' with class loader org.apache.spark.sql.hive.client.IsolatedClientLoader$$anon$1@630771ea, see the next exception for details.
  6. 0

    Hadoop Hive user mailing list

    gmane.org | 1 year ago
    java.sql.SQLException: Failed to start database '/user/hive/warehouse/metastore_db' with class loader sun.misc.Launcher$AppClassLoader <at> de6f34, see the next exception for details.

  1. muffinmannen 1 times, last 8 months ago
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.sql.SQLException

    Failed to start database 'metastore_db' with class loader org.apache.spark.sql.hive.client.IsolatedClientLoader$$anon$1@1c49b38d, see the next exception for details.

    at org.apache.derby.impl.jdbc.SQLExceptionFactory40.getSQLException()
  2. Derby
    AutoloadedDriver.connect
    1. org.apache.derby.impl.jdbc.SQLExceptionFactory40.getSQLException(Unknown Source)
    2. org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Unknown Source)
    3. org.apache.derby.impl.jdbc.Util.seeNextException(Unknown Source)
    4. org.apache.derby.impl.jdbc.EmbedConnection.bootDatabase(Unknown Source)
    5. org.apache.derby.impl.jdbc.EmbedConnection.<init>(Unknown Source)
    6. org.apache.derby.impl.jdbc.EmbedConnection40.<init>(Unknown Source)
    7. org.apache.derby.jdbc.Driver40.getNewEmbedConnection(Unknown Source)
    8. org.apache.derby.jdbc.InternalDriver.connect(Unknown Source)
    9. org.apache.derby.jdbc.Driver20.connect(Unknown Source)
    10. org.apache.derby.jdbc.AutoloadedDriver.connect(Unknown Source)
    10 frames
  3. Java RT
    DriverManager.getConnection
    1. java.sql.DriverManager.getConnection(DriverManager.java:571)
    2. java.sql.DriverManager.getConnection(DriverManager.java:187)
    2 frames
  4. BoneCP :: Core Library
    BoneCPDataSource.getConnection
    1. com.jolbox.bonecp.BoneCP.obtainRawInternalConnection(BoneCP.java:361)
    2. com.jolbox.bonecp.BoneCP.<init>(BoneCP.java:416)
    3. com.jolbox.bonecp.BoneCPDataSource.getConnection(BoneCPDataSource.java:120)
    3 frames
  5. DataNucleus RDBMS plugin
    RDBMSStoreManager.<init>
    1. org.datanucleus.store.rdbms.ConnectionFactoryImpl$ManagedConnectionImpl.getConnection(ConnectionFactoryImpl.java:501)
    2. org.datanucleus.store.rdbms.RDBMSStoreManager.<init>(RDBMSStoreManager.java:298)
    2 frames
  6. Java RT
    Constructor.newInstance
    1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    2. sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
    3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    4. java.lang.reflect.Constructor.newInstance(Constructor.java:526)
    4 frames
  7. DataNucleus Core
    NucleusContext.initialise
    1. org.datanucleus.plugin.NonManagedPluginRegistry.createExecutableExtension(NonManagedPluginRegistry.java:631)
    2. org.datanucleus.plugin.PluginManager.createExecutableExtension(PluginManager.java:301)
    3. org.datanucleus.NucleusContext.createStoreManagerForProperties(NucleusContext.java:1187)
    4. org.datanucleus.NucleusContext.initialise(NucleusContext.java:356)
    4 frames
  8. DataNucleus JDO API plugin
    JDOPersistenceManagerFactory.getPersistenceManagerFactory
    1. org.datanucleus.api.jdo.JDOPersistenceManagerFactory.freezeConfiguration(JDOPersistenceManagerFactory.java:775)
    2. org.datanucleus.api.jdo.JDOPersistenceManagerFactory.createPersistenceManagerFactory(JDOPersistenceManagerFactory.java:333)
    3. org.datanucleus.api.jdo.JDOPersistenceManagerFactory.getPersistenceManagerFactory(JDOPersistenceManagerFactory.java:202)
    3 frames
  9. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    4. java.lang.reflect.Method.invoke(Method.java:606)
    4 frames
  10. JDO API
    JDOHelper$16.run
    1. javax.jdo.JDOHelper$16.run(JDOHelper.java:1965)
    1 frame
  11. Java RT
    AccessController.doPrivileged
    1. java.security.AccessController.doPrivileged(Native Method)
    1 frame
  12. JDO API
    JDOHelper.getPersistenceManagerFactory
    1. javax.jdo.JDOHelper.invoke(JDOHelper.java:1960)
    2. javax.jdo.JDOHelper.invokeGetPersistenceManagerFactoryOnImplementation(JDOHelper.java:1166)
    3. javax.jdo.JDOHelper.getPersistenceManagerFactory(JDOHelper.java:808)
    4. javax.jdo.JDOHelper.getPersistenceManagerFactory(JDOHelper.java:701)
    4 frames
  13. Hive Metastore
    ObjectStore.setConf
    1. org.apache.hadoop.hive.metastore.ObjectStore.getPMF(ObjectStore.java:365)
    2. org.apache.hadoop.hive.metastore.ObjectStore.getPersistenceManager(ObjectStore.java:394)
    3. org.apache.hadoop.hive.metastore.ObjectStore.initialize(ObjectStore.java:291)
    4. org.apache.hadoop.hive.metastore.ObjectStore.setConf(ObjectStore.java:258)
    4 frames
  14. Hadoop
    ReflectionUtils.newInstance
    1. org.apache.hadoop.util.ReflectionUtils.setConf(ReflectionUtils.java:73)
    2. org.apache.hadoop.util.ReflectionUtils.newInstance(ReflectionUtils.java:133)
    2 frames
  15. Hive Metastore
    HiveMetaStoreClient.<init>
    1. org.apache.hadoop.hive.metastore.RawStoreProxy.<init>(RawStoreProxy.java:57)
    2. org.apache.hadoop.hive.metastore.RawStoreProxy.getProxy(RawStoreProxy.java:66)
    3. org.apache.hadoop.hive.metastore.HiveMetaStore$HMSHandler.newRawStore(HiveMetaStore.java:593)
    4. org.apache.hadoop.hive.metastore.HiveMetaStore$HMSHandler.getMS(HiveMetaStore.java:571)
    5. org.apache.hadoop.hive.metastore.HiveMetaStore$HMSHandler.createDefaultDB(HiveMetaStore.java:624)
    6. org.apache.hadoop.hive.metastore.HiveMetaStore$HMSHandler.init(HiveMetaStore.java:461)
    7. org.apache.hadoop.hive.metastore.RetryingHMSHandler.<init>(RetryingHMSHandler.java:66)
    8. org.apache.hadoop.hive.metastore.RetryingHMSHandler.getProxy(RetryingHMSHandler.java:72)
    9. org.apache.hadoop.hive.metastore.HiveMetaStore.newRetryingHMSHandler(HiveMetaStore.java:5762)
    10. org.apache.hadoop.hive.metastore.HiveMetaStoreClient.<init>(HiveMetaStoreClient.java:199)
    10 frames
  16. Hive Query Language
    SessionHiveMetaStoreClient.<init>
    1. org.apache.hadoop.hive.ql.metadata.SessionHiveMetaStoreClient.<init>(SessionHiveMetaStoreClient.java:74)
    1 frame
  17. Java RT
    Constructor.newInstance
    1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    2. sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
    3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    4. java.lang.reflect.Constructor.newInstance(Constructor.java:526)
    4 frames
  18. Hive Metastore
    RetryingMetaStoreClient.getProxy
    1. org.apache.hadoop.hive.metastore.MetaStoreUtils.newInstance(MetaStoreUtils.java:1521)
    2. org.apache.hadoop.hive.metastore.RetryingMetaStoreClient.<init>(RetryingMetaStoreClient.java:86)
    3. org.apache.hadoop.hive.metastore.RetryingMetaStoreClient.getProxy(RetryingMetaStoreClient.java:132)
    4. org.apache.hadoop.hive.metastore.RetryingMetaStoreClient.getProxy(RetryingMetaStoreClient.java:104)
    4 frames
  19. Hive Query Language
    SessionState.start
    1. org.apache.hadoop.hive.ql.metadata.Hive.createMetaStoreClient(Hive.java:3005)
    2. org.apache.hadoop.hive.ql.metadata.Hive.getMSC(Hive.java:3024)
    3. org.apache.hadoop.hive.ql.session.SessionState.start(SessionState.java:503)
    3 frames
  20. org.apache.spark
    ClientWrapper.<init>
    1. org.apache.spark.sql.hive.client.ClientWrapper.<init>(ClientWrapper.scala:204)
    1 frame
  21. Java RT
    Constructor.newInstance
    1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    2. sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
    3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    4. java.lang.reflect.Constructor.newInstance(Constructor.java:526)
    4 frames
  22. org.apache.spark
    IsolatedClientLoader.createClient
    1. org.apache.spark.sql.hive.client.IsolatedClientLoader.createClient(IsolatedClientLoader.scala:249)
    1 frame
  23. Spark Project Hive
    HiveContext.<init>
    1. org.apache.spark.sql.hive.HiveContext.metadataHive$lzycompute(HiveContext.scala:327)
    2. org.apache.spark.sql.hive.HiveContext.metadataHive(HiveContext.scala:237)
    3. org.apache.spark.sql.hive.HiveContext.setConf(HiveContext.scala:441)
    4. org.apache.spark.sql.hive.HiveContext.defaultOverrides(HiveContext.scala:226)
    5. org.apache.spark.sql.hive.HiveContext.<init>(HiveContext.scala:229)
    6. org.apache.spark.sql.hive.HiveContext.<init>(HiveContext.scala:101)
    6 frames
  24. Spark Project SQL
    CarbonContext.<init>
    1. org.apache.spark.sql.CarbonContext.<init>(CarbonContext.scala:32)
    1 frame
  25. Unknown
    $iwC.<init>
    1. $iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC.<init>(<console>:30)
    2. $iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC.<init>(<console>:35)
    3. $iwC$$iwC$$iwC$$iwC$$iwC$$iwC.<init>(<console>:37)
    4. $iwC$$iwC$$iwC$$iwC$$iwC.<init>(<console>:39)
    5. $iwC$$iwC$$iwC$$iwC.<init>(<console>:41)
    6. $iwC$$iwC$$iwC.<init>(<console>:43)
    7. $iwC$$iwC.<init>(<console>:45)
    8. $iwC.<init>(<console>:47)
    8 frames