-
背景
当配置了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...
最新推荐文章于 2024-07-11 19:52:37 发布