Hi

Need to forward a few env variables to Job and Task manager.
I am running jobs in Yarn cluster
I was referring to this : Forwarding
<https://ci.apache.org/projects/flink/flink-docs-release-1.13/docs/deployment/config/#forwarding-environment-variables>

I also found Stack Overflow
<https://stackoverflow.com/questions/63500197/how-could-flink-pass-environment-variable-to-job-or-cluster>

I was able to configure and see the variables in Flink Dashboard

But the task manager logs stills says

*`The system environment variable SERVICE_NAME is missing`* as an exception
message.

The code trying to fetch it is as follows

*private String serviceName = System.getenv("SERVICE_NAME");*

Is the fetched one not the same as set one ? How to set / fetch environment
variables in such case ?

Reply via email to