gpt4 book ai didi

hadoop - SSIS上的Hadoop Hive任务返回错误代码64

转载 作者:行者123 更新时间:2023-12-02 18:34:35 27 4
gpt4 key购买 nike

我正在尝试在SSIS 2015中使用Hadoop Hive Task运行Hive查询。我尝试运行的查询是:

create table if not exists table_a
as
select * from (
select
code,
md,
name,
region,
dingestdate,
max(dingestdate) over (partition by kode_maindealer) as dingestdate_latest
from dev_stg.stg_ahmsdnssls_xls_master_data_region
) as test1
where dingestdate = dingestdate_latest

该查询在Hue-Hive编辑器和Hive CLI中运行正常,但在SSIS中返回错误。错误消息:
[Hadoop Hive Task] Information: Hadoop job job_1561011012251_25231 exit value is 64
[Hadoop Hive Task] Error: Hadoop job job_1561011012251_25231 exit value is not 0
Task Hadoop Hive Task failed

有人用SSIS体验过吗?

最佳答案

我通过将查询分为两部分来解决了这个问题:

create table if not exists table_a (
code int,
md varchar(150),
name varchar(150),
region varchar(50),
dingestdate timestamp,
dingestdate_latest timestamp
)
row format delimited fields terminated by '|'
stored as parquet
tblproperties("parquet.compression"="gzip")
;


insert overwrite table table_a
select * from (
select
code,
md,
name,
region,
dingestdate,
max(dingestdate) over (partition by code) as dingestdate_latest
from table1 ) as test1 where dingestdate = dingestdate_latest
;

最后,查询在SSIS中运行没有错误。

我也将在SSIS上尝试“执行流程任务”,以查看其是否也有效。

谢谢。

关于hadoop - SSIS上的Hadoop Hive任务返回错误代码64,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58424031/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com