I'm deploying my Flink app on AWS EMR 6.2
Flink version: 1.11.2
I configured the step with:
Arguments :"flink-yarn-session -d -n 2"
as described here: https://docs.aws.amazon.com/emr/latest/ReleaseGuide/flink-jobs.html
Both the cluster and the step are in state 'running'.
The controller logs shows:
INFO startExec 'hadoop jar /mnt/var/lib/hadoop/steps/s-309XLKSZGN4V4/trigger-service-***.jar flink-yarn-session -d -n 2'
However, the syslog show that the application didn't pick-up on the Yarn context.
2021-02-24 13:19:57,772 INFO org.apache.flink.runtime.minicluster.MiniCluster (main): Starting Flink Mini Cluster
I pulled out the class name returned by StreamExecutionEnvironment.getExecutionEnvironment
in my app, and indeed it is LocalStreamEnvironment
.
The application itself runs properly on the JobMaster instance as a local app.