解决 FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. Unable to alter table. The following columns have types incompatible with the existing columns in their respective positions :
在hive 2.1.1这一版的hive已经放弃对colums的强转。也就是说:
假设 sex 是string类型的。
那么你不能通过 alter table xixi change column sex sex int;了
要修改的话,就只能整个改掉了 。
alter table xixi change column sex nide int;
然后再改回来
alter table xixi change column nide sex int;