【问题标题】:Hive aggregate functions don't workHive 聚合函数不起作用
【发布时间】:2016-05-24 14:25:20
【问题描述】:

请帮忙,

当我尝试执行 HiveQL 命令时(两个字段的类型均为 INT):

select cited3, count(citing)
from cite2
group by cited3;

我收到消息:

作业提交失败,出现异常'java.net.ConnectException(Call 从 ubuntu/127.0.1.1 到 0.0.0.0:8032 连接异常失败: java.net.ConnectException:连接被拒绝;有关更多详细信息,请参阅: http://wiki.apache.org/hadoop/ConnectionRefused)'失败:执行 错误,从 org.apache.hadoop.hive.ql.exec.mr.MapRedTask 返回代码 1

我通过命令授予了所有表的权限:

bin/hdfs dfs -chmod 777 /user*

但这并没有帮助,另一个 hive 命令,例如 (create table, select * from are working)

请帮忙

【问题讨论】:

    标签: ubuntu hadoop aggregate-functions hiveql


    【解决方案1】:

    Hive 聚合函数在后台运行 mapreduce,从您的错误日志看来,Master(Namenode) 已关闭。但是 create table 语句不执行任何 mapreduce。它将元数据存储在 hive 元存储中,这似乎有效。

    【讨论】:

      猜你喜欢
      • 2016-04-14
      • 2020-08-02
      • 1970-01-01
      • 2013-06-06
      • 2014-07-02
      • 2017-08-20
      • 2015-02-14
      • 2017-10-04
      • 2017-06-24
      相关资源
      最近更新 更多