CDH集群中做hive数据迁移,通过hdfs dfs -put将本地数据文件上传到hdfs的路径中,然后通过beeline执行create table命令,在执行msck repair table命令做分区修复时出现如下报错:
报错关键字:
FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask
Error while processing statement: FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask (state=08S01,code=1)
解决方法:
beeline命令行执行:
set hive.msck.path.validation=ignore;
然后再次做分区修复: