I suggest to run jobs in the IDE only as tests. This allows you to use
various Flink utilities to setup a cluster with your desired
configuration, all while keeping these details out of the actual job code.
If you are using 1.5-SNAPSHOT, have a look at the MiniClusterResource
class. The class can be used as a jUnit Rule and takes care of
everything needed to run any job against the cluster it sets up internally.
For previous versions have your test class extend
StreamingMultipleProgramsTestBase.
The test method would simply call the main method of your job.
On 09.05.2018 11:55, Georgi Stoyanov wrote:
Hi, folks
We have an Util that creates for us StreamExecutionEnvironment with
some Checkpoint Configurations. The configuration for externalized
checkpoints and state backend fails running of the job locally from
IntelliJ. As a solution we currently comment those two configurations,
but I don’t like that.
So far I found that I can just use ‘/createLocalEnvoirment’ /method
but I still have no much ideas how to place it nicely in the existing
logic (In the way that it doesn’t look like a hack)
If you have some ideas or know-how from your projects, please share
them 😊
Kind Regards,
Georgi