MapReduce job hangs, waiting for AM container to be allocated

前端 未结 9 1001
天涯浪人
天涯浪人 2020-12-15 07:00

I tried to run simple word count as MapReduce job. Everything works fine when run locally (all work done on Name Node). But, when I try to run it on a cluster using YARN (ad

9条回答
  •  不知归路
    2020-12-15 07:26

    anyway that's work for me .thank you a lot! @KaP

    that's my yarn-site.xml

    
                yarn.resourcemanager.hostname
                MacdeMacBook-Pro.local
        
        
                yarn.nodemanager.aux-services
                mapreduce_shuffle
        
        
                yarn.resourcemanager.webapp.address
                ${yarn.resourcemanager.hostname}:8088
        
        
           yarn.nodemanager.resource.memory-mb
    4096
    
    
       yarn.scheduler.minimum-allocation-mb
       2048
    
    
    yarn.nodemanager.vmem-pmem-ratio
    2.1
    

    that's my mapred-site.xml

    
    
                mapreduce.framework.name
                yarn
        
    

提交回复
热议问题