解决HiveException:Unable to instantiate org.apache.hadoop.hive.ql.metadata.SessionHiveMetaStoreClient

百度逛了很久,很多说是先进入mysql ,删除掉元数据库metastore,在重新创建元数据库,再schematool -initSchema -dbType mysql 重新初始化,
在这里插述
呐,图中,初始化元数据成功但是还是报这个错误,后来发现了希望之光,(原文在这里,https://blog.csdn.net/frdevolcqzyxynjds/article/details/117197896)
进入hive/conf,修改配置文件hive-site.xml 注释掉下面这个参数,重启hive,问题就解决了

在这里插入图片描述

总结:
在hive服务端才能开启hive metastore服务
hive --service metastore -p 9083 &
这种方式去启动

Hive服务和metastore在不同的进程内
可能是不同的机器
将hive.metastore.uris设置为metastore服务器URL
如果有多个metastore服务器,将URL之间用逗号分隔,metastore服务器URL的格式为thrift://127.0.0.1:9083

  • 0
    点赞
  • 6
    收藏
    觉得还不错? 一键收藏
  • 2
    评论
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.
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值