2020-02-25

hive中使用聚合函数总是运行不下去,报错Error during job, obtaining debugging information… FAILED: Execution Error,return code 2 from org.apache.hadoop.hive.ql.exec.mr.MapRedTask
Map Reduce Jobs Launched:Stage-Stage-1:HDFS Read: 0 HDFS Write: 0 FAILTotal MapReduce CPU Time Spent: 0 msec

试了很多方法,最后还是执行hive命令,设置为本地模式之后,再次运行没有错

set hive.exec.mode.local.auto=true;

参考文章:
https://blog.csdn.net/qq_41428711/article/details/86169029?utm_source=po_vip

你可能感兴趣的:(笔记)