Re: Broadcasted Variable not updated in a Iterative Data Set
Posted by
Stephan Ewen on
URL: http://deprecated-apache-flink-user-mailing-list-archive.369.s1.nabble.com/Broadcasted-Variable-not-updated-in-a-Iterative-Data-Set-tp1218p1222.html
Can you share the respective part of the code, then we can have a look?
In general, a DataSet is re-broadcasted in each iteration, if it depends on the IterativeDataSet.
You have to re-grab it from the RuntimeContext in each superstep. If you call getBroadcastSet() in the open() method, then it will get executed in each superstep (open gets called at the beginning of each superstep).
Greetings,
Stephan