????????????flink on yarn ha 
??????flink????????????1.7.2??hadoop????????????2.8.5


??????????5??flink????????????????CPU4????????8G


flink??????????
jobmanager.heap.size: 2048m
taskmanager.heap.size: 2048m
taskmanager.numberOfTaskSlots: 4


????run a job on flink ????????????????????????????????
?????? flink run -d -m yarn-cluster  ...


??????????????????????????????????????????
????????????????
360 INFO  org.apache.flink.yarn.AbstractYarnClusterDescriptor           - 
Submitting application master application_1554100483755_0013
2019-04-04 16:24:23,389 INFO  
org.apache.hadoop.yarn.client.api.impl.YarnClientImpl         - Submitted 
application application_1554100483755_0013
2019-04-04 16:24:23,389 INFO  
org.apache.flink.yarn.AbstractYarnClusterDescriptor           - Waiting for the 
cluster to be allocated
2019-04-04 16:24:23,390 INFO  
org.apache.flink.yarn.AbstractYarnClusterDescriptor           - Deploying 
cluster, current state ACCEPTED
2019-04-04 16:25:23,625 INFO  
org.apache.flink.yarn.AbstractYarnClusterDescriptor           - Deployment took 
more than 60 seconds. Please check if the requested resources are available in 
the YARN cluster
2019-04-04 16:25:23,876 INFO  
org.apache.flink.yarn.AbstractYarnClusterDescriptor           - Deployment took 
more than 60 seconds. Please check if the requested resources are available in 
the YARN cluster
2019-04-04 16:25:24,127 INFO  
org.apache.flink.yarn.AbstractYarnClusterDescriptor           - Deployment took 
more than 60 seconds. Please check if the requested resources are available in 
the YARN cluster
2019-04-04 16:25:24,378 INFO  
org.apache.flink.yarn.AbstractYarnClusterDescriptor           - Deployment took 
more than 60 seconds. Please check if the requested resources are available in 
the YARN cluster



????????????????????????????yarn ??????????????????????????????????????????
YarnApplicationState:   ACCEPTED: waiting for AM container to be allocated, 
launched and register with RM.


Diagnostics:    [Thu Apr 04 16:33:49 +0800 2019] Application is added to the 
scheduler and is not yet activated. 
Queue's AM resource limit exceeded. Details : AM Partition = 
<DEFAULT_PARTITION>; AM Resource Request = <memory:2048, vCores:1>; 
Queue Resource Limit for AM = <memory:4096, vCores:1>; User AM Resource Limit 
of the queue = <memory:4096, vCores:1>; Queue AM Resource Usage = <memory:4096, 
vCores:2>;



1.????????????????????????????????????????yarn????????????????????????????CPU????????????
??????????????????????????????????????????
2.??????????????????????jobmanager.heap.size??taskmanager.heap.size??taskmanager.numberOfTaskSlots????????????????????
????????????????????????????????????????????????????????????jobmanager??????taskmanger

回复