Hive聚合函数不起作用

时间:2016-05-24 14:25:20

标签: ubuntu hadoop aggregate-functions hiveql

请帮忙,

当我尝试执行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 is working)

请帮助

1 个答案:

答案 0 :(得分:0)

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