gpt4 book ai didi

hadoop - hql查询报错

转载 作者:可可西里 更新时间:2023-11-01 15:56:55 26 4
gpt4 key购买 nike

我尝试在 hql 中执行此查询

SELECT
t.retweeted_screen_name,
sum(retweets) AS total_retweets,
count(*) AS tweet_count
FROM (SELECT
retweeted_status.user.screen_name as retweeted_screen_name,
retweeted_status.text,
max(retweet_count) as retweets
FROM tweets
GROUP BY retweeted_status.user.screen_name,
retweeted_status.text) t
GROUP BY t.retweeted_screen_name
ORDER BY total_retweets DESC
LIMIT 10;

但是我收到了这个错误:

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

谁能帮我解决这个问题?

最佳答案

我认为你需要写 sum(t.retweets) AS total_retweets,而不是 sum(retweets) AS total_retweets,

关于hadoop - hql查询报错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42767144/

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