You have to enable CPU scheduling in YARN, otherwise it always
shows that only 1 CPU is allocated for each container,
regardless of how many Flink try to allocated.
TaskManager memory is 1400MB, but Flink reserves some amount for for off-heap memory, so the actual heap size is smaller.
This is controlled by 2 settings: