How to make Hadoop use all the cores on my system?

后端 未结 2 770
不思量自难忘°
不思量自难忘° 2021-01-14 16:51

I have a 32 core system. When I run a MapReduce job using Hadoop I never see the java process use more than 150% CPU (according to top) and it usually stays around the 100%

2条回答
  •  半阙折子戏
    2021-01-14 17:16

    I think you need to set "mapreduce.framework.name" to "yarn",because the default value is "local".

    put the following into your mapred-site.xml

    
    mapreduce.framework.name
    yarn
    
    

提交回复
热议问题