Hive中运行HQL语句错误

错误:org.apache.hadoop.yarn.exceptions.InvalidAuxServiceException(

或者为FAILED: Execution Error, return code 2 from org.apache.hadoop.hive.ql.exec.mr.MapRedTask

org.apache.hadoop.yarn.exceptions.InvalidAuxServiceException: The auxService:mapreduce_shuffle does not exist

 

原因一:yarn-site.xml配置文件有问题

解决方法:在hadoop/etc/hadoop/yarn.site.xml中添加配置


  
    yarn.nodemanager.aux-services
    mapreduce_shuffle
  
  
    yarn.nodemanager.aux-services.mapreduce_shuffle.class
    org.apache.hadoop.mapred.ShuffleHandler
  

原因二:数据量太大MapReduce数据处理时内存占用太多,内存溢出

解决方法:减少处理的数据量

你可能感兴趣的:(Hive中运行HQL语句错误)