|
|
Hi, I want to split the output of one of the operators to two pipelines. Since the split method is deprecated, what is the idiomatic way to do that without duplicating the operator ?
|
|
Hi Avi,
As the doc of DataStream#split said, you can use the "side output" feature to replace it.[1]
Best, Vino Hi, I want to split the output of one of the operators to two pipelines. Since the split method is deprecated, what is the idiomatic way to do that without duplicating the operator ?
|
|
Thank you, for your quick reply. I appreciate that. but this it not exactly "side output" per se. it is simple splitting. IIUC The side output is more for splitting the records buy something the differentiate them (latnes , value etc' ) . I thought there is more idiomatic but if this is it, than I will go with that. This Message originated outside your organization.
Hi Avi,
As the doc of DataStream#split said, you can use the "side output" feature to replace it.[1]
Best, Vino
Hi, I want to split the output of one of the operators to two pipelines. Since the split method is deprecated, what is the idiomatic way to do that without duplicating the operator ?
|
|
Hi Avi,
The side output provides a superset of split's functionality. So anything can be implemented via split also can be implemented via side output.[1]
Best, Thank you, for your quick reply. I appreciate that. but this it not exactly "side output" per se. it is simple splitting. IIUC The side output is more for splitting the records buy something the differentiate them (latnes , value etc' ) . I thought there is more idiomatic but if this is it, than I will go with that.
This Message originated outside your organization.
Hi Avi,
As the doc of DataStream#split said, you can use the "side output" feature to replace it.[1]
Best, Vino
Hi, I want to split the output of one of the operators to two pipelines. Since the split method is deprecated, what is the idiomatic way to do that without duplicating the operator ?
|
|
Thanks, I'll check it out.
This Message originated outside your organization.
Hi Avi,
The side output provides a superset of split's functionality. So anything can be implemented via split also can be implemented via side output.[1]
Best,
Thank you, for your quick reply. I appreciate that. but this it not exactly "side output" per se. it is simple splitting. IIUC The side output is more for splitting the records buy something the differentiate them (latnes , value etc' ) . I thought there is more idiomatic but if this is it, than I will go with that.
This Message originated outside your organization.
Hi Avi,
As the doc of DataStream#split said, you can use the "side output" feature to replace it.[1]
Best, Vino
Hi, I want to split the output of one of the operators to two pipelines. Since the split method is deprecated, what is the idiomatic way to do that without duplicating the operator ?
|
|
Hi Avi,
it seems to me that you are not really needing any split feature. As far as I can see in your picture you want to apply two different windows on the same input data.
In that case you simply use two different subgraphs.
stream = ...
stream1 = stream.window(...).....addSink(<sink1>)
stream2 = stream.window(...).....addSink(<sink2>) In Flink, you can compose arbitrary directed acyclic graphs, so consuming the output of one operator on several downstream operators is completely normal.
Best,
Arvid
Thanks, I'll check it out.
This Message originated outside your organization.
Hi Avi,
The side output provides a superset of split's functionality. So anything can be implemented via split also can be implemented via side output.[1]
Best,
Thank you, for your quick reply. I appreciate that. but this it not exactly "side output" per se. it is simple splitting. IIUC The side output is more for splitting the records buy something the differentiate them (latnes , value etc' ) . I thought there is more idiomatic but if this is it, than I will go with that.
This Message originated outside your organization.
Hi Avi,
As the doc of DataStream#split said, you can use the "side output" feature to replace it.[1]
Best, Vino
Hi, I want to split the output of one of the operators to two pipelines. Since the split method is deprecated, what is the idiomatic way to do that without duplicating the operator ?
|
|
Thanks Arvid, The problem is that I will get an exception on non unique uid on the stream . This Message originated outside your organization.
Hi Avi,
it seems to me that you are not really needing any split feature. As far as I can see in your picture you want to apply two different windows on the same input data.
In that case you simply use two different subgraphs.
stream = ...
stream1 = stream.window(...).....addSink(<sink1>)
stream2 = stream.window(...).....addSink(<sink2>) In Flink, you can compose arbitrary directed acyclic graphs, so consuming the output of one operator on several downstream operators is completely normal.
Best,
Arvid
Thanks, I'll check it out.
This Message originated outside your organization.
Hi Avi,
The side output provides a superset of split's functionality. So anything can be implemented via split also can be implemented via side output.[1]
Best,
Thank you, for your quick reply. I appreciate that. but this it not exactly "side output" per se. it is simple splitting. IIUC The side output is more for splitting the records buy something the differentiate them (latnes , value etc' ) . I thought there is more idiomatic but if this is it, than I will go with that.
This Message originated outside your organization.
Hi Avi,
As the doc of DataStream#split said, you can use the "side output" feature to replace it.[1]
Best, Vino
Hi, I want to split the output of one of the operators to two pipelines. Since the split method is deprecated, what is the idiomatic way to do that without duplicating the operator ?
|
|
Hi Avi, can you post the exception with the stack trace here as well? Thanks Arvid, The problem is that I will get an exception on non unique uid on the stream .
This Message originated outside your organization.
Hi Avi,
it seems to me that you are not really needing any split feature. As far as I can see in your picture you want to apply two different windows on the same input data.
In that case you simply use two different subgraphs.
stream = ...
stream1 = stream.window(...).....addSink(<sink1>)
stream2 = stream.window(...).....addSink(<sink2>) In Flink, you can compose arbitrary directed acyclic graphs, so consuming the output of one operator on several downstream operators is completely normal.
Best,
Arvid
Thanks, I'll check it out.
This Message originated outside your organization.
Hi Avi,
The side output provides a superset of split's functionality. So anything can be implemented via split also can be implemented via side output.[1]
Best,
Thank you, for your quick reply. I appreciate that. but this it not exactly "side output" per se. it is simple splitting. IIUC The side output is more for splitting the records buy something the differentiate them (latnes , value etc' ) . I thought there is more idiomatic but if this is it, than I will go with that.
This Message originated outside your organization.
Hi Avi,
As the doc of DataStream#split said, you can use the "side output" feature to replace it.[1]
Best, Vino
Hi, I want to split the output of one of the operators to two pipelines. Since the split method is deprecated, what is the idiomatic way to do that without duplicating the operator ?
|
|