【Hive-Exception】return code 1 from org.apache.hadoop.hive.ql.exec.DDLTaskHIVE

解决方案:

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中添加内容:

key:
hive.security.authorization.sqlstd.confwhitelist.append
value:
hive\.msck\.path\.validation|hive\.msck\.repair\.batch\.size

你可能感兴趣的:(Hive,hadoop,hive,apache)