yarn.resourcemanager.hostname data-hadoop The hostname of the RM. yarn.nodemanager.resource.cpu-vcores 2 cpu核心数,务必根据实际情况修改 yarn.nodemanager.resource.memory-mb 1024 每个节点可用内存,单位MB,如果一直提示state: ACCEPTED,请增大此值 yarn.scheduler.minimum-allocation-mb 512 单个任务可申请最少内存,默认1024MB yarn.scheduler.maximum-allocation-mb 1024 单个任务可申请最大内存,默认8192MB yarn.app.mapreduce.am.resource.mb 1024 AM能够申请的最大内存,默认值为1536MB yarn.nodemanager.pmem-check-enabled false yarn.nodemanager.vmem-check-enabled false yarn.resourcemanager.am.max-attempts 10000