BD错误集锦9——查询hive表格时出错:Wrong FS: hdfs://s233/user/../warehouse expected: hdfs://mycluster

集群环境描述:HDFS集群处于HA模式下,同时启动了YARN\JN\KAFKA\ZK。

现象:

FAILED: SemanticException Unable to determine if hdfs://s233/user/hive/warehouse/mydb.db/ext_calllogs_in_hbase is encrypted: java.lang.IllegalArgumentException: Wrong FS: hdfs://s233/user/hive/warehouse/mydb.db/ext_calllogs_in_hbase, expected: hdfs://mycluster

解决:这是Hive元数据的问题,在Hive数据库中有两张表:

DBS : Hive数据仓库的总路径
SDS : Hive每张表对应的路径

步骤:

进入MySQL,use hive;    修改dbs 和 sds表:

update DBS set DB_LOCATION_URI=REPLACE (DB_LOCATION_URI,'s233','mycluster');
update SDS set LOCATION=REPLACE (LOCATION,'s233','mycluster');

解决前后对比:

BD错误集锦9——查询hive表格时出错:Wrong FS: hdfs://s233/user/../warehouse expected: hdfs://mycluster_第1张图片

参考文章

https://blog.csdn.net/weixin_37677769/article/details/86238996

你可能感兴趣的:(MISTAKES_BOX)