hadoop2.6.0 nodemanager启动后过一段时间就自动关闭

hadoop2.6.0集群启动后,在slave节点上jps能够看到nodemanager进程,但是过一会nodemanager进程就不见了.查看日志发现是因为配置错误导致的,更改后所有的配置文件内容如下:(更改配置文件后,要删除之前配置文件里设置的相关目录里面所有的内容后重新format,再start-all)

core-site.xml

  
      
        fs.defaultFS  
        hdfs://master:9000  
    
  
        io.file.buffer.size  
        131072  
      
      
        hadoop.tmp.dir  
        file:/home/hadoop/hdfs/hadooptmp  
      
 


hdfs-site.xml

  
      
        dfs.replication  
        3  
    

   
     dfs.support.append
     true
   

      
        dfs.namenode.name.dir  
        file:/home/hadoop/hdfs/namenode  
      
  
    
        dfs.blocksize  
        1048576  
      

   
        file:dfs.datanode.data.dir  
        /home/hadoop/hdfs/datanode  
    

  
        dfs.webhdfs.enabled  
        true  
    



mapred-site.xml


    
        mapreduce.framework.name
        yarn
    


    
        mapreduce.jobhistory.address
        master:10020
    

    
        mapreduce.jobhistory.webapp.address
        master:19888
    

    
        mapreduce.tasktracker.map.tasks.maximum
        10
    

    
        mapreduce.tasktracker.reduce.tasks.maximum
        4
    



yarn-site.xml





    
        yarn.nodemanager.aux-services
        mapreduce_shuffle
    

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

    
        yarn.resourcemanager.admin.address
        master:8033
    

    
        yarn.resourcemanager.address
        master:8032
    

    
        yarn.resourcemanager.resource-tracker.address
        master:8031
    

    
        yarn.resourcemanager.scheduler.address
        master:8030
    








你可能感兴趣的:(hadoop)