Hi, according to the documents I tried to get late data using side output.
final OutputTag<Tuple3<String, Long, JSONObject>> lateOutputTag = new OutputTag<Tuple3<String, Long, JSONObject>>("late-data"){};
When trying to store late data in a Datastream (As shown in document): DataStream<Tuple3<String, Long, JSONObject>> lateData = res. there is no predefined getSideOutput method on DataStream res! But if I call getSideOutput just after reduce function, it is known! But I don't want to save late data on res variable and I want to save them on another variable! DataStream<Tuple3<String,Long, JSONObject>> res = aggregatedTuple What is the problem here? |
Hi Soheil, The getSideOutput method is part of SingleOutputStreamOperator which extends DataStream. Try using SingleOutputStreamOperator as the type for your res variable. Best, Dawid On 17/07/18 09:36, Soheil Pourbafrani
wrote:
signature.asc (849 bytes) Download Attachment |
In reply to this post by Soheil Pourbafrani
Hi Soheil,
The `getSideOutput()` method is defined on the operator instead of the datastream. You can invoke it after any action (e.g., map, window) performed on a datastream. Best, Xingcan
|
Free forum by Nabble | Edit this page |