Hi, is there a way to submit JVM properties(-D) to...
# troubleshooting
k
Hi, is there a way to submit JVM properties(-D) to flink job when submitting job from Flink UI? Seems that only program arguments are supported
g
i don't think so, however if you are using k8, you can dynamically pass -D at job level
πŸ‘ 1
k
yeah, I needed somethign for PoC and demo that will work from UI. I added this one to my job:
Copy code
ParameterTool parameterTool = ParameterTool.fromArgs(args);
Properties argProperties = parameterTool.getProperties();
System.getProperties().putAll(argProperties);
env.getConfig().setGlobalJobParameters(parameterTool);