I am trying to compile the given SQL into Flink's Job Graph and want to submit to YARN.
JobGraph jobGraph = streamExecutionEnv.getStreamGraph().getJobGraph();
YarnDeployer().deployJob(jobGraph);
YarnDeployer
is custom class which uses YarnClusterDescriptor
and ClusterSpecification
API of Flink to submit the job.
In EMR, I started Flink YARN session and submitted job using flink run.
I am getting below error :
The program didn't contain a Flink job. Perhaps you forgot to call execute()
on the execution environment.
is it possible to run the JobGraph with out execute? I don't want to run continuous jobs.