java.lang.RuntimeException: org.apache.hadoop.hive.ql.metadata.HiveException: java.lang.RuntimeException: Unable to instantiate org.apache.hadoop.hive.ql.metadata.SessionHiveMetaStoreClient

Stack Overflow | Imran Hassan | 2 months ago
  1. 0

    Hive - issues on starting using hadoop 2.7.3 and derby

    Stack Overflow | 2 months ago | Imran Hassan
    java.lang.RuntimeException: org.apache.hadoop.hive.ql.metadata.HiveException: java.lang.RuntimeException: Unable to instantiate org.apache.hadoop.hive.ql.metadata.SessionHiveMetaStoreClient
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0

    Hive Shell not opening when i add hive-site.xml

    Stack Overflow | 1 month ago | Angry Coder
    java.lang.RuntimeException: java.lang.RuntimeException: Unable to instantiate org.apache.hadoop.hive.ql.metadata.SessionHiveMetaStoreClient

    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. org.datanucleus.store.rdbms.connectionpool.DatastoreDriverNotFoundException

      The specified datastore driver ("org.apache.derby.jdbc.ClientDriver") was not found in the CLASSPATH. Please check your CLASSPATH specification, and the name of the driver.

      at org.datanucleus.store.rdbms.connectionpool.AbstractConnectionPoolFactory.loadDriver()
    2. DataNucleus RDBMS plugin
      ConnectionFactoryImpl.<init>
      1. org.datanucleus.store.rdbms.connectionpool.AbstractConnectionPoolFactory.loadDriver(AbstractConnectionPoolFactory.java:58)
      2. org.datanucleus.store.rdbms.connectionpool.BoneCPConnectionPoolFactory.createConnectionPool(BoneCPConnectionPoolFactory.java:54)
      3. org.datanucleus.store.rdbms.ConnectionFactoryImpl.generateDataSources(ConnectionFactoryImpl.java:213)
      4. org.datanucleus.store.rdbms.ConnectionFactoryImpl.initialiseDataSources(ConnectionFactoryImpl.java:117)
      5. org.datanucleus.store.rdbms.ConnectionFactoryImpl.<init>(ConnectionFactoryImpl.java:82)
      5 frames
    3. 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
    4. DataNucleus Core
      AbstractStoreManager.<init>
      1. org.datanucleus.plugin.NonManagedPluginRegistry.createExecutableExtension(NonManagedPluginRegistry.java:606)
      2. org.datanucleus.plugin.PluginManager.createExecutableExtension(PluginManager.java:330)
      3. org.datanucleus.store.AbstractStoreManager.registerConnectionFactory(AbstractStoreManager.java:203)
      4. org.datanucleus.store.AbstractStoreManager.<init>(AbstractStoreManager.java:162)
      4 frames
    5. DataNucleus RDBMS plugin
      RDBMSStoreManager.<init>
      1. org.datanucleus.store.rdbms.RDBMSStoreManager.<init>(RDBMSStoreManager.java:284)
      1 frame
    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
      PersistenceNucleusContextImpl.initialise
      1. org.datanucleus.plugin.NonManagedPluginRegistry.createExecutableExtension(NonManagedPluginRegistry.java:606)
      2. org.datanucleus.plugin.PluginManager.createExecutableExtension(PluginManager.java:301)
      3. org.datanucleus.NucleusContextHelper.createStoreManagerForProperties(NucleusContextHelper.java:133)
      4. org.datanucleus.PersistenceNucleusContextImpl.initialise(PersistenceNucleusContextImpl.java:420)
      4 frames
    8. DataNucleus JDO API plugin
      JDOPersistenceManagerFactory.getPersistenceManagerFactory
      1. org.datanucleus.api.jdo.JDOPersistenceManagerFactory.freezeConfiguration(JDOPersistenceManagerFactory.java:821)
      2. org.datanucleus.api.jdo.JDOPersistenceManagerFactory.createPersistenceManagerFactory(JDOPersistenceManagerFactory.java:338)
      3. org.datanucleus.api.jdo.JDOPersistenceManagerFactory.getPersistenceManagerFactory(JDOPersistenceManagerFactory.java:217)
      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:424)
      2. org.apache.hadoop.hive.metastore.ObjectStore.getPersistenceManager(ObjectStore.java:453)
      3. org.apache.hadoop.hive.metastore.ObjectStore.initialize(ObjectStore.java:327)
      4. org.apache.hadoop.hive.metastore.ObjectStore.setConf(ObjectStore.java:294)
      4 frames
    14. Hadoop
      ReflectionUtils.newInstance
      1. org.apache.hadoop.util.ReflectionUtils.setConf(ReflectionUtils.java:76)
      2. org.apache.hadoop.util.ReflectionUtils.newInstance(ReflectionUtils.java:136)
      2 frames
    15. Hive Metastore
      HiveMetaStoreClient.<init>
      1. org.apache.hadoop.hive.metastore.RawStoreProxy.<init>(RawStoreProxy.java:58)
      2. org.apache.hadoop.hive.metastore.RawStoreProxy.getProxy(RawStoreProxy.java:67)
      3. org.apache.hadoop.hive.metastore.HiveMetaStore$HMSHandler.newRawStore(HiveMetaStore.java:581)
      4. org.apache.hadoop.hive.metastore.HiveMetaStore$HMSHandler.getMS(HiveMetaStore.java:546)
      5. org.apache.hadoop.hive.metastore.HiveMetaStore$HMSHandler.createDefaultDB(HiveMetaStore.java:612)
      6. org.apache.hadoop.hive.metastore.HiveMetaStore$HMSHandler.init(HiveMetaStore.java:398)
      7. org.apache.hadoop.hive.metastore.RetryingHMSHandler.<init>(RetryingHMSHandler.java:78)
      8. org.apache.hadoop.hive.metastore.RetryingHMSHandler.getProxy(RetryingHMSHandler.java:84)
      9. org.apache.hadoop.hive.metastore.HiveMetaStore.newRetryingHMSHandler(HiveMetaStore.java:6396)
      10. org.apache.hadoop.hive.metastore.HiveMetaStoreClient.<init>(HiveMetaStoreClient.java:236)
      10 frames
    16. Hive Query Language
      SessionHiveMetaStoreClient.<init>
      1. org.apache.hadoop.hive.ql.metadata.SessionHiveMetaStoreClient.<init>(SessionHiveMetaStoreClient.java:70)
      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:1625)
      2. org.apache.hadoop.hive.metastore.RetryingMetaStoreClient.<init>(RetryingMetaStoreClient.java:80)
      3. org.apache.hadoop.hive.metastore.RetryingMetaStoreClient.getProxy(RetryingMetaStoreClient.java:130)
      4. org.apache.hadoop.hive.metastore.RetryingMetaStoreClient.getProxy(RetryingMetaStoreClient.java:101)
      4 frames
    19. Hive Query Language
      SessionState.beginStart
      1. org.apache.hadoop.hive.ql.metadata.Hive.createMetaStoreClient(Hive.java:3317)
      2. org.apache.hadoop.hive.ql.metadata.Hive.getMSC(Hive.java:3356)
      3. org.apache.hadoop.hive.ql.metadata.Hive.getMSC(Hive.java:3336)
      4. org.apache.hadoop.hive.ql.metadata.Hive.getAllFunctions(Hive.java:3590)
      5. org.apache.hadoop.hive.ql.metadata.Hive.reloadFunctions(Hive.java:236)
      6. org.apache.hadoop.hive.ql.metadata.Hive.registerAllFunctionsOnce(Hive.java:221)
      7. org.apache.hadoop.hive.ql.metadata.Hive.<init>(Hive.java:366)
      8. org.apache.hadoop.hive.ql.metadata.Hive.create(Hive.java:310)
      9. org.apache.hadoop.hive.ql.metadata.Hive.getInternal(Hive.java:290)
      10. org.apache.hadoop.hive.ql.metadata.Hive.get(Hive.java:266)
      11. org.apache.hadoop.hive.ql.session.SessionState.start(SessionState.java:545)
      12. org.apache.hadoop.hive.ql.session.SessionState.beginStart(SessionState.java:518)
      12 frames
    20. org.apache.hadoop
      CliDriver.main
      1. org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:705)
      2. org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:641)
      2 frames
    21. 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
    22. Hadoop
      RunJar.main
      1. org.apache.hadoop.util.RunJar.run(RunJar.java:221)
      2. org.apache.hadoop.util.RunJar.main(RunJar.java:136)
      2 frames