解决方案:
sql
set hive.msck.repair.batch.size=1;
set hive.msck.path.validation=ignore;
MSCK REPAIR TABLE table_name;
如果不能设置值,会报错。
Error: Error while processing statement: Cannot modify
hive.msck.path.validation at runtime. It is not in list of params that
are allowed to be modified at runtime (state=42000,code=1)
在hive-site中添加内容:
yml
key:
hive.security.authorization.sqlstd.confwhitelist.append
value:
hive\.msck\.path\.validation|hive\.msck\.repair\.batch\.size