hive添加字段

alter table ods_wsp_dw_fact_point add columns (ods_datecreated STRING COMMENT ‘ods数据创建时间’);

客户端查询报错

在这里插入图片描述

hue端查询报错

Error while processing statement: FAILED: Execution Error, return code 2 from org.apache.hadoop.hive.ql.exec.mr.MapRedTask

解决方案:

执行sql前,加上如下参数,禁用hive矢量执行:

set hive.vectorized.execution.enabled=false;

set hive.vectorized.execution.reduce.enabled=false;

set hive.vectorized.execution.reduce.groupby.enabled=false;

建议最好不要建表以后添加字段,最好删除表重新创建

Logo

汇聚全球AI编程工具,助力开发者即刻编程。

更多推荐