专栏首页后端技术org.apache.hadoop.hive.ql.metadata.SessionHiveMetaStoreClient

org.apache.hadoop.hive.ql.metadata.SessionHiveMetaStoreClient

org.apache.hadoop.hive.ql.metadata.SessionHiveMetaStoreClient

Logging initializedusing configuration in file:/usr/local/apache-hive-2.1.1-bin/conf/hive-log4j2.propertiesAsync: true

Exception in thread"main" java.lang.RuntimeException:org.apache.hadoop.hive.ql.metadata.HiveException: java.lang.RuntimeException:Unable to instantiate org.apache.hadoop.hive.ql.metadata.SessionHiveMetaStoreClient

    atorg.apache.hadoop.hive.ql.session.SessionState.start(SessionState.java:591)

    atorg.apache.hadoop.hive.ql.session.SessionState.beginStart(SessionState.java:531)

    atorg.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:705)

    at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:641)

    atsun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

    atsun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

    atsun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

    atjava.lang.reflect.Method.invoke(Method.java:497)

    atorg.apache.hadoop.util.RunJar.run(RunJar.java:221)

    atorg.apache.hadoop.util.RunJar.main(RunJar.java:136)

Caused by:org.apache.hadoop.hive.ql.metadata.HiveException: java.lang.RuntimeException:Unable to instantiateorg.apache.hadoop.hive.ql.metadata.SessionHiveMetaStoreClient

    atorg.apache.hadoop.hive.ql.metadata.Hive.registerAllFunctionsOnce(Hive.java:226)

    atorg.apache.hadoop.hive.ql.metadata.Hive.<init>(Hive.java:366)

    atorg.apache.hadoop.hive.ql.metadata.Hive.create(Hive.java:310)

    atorg.apache.hadoop.hive.ql.metadata.Hive.getInternal(Hive.java:290)

    atorg.apache.hadoop.hive.ql.metadata.Hive.get(Hive.java:266)

    at org.apache.hadoop.hive.ql.session.SessionState.start(SessionState.java:558)

    ... 9 more

Caused by:java.lang.RuntimeException: Unable to instantiateorg.apache.hadoop.hive.ql.metadata.SessionHiveMetaStoreClient

    at org.apache.hadoop.hive.metastore.MetaStoreUtils.newInstance(MetaStoreUtils.java:1654)

    atorg.apache.hadoop.hive.metastore.RetryingMetaStoreClient.<init>(RetryingMetaStoreClient.java:80)

    atorg.apache.hadoop.hive.metastore.RetryingMetaStoreClient.getProxy(RetryingMetaStoreClient.java:130)

    at org.apache.hadoop.hive.metastore.RetryingMetaStoreClient.getProxy(RetryingMetaStoreClient.java:101)

    atorg.apache.hadoop.hive.ql.metadata.Hive.createMetaStoreClient(Hive.java:3367)

    atorg.apache.hadoop.hive.ql.metadata.Hive.getMSC(Hive.java:3406)

    at org.apache.hadoop.hive.ql.metadata.Hive.getMSC(Hive.java:3386)

    atorg.apache.hadoop.hive.ql.metadata.Hive.getAllFunctions(Hive.java:3640)

    atorg.apache.hadoop.hive.ql.metadata.Hive.reloadFunctions(Hive.java:236)

    atorg.apache.hadoop.hive.ql.metadata.Hive.registerAllFunctionsOnce(Hive.java:221)

    ... 14 more

Caused by:java.lang.reflect.InvocationTargetException

    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(NativeMethod)

    atsun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)

    atsun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)

    atjava.lang.reflect.Constructor.newInstance(Constructor.java:422)

    atorg.apache.hadoop.hive.metastore.MetaStoreUtils.newInstance(MetaStoreUtils.java:1652)

    ... 23 more

Caused by:MetaException(message:Version information not found in metastore. )

    atorg.apache.hadoop.hive.metastore.ObjectStore.checkSchema(ObjectStore.java:7753)

    atorg.apache.hadoop.hive.metastore.ObjectStore.verifySchema(ObjectStore.java:7731)

    atsun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

    atsun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

    atsun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

    atjava.lang.reflect.Method.invoke(Method.java:497)

    atorg.apache.hadoop.hive.metastore.RawStoreProxy.invoke(RawStoreProxy.java:101)

    atcom.sun.proxy.$Proxy21.verifySchema(Unknown Source)

    at org.apache.hadoop.hive.metastore.HiveMetaStore$HMSHandler.getMS(HiveMetaStore.java:565)

    atorg.apache.hadoop.hive.metastore.HiveMetaStore$HMSHandler.createDefaultDB(HiveMetaStore.java:626)

    atorg.apache.hadoop.hive.metastore.HiveMetaStore$HMSHandler.init(HiveMetaStore.java:416)

    atorg.apache.hadoop.hive.metastore.RetryingHMSHandler.<init>(RetryingHMSHandler.java:78)

    atorg.apache.hadoop.hive.metastore.RetryingHMSHandler.getProxy(RetryingHMSHandler.java:84)

    atorg.apache.hadoop.hive.metastore.HiveMetaStore.newRetryingHMSHandler(HiveMetaStore.java:6490)

    atorg.apache.hadoop.hive.metastore.HiveMetaStoreClient.<init>(HiveMetaStoreClient.java:238)

    atorg.apache.hadoop.hive.ql.metadata.SessionHiveMetaStoreClient.<init>(SessionHiveMetaStoreClient.java:70)

    ... 28 more

原因分析: 是由于没有初始化数据库导致,执行名称初始化数据库即可。schematool -dbType mysql -initSchema

本文参与腾讯云自媒体分享计划,欢迎正在阅读的你也加入,一起分享。

我来说两句

0 条评论
登录 后参与评论

相关文章

  • Java(9):浅谈WebCollector的数据抓取

    作为Java世界中小白的我(瑟瑟发抖的状态),在网络数据抓取这一块简直是一无所知.天无绝人之路,这时候我们老大向我推荐一个很好用的爬虫框架WebCollecto...

    平凡的学生族
  • spring aop (中下)创建代理

    还是接着上面,AnnotationAwareAspectJAutoProxyCreator.postProcessAfterInitialization->wr...

    平凡的学生族
  • 系统设计与分析 作业4

    c.对比两个时代、不同地区产品的用例图,总结在项目早期,发现创新的思路与方法。

    平凡的学生族
  • file类之目录

         可以解决的问题是:                 有时需要列出目录下指定类型的文件,比如java,txt等扩展名的文件,可以使用File类的下述两个...

    Gxjun
  • 【NDN IoT】Caching in Named Data Networking for the Wireless Internet of Things

    Caching in Named Data Networking for the Wireless Internet of Things

    魏晓蕾
  • Vivado那些事儿(Vivado介绍)

    不过Quartus我现在基本没用了,所以将侧重于另外三个系列,但是路要一步步走,就先拿Vivado开刀吧,需要软件的文末自取(多个版本,一般有一个版本就行了),...

    狂人V
  • eclipse/che 使用

    点击左侧commands栏分别运行jdbc:build 和jdbc:run命令,最后控制台打印helloworld说明测试成功

    Meet相识
  • 为什么说c,c++不能跨平台,编译器是在计算机操作系统上的吗,难道说编译器不在c,c++程序里吗?

    从事软件开发多年对于C/C++用的比较多,可以明确说这两种编程语言也是支持跨平台,肯定还是有很多人问什么是真正意义上的跨平台,所谓的跨平台就是同一套代码在不同的...

    程序员互动联盟
  • 模数与数模

    数字信号处理就是以数值计算的方法对信号进行采集、变换、综合、估值与识别等处理,从而将信号变成实际所需的另一种信号形式,一般来说,数字信号处理的对象就是数字信号,...

    狂人V
  • Java 序列化问题

    如果不指定 serialVersionUID ,当你添加或者修改类中的任何字段时,已序列化类将无法恢复。因为新类和旧序列化对象生成的serialVersionU...

    王小明_HIT

扫码关注云+社区

领取腾讯云代金券