Hi,
I’m building a Flink web client to trigger jobs, and I’m running into an issue.
My web client runs in a separate deployment from the Flink cluster. Right now, I’m triggering jobs using PackagedProgram, which internally calls the main() method of the JAR. The problem is that this causes all the initialization code (like configuration setup) to execute inside the web client instead of inside the Flink JobManager/TaskManagers.
Is there a way to submit a Flink job without:
creating a JobGraph manually via PackagedProgram, or
invoking the JAR’s main() function on the client side?
I know this can be done through the Flink Web UI client using /jars/run, but I was wondering if there’s a way to achieve the same thing programmatically using the RestClusterClient.