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

GitHub | cschrammel | 9 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    when create HiveContext when hive Source code throws NullPointerException

    Stack Overflow | 8 months ago | LiuZhuo
    java.lang.RuntimeException: java.lang.NullPointerException
  2. 0

    Oozie > Spark action containing Hive context can not work because of exceptions

    Stack Overflow | 9 months ago | Rui
    org.apache.hadoop.hive.ql.metadata.HiveException: java.lang.RuntimeException: Unable to instantiate org.apache.hadoop.hive.ql.metadata.SessionHiveMetaStoreClient
  3. 0

    cannot load hivecontext in spark zeppelin

    Stack Overflow | 1 year ago | patpat
    java.lang.NoClassDefFoundError: org/apache/tez/dag/api/SessionNotRunning
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Spark submit - yarn-cluster giving derby exception - Hortonworks

    hortonworks.com | 6 months ago
    org.apache.hadoop.hive.ql.metadata.HiveException: java.lang.RuntimeException: Unable to instantiate org.apache.hadoop.hive.ql.metadata.SessionHiveMetaStoreClient
  6. 0

    Spark installation fails

    Stack Overflow | 1 year ago | vivek ananda
    java.lang.RuntimeException: java.lang.NullPointerException

  1. andyglick 8 times, last 1 week ago
  2. tyson925 3 times, last 2 weeks ago
  3. Adrien 8 times, last 2 weeks ago
  4. SteVio1989 4 times, last 3 weeks ago
  5. jstrayer 1 times, last 3 weeks ago
58 more registered users
37 unregistered visitors
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.lang.ClassNotFoundException

    org.datanucleus.api.jdo.JDOPersistenceManagerFactory

    at java.net.URLClassLoader.findClass()
  2. Java RT
    Class.forName
    1. java.net.URLClassLoader.findClass(URLClassLoader.java:381)
    2. java.lang.ClassLoader.loadClass(ClassLoader.java:424)
    3. sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
    4. java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    5. java.lang.Class.forName0(Native Method)
    6. java.lang.Class.forName(Class.java:348)
    6 frames
  3. JDO API
    JDOHelper$18.run
    1. javax.jdo.JDOHelper$18.run(JDOHelper.java:2018)
    2. javax.jdo.JDOHelper$18.run(JDOHelper.java:2016)
    2 frames
  4. Java RT
    AccessController.doPrivileged
    1. java.security.AccessController.doPrivileged(Native Method)
    1 frame
  5. JDO API
    JDOHelper.getPersistenceManagerFactory
    1. javax.jdo.JDOHelper.forName(JDOHelper.java:2015)
    2. javax.jdo.JDOHelper.invokeGetPersistenceManagerFactoryOnImplementation(JDOHelper.java:1162)
    3. javax.jdo.JDOHelper.getPersistenceManagerFactory(JDOHelper.java:808)
    4. javax.jdo.JDOHelper.getPersistenceManagerFactory(JDOHelper.java:701)
    4 frames
  6. 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
  7. 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
  8. 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
  9. Hive Query Language
    SessionHiveMetaStoreClient.<init>
    1. org.apache.hadoop.hive.ql.metadata.SessionHiveMetaStoreClient.<init>(SessionHiveMetaStoreClient.java:74)
    1 frame
  10. Java RT
    Constructor.newInstance
    1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    2. sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
    3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    4. java.lang.reflect.Constructor.newInstance(Constructor.java:422)
    4 frames
  11. 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
  12. 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.metadata.Hive.getAllDatabases(Hive.java:1234)
    4. org.apache.hadoop.hive.ql.metadata.Hive.reloadFunctions(Hive.java:174)
    5. org.apache.hadoop.hive.ql.metadata.Hive.<clinit>(Hive.java:166)
    6. org.apache.hadoop.hive.ql.session.SessionState.start(SessionState.java:503)
    6 frames
  13. org.apache.spark
    IsolatedClientLoader.createClient
    1. org.apache.spark.sql.hive.client.ClientWrapper.<init>(ClientWrapper.scala:204)
    2. org.apache.spark.sql.hive.client.IsolatedClientLoader.createClient(IsolatedClientLoader.scala:238)
    2 frames
  14. Spark Project Hive
    HiveContext.functionRegistry
    1. org.apache.spark.sql.hive.HiveContext.executionHive$lzycompute(HiveContext.scala:218)
    2. org.apache.spark.sql.hive.HiveContext.executionHive(HiveContext.scala:208)
    3. org.apache.spark.sql.hive.HiveContext.functionRegistry$lzycompute(HiveContext.scala:462)
    4. org.apache.spark.sql.hive.HiveContext.functionRegistry(HiveContext.scala:461)
    4 frames
  15. Spark Project SQL
    SQLContext.<init>
    1. org.apache.spark.sql.UDFRegistration.<init>(UDFRegistration.scala:40)
    2. org.apache.spark.sql.SQLContext.<init>(SQLContext.scala:330)
    2 frames
  16. Spark Project Hive
    HiveContext.<init>
    1. org.apache.spark.sql.hive.HiveContext.<init>(HiveContext.scala:90)
    2. org.apache.spark.sql.hive.HiveContext.<init>(HiveContext.scala:101)
    2 frames
  17. org.apache.spark
    SQLUtils.createHiveContext
    1. org.apache.spark.sql.api.csharp.SQLUtils$.createHiveContext(SQLUtils.scala:32)
    2. org.apache.spark.sql.api.csharp.SQLUtils.createHiveContext(SQLUtils.scala)
    2 frames
  18. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    4. java.lang.reflect.Method.invoke(Method.java:497)
    4 frames
  19. org.apache.spark
    CSharpBackendHandler.channelRead0
    1. org.apache.spark.api.csharp.CSharpBackendHandler.handleMethodCall(CSharpBackendHandler.scala:152)
    2. org.apache.spark.api.csharp.CSharpBackendHandler.channelRead0(CSharpBackendHandler.scala:93)
    3. org.apache.spark.api.csharp.CSharpBackendHandler.channelRead0(CSharpBackendHandler.scala:26)
    3 frames
  20. Netty
    DefaultThreadFactory$DefaultRunnableDecorator.run
    1. io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:105)
    2. io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:308)
    3. io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:294)
    4. io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103)
    5. io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:308)
    6. io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:294)
    7. io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:244)
    8. io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:308)
    9. io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:294)
    10. io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:846)
    11. io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:131)
    12. io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:511)
    13. io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:468)
    14. io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:382)
    15. io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:354)
    16. io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:111)
    17. io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:137)
    17 frames
  21. Java RT
    Thread.run
    1. java.lang.Thread.run(Thread.java:745)
    1 frame