当前位置:   article > 正文

Hive:Execution Error, return code 2 和Error while compiling statement: FAILED三个问题_error while processing statement: failed: executio

error while processing statement: failed: execution error, return code 2 fro

最近在Hive上跑数跑出了三个问题,应该都是hive查询引擎的缺陷,解决问题后照例要记录一下:

Execution Error, return code 2

Execution Error, return code 2 from org.apache.hadoop.hive.ql.exec.mr.MapRedTask

这个是因为查询数据量太大,如果建表时存储格式为 Parquet 就会造成内存溢出。
建议:建表时使用 TEXTFILE 进行存储(STORED AS TEXTFILE) 。

Error while compiling statement: FAILED

Error while compiling statement: FAILED: SemanticException java.lang.UnsupportedOperationException: Parquet does not support date.

Parquet does not support date,英文写得比较清晰,这个是因为集群使用的 Parquet 格式不支持 date 类型。可以调整使用 String类型,又或者用 current_timestamp() 代替date()

Error while compiling statement: FAILED: IndexOutOfBoundsException Index: 1, Size: 1

另一个Error,需要在运行 SQL 前执行 set hive.optimize.ppd=false;

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/笔触狂放9/article/detail/728459
推荐阅读
相关标签
  

闽ICP备14008679号