-
背景
当配置了hive元数据访问后,启动元数据服务hive --service metastore,再开窗口使用hive报错:FAILED: HiveException java.lang.RuntimeException: Unable to instantiate org.apache.hadoop.hive.ql.metadata.SessionHiveMetaStoreClient

-
分析
查看hive后台日志 :
tail -f /tmp/nuochengze/hive.log,发现报错细节:Could not connect to meta store using any of the URIs provided. Most recent failure: org.apache.thrift.transport.TTransportException: java.net.ConnectException: Connection refused (Connection refused)
-
解决措施
方式一:初始化元数据库
schematool -initSchema -dbType mysql -verbose注意:需要删除原来的元数据库,参考:
11、配置hive元数据访问后,使用hive时报错FAILED: HiveException java.lang.RuntimeException: Unable to instantiate org...
最新推荐文章于 2025-02-17 16:36:10 发布
配置hive元数据访问后,使用hive时出现错误:FAILED: HiveException java.lang.RuntimeException: Unable to instantiate org.apache.hadoop.hive.ql.metadata.SessionHiveMetaStoreClient。问题可能由元数据库连接失败引起,具体表现为:org.apache.thrift.transport.TTransportException: java.net.ConnectException: Connection refused。解决方案包括初始化元数据库或检查hive.metastore.uris配置是否正确。


5913

被折叠的 条评论
为什么被折叠?



