I use the 'Run a single Flink job on YARN' mode to run a flink job on yarn,the command is just like this: ./bin/flink run -m yarn-cluster -yn 5 ./examples/batch/WordCount.jar
The problem is:
No matter how I modify parameters: '-yn' ( -yn 2/-yn 3/-yn 4 ....), the yarn cluster only creates 1 TaskManager and 1 JobManager for my job. My yarn cluster has only 3 nodes(one resourceManager,two nodeManager) and I think flink's yarn client may find there is only two nodeManager so the client only creates two manager ,one is jobmanager and one is taskmanager.
My flink version is 1.6.
Is the number of Managers related to the number of nodeManagers on yarn?