解决Hive启动后报错FAILED:HiveException java.lang.RuntimeException

启动hive后,在“hive>”输入“show databases;”报错:

FAILED:HiveException java.lang.RuntimeException: Unable to instantiate org.apache...

 搜索解决办法发现是要开启元数据:

hive --service metastore 

开启时报错:

 搜索解决办法发现要修改hive-site.xml的配置:

<property>
    <name>hive.metastore.schema.verification</name>
    <value>false</value>
  </property>

再次试图开启元数据:

hive --service metastore 

出现新的报错

MetaException(message:Required table missing : “DBS” in Catalog “” Schema “”. DataNucleus requires this table to perform its persistence operations. Either your MetaData is incorrect, or you need to enable “datanucleus.schema.autoCreateTables”):

 搜索解决办法发现还要修改hive-site.xml的配置: 

<property>
    <name>datanucleus.schema.autoCreateAll</name>
    <value>true</value>
 </property>

再次修改配置后终于能开启元数据了:

hive --service metastore 

输入“show databases;”试试看:

解决!🐾

参考来源:

FAILED: HiveException java.lang.RuntimeException: Unable to instantiate org.apache.hadoop.hive.ql.me_Not_writer的博客-CSDN博客FAILED: HiveException java.lang.RuntimeException: Unable to instantiate org.apache.hadoop.hive.ql.mehttps://blog.csdn.net/Not_writer/article/details/124361416Hive--MetaException(message:Version information not found in metastore.) - it610.com报错:MetaException(message:Versioninformationnotfoundinmetastore.)atorg.apache.hadoop.hive.metastore.RetryingHMSHandler.(RetryingHMSHandler.java:84)atorg.apache.hadoop.hive.metastore.RetryingHMSHandler.https://www.it610.com/article/1297491623684415488.htmHive--MetaException(message:Required table missing : “`DBS`“ in Catalog ““ Schema ““. DataNucleus re_Erase Me的博客-CSDN博客在开启Hive-metastore的时候报错:MetaException(message:Required table missing : “DBS” in Catalog “” Schema “”. DataNucleus requires this table to perform its persistence operations. Either your MetaData is incorrect, or you need to enable “datanucleus.schema.autoCrhttps://blog.csdn.net/qq_44957186/article/details/107336023

  • 9
    点赞
  • 79
    收藏
    觉得还不错? 一键收藏
  • 7
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 7
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值