Error: Error while compiling statement: FAILED: SemanticException Schema of both sides of union shou

sqoop任务导数据到hive报错:

Error: Error while compiling statement: FAILED: SemanticException Schema of both sides of union should match. (state=42000,code=40000)

原因是hive中做union时,查询到的两个表的有差异,列名不一致。删除表重导即可。

你可能感兴趣的:(sqoop)