hadoop启动没有nodemanager

在正常启动hadoop的时候系统没有报错,但是jps查看进程的时候发现缺少了nodemanager,查看后台的日志进程···

问题:发现如下错误:FATAL org.apache.hadoop.yarn.server.nodemanager.NodeManager: Error starting NodeManager org.apache.hadoop.yarn.exceptions.YarnRuntimeException: org.apache.hadoop.yarn.exceptions.YarnRuntimeException: Recieved SHUTDOWN signal from Resourcemanager ,Registration of NodeManager failed, Message from ResourceManager: NodeManager 

from  hadoop22 doesn't satisfy minimum allocations, Sending SHUTDOWN signal to theNodeManager.其实就是yarn-site.xml配置有点问题。nodemanager要求的内存最低1024MB

解决方法:更改yarn-site.xml的配置文件(如下)

   
        yarn.nodemanager.resource.memory-mb
        1024
   

   
        yarn.nodemanager.resource.cpu-vcores
        1
   


OK !问题解决!

你可能感兴趣的:(Hadoop)