当前位置: 首页 > 知识库问答 >
问题:

配置单元引发聚合函数错误

叶翰林
2023-03-14

当我尝试使用Hive执行非聚合命令时,查询似乎可以正常工作,如下所示:

从Airlines_Analysis.Airline中选择*;从Airlines_Analysis.Airline中选择Airlines.Month;

org.apache.hive.service.cli.hivesqlexception:处理语句时出错:失败:执行错误,从org.apache.hive.service.cli.operation.operation.toSqlexception(operation.java:380)(org.apache.hive.service.cli.operation.sqloperation.runquery(sqloperation.java:257)(org.apache.hive.service.cli.operation.sqloperation.access$800(sqloperation.java:91)(org.apache.hive.service.cli.operation.sqloperation$backgroundwork$1.在java.security.accessController.doPrivileged(本机方法)在javax.security.auth.subject.doas(subject.java:422)在org.apache.hadoop.security.usergroupinformation.doas(usergroupinformation.java:1698)在org.apache.hive.service.cli.operation.sqloperation$backgroundwork.run(sqloperation.java:362)在java.util.concurrent.executors$runnableadapter.call(executors.java:511)在java.util.concurrent.futuretask.run(Concurrent.ThreadPoolExecutor.runworker(ThreadPoolExecutor.java:1149)位于java.util.concurrent.ThreadPoolExecutor$worker.run(ThreadPoolExecutor.java:624)位于java.lang.Thread.run(Thread.java:748)

共有1个答案

艾骏喆
2023-03-14

这是哪个版本的蜂巢?你用的是Tez发动机吗?在处理庞大的数据集时,Tez有时会表现怪异。试试这个

set hive.execution.engine=mr;
select count(distinct uniquecarrier) from airlines_analysis.airline;
 类似资料: