Support Questions

Find answers, ask questions, and share your expertise

Flink global variable

avatar
Explorer

Hi Team,

I am trying to access  a global variable  set in my main class under the StreamExecutionEnvironment. I am trying to access the global variable in a different class which is in different package where I am not using RichFunction ?. If I rephrase-  can I place a variable  in main class which can be accessed any where with in the application (like the static variable in JAVA standalone app) where I am not using directly the execution environment or rich function's  other than in the main class? 

 

0 REPLIES 0