Re: Broadcast and read broadcast variable in DataStream

2016-05-17 Thread Aljoscha Krettek
Hi, something like .withBroadcastSet() is not yet available in the DataStream API. I'm working on it, however. Using a (global) static variable will not work for this case since the computation is distributed. The iteration does not work because the head of the iteration (the "loop" variable) is n

Broadcast and read broadcast variable in DataStream

2016-05-16 Thread subash basnet
Hello all, How could I broadcast the variable in Datastream or perform similar operation so that I could read the value as in DataSet: IterativeDataSet *loop* = centroids.iterate(numIterations); DataSet *newCentroids* = points.map(new SelectNearestCenter()). *withBroadcastSet*(*loop*, "*centroids*