map-reduce使用yarn的配置

需要进行三个地方的配置
1  map-redsite.xml

      
        mapred.job.tracker
                HMASTER:9001
      
      
                mapred.local.dir
                /opt/hadoop/var/mapred
      
      
            mapreduce.framework.name
            Yarn
      


2  yarn-site.xml




  yarn.nodemanager.aux-services
  mapreduce_shuffle


  The address of the applications manager interface in the RM.
  yarn.resourcemanager.address
  192.168.18.228:8032



  The address of the scheduler interface.
  yarn.resourcemanager.scheduler.address
  192.168.18.228:8030



  The address of the RM web application.
  yarn.resourcemanager.webapp.address
  192.168.18.228:8088



  The address of the resource tracker interface.
  yarn.resourcemanager.resource-tracker.address
  192.168.18.228:8025



3   引用的Jar 包
      hadoop-mapreduce-client-common-2.5.1.jar
      修改其中的\META-INF\services\org.apache.hadoop.mapreduce.protocol.ClientProtocolProvider
      内容为:
      org.apache.hadoop.mapred.YarnClientProtocolProvider

你可能感兴趣的:(hadoop,mapreduce yarn)