【详述】创建hive 外表查询失败,不知是否版本升级导致,原来2.2版本创建的外表升级2.3.4之后有很多也查询不了了
【业务影响】
【StarRocks版本】例如:2.3.4
CREATE EXTERNAL TABLE hdop.ext_test (
user_id
string,
year_no
string
) ENGINE=HIVE
PROPERTIES (
“resource” = “hive_qdcdh”,
“database” = “di_yh_appop”,
“table” = “dwd_shop_user_register”
);
select * from hdop.ext_test
出现以下错误
SQL 错误 [1064] [42000]: hdfsOpenFile failed, file=hdfs://nameservice1/user/hive/warehouse/di_yh_appop.db/dwd_shop_user_register/year_no=2021/000000_0:file = hdfs://nameservice1/user/hive/warehouse/di_yh_appop.db/dwd_shop_user_register/year_no=2021/000000_0