在搭建hive时碰到 org.apache.hadoop.hive.ql.metadata.HiveException: java.lang.RuntimeException:。。

当你安装完hive并启动hive时,发现报错
**Caused by: org.apache.hadoop.hive.ql.metadata.HiveException: java.lang.RuntimeException: Unable to instantiate org.apache.hadoop.hive.ql.metadata.SessionHiveMetaStoreClient
**
这时解决的途径就是,在你的hive-site.xml中添加

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

添加完再重启hive即可。

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
This error message suggests that Hive is unable to create a connection to the Hive Metastore, which is responsible for storing metadata about the Hive tables and databases. There are several reasons why this error can occur: 1. Incorrect configuration: Verify that the Hive Metastore is properly configured and that the Hive configuration files are correctly set up. 2. Connectivity issues: Check that the Hive Metastore server is running and that there are no network connectivity issues between the Hive client and the Metastore server. 3. Permission issues: Ensure that the user running the Hive client has the necessary permissions to access the Hive Metastore. 4. Version incompatibility: It is possible that the Hive client and Metastore are running different versions, which can cause compatibility issues. Verify that the versions of the client and server are compatible. 5. Memory issues: If the Hive Metastore server is running out of memory, it may not be able to instantiate new connections. Check the memory usage of the Metastore server and increase its memory allocation if necessary. To resolve this issue, try the following: 1. Verify that the Hive Metastore is properly configured and that the Hive configuration files are correctly set up. 2. Check that the Hive Metastore server is running and that there are no network connectivity issues between the Hive client and the Metastore server. 3. Ensure that the user running the Hive client has the necessary permissions to access the Hive Metastore. 4. Verify that the client and server versions are compatible. 5. Check the memory usage of the Metastore server and increase its memory allocation if necessary.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值