Error: Error while processing statement: FAILED: Execution Error, return code 2 from org.apache.hado

错误:Error: Error while processing statement: FAILED: Execution Error, return code 2 from org.apache.hadoop.hive.ql.exec.mr.MapRedTask (state=08S01,code=2)

在hive上执行hql语句:
Error: Error while processing statement: FAILED: Execution Error, return code 2 from org.apache.hado_第1张图片
报错如下:
在这里插入图片描述
解决方案:在yarn-site.xml 文件中增加内容:


	yarn.scheduler.maximum-allocation-mb
	2048


  	yarn.scheduler.minimum-allocation-mb
  	2048


	yarn.nodemanager.vmem-pmem-ratio
	2.1


	mapred.child.java.opts
	-Xmx1024m

然后查询成功了:

Error: Error while processing statement: FAILED: Execution Error, return code 2 from org.apache.hado_第2张图片

你可能感兴趣的:(hive)