You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@flink.apache.org by Chiwan Park <ch...@apache.org> on 2015/09/03 10:35:49 UTC
Re: when use broadcast variable and run on bigdata display this error please help
Hi hagersaleh,
Sorry for late reply.
I think using an external system could be a solution for large scale data. To use an external system, you have to implement rich functions such as RichFilterFunction, RichMapFunction, …, etc.
Regards,
Chiwan Park
> On Aug 30, 2015, at 1:30 AM, hagersaleh <lo...@yahoo.com> wrote:
>
> where are any ways for use broadcast variable with bigdata
>
>
>
> --
> View this message in context: http://apache-flink-user-mailing-list-archive.2336050.n4.nabble.com/when-use-broadcast-variable-and-run-on-bigdata-display-this-error-please-help-tp2455p2566.html
> Sent from the Apache Flink User Mailing List archive. mailing list archive at Nabble.com.
Re: when use broadcast variable and run on bigdata display this
error please help
Posted by hagersaleh <lo...@yahoo.com>.
very thanks Chiwan Park
--
View this message in context: http://apache-flink-user-mailing-list-archive.2336050.n4.nabble.com/when-use-broadcast-variable-and-run-on-bigdata-display-this-error-please-help-tp2455p2711.html
Sent from the Apache Flink User Mailing List archive. mailing list archive at Nabble.com.
Re: when use broadcast variable and run on bigdata display this error please help
Posted by Chiwan Park <ch...@apache.org>.
Hi hagersaleh,
You should know why the error occurred with large scale data. Broadcast variables can handle only data of which size is fit for single machine.
I meant that using an external system such as Redis, HBase, …, etc. The connection with the external system could be initialized in `open` method of rich functions such as `RichFilterFunction`, `RichFlatMapFunction`, …, etc..
You can choose another solution which Stephen said. He said that rethink your approach. I think that rethinking your algorithm would be better than my suggestion.
From your code, I don’t understand why you want to use broadcast variable. You can do same thing with filter and join operations. Here is my implementation [1].
Regards,
Chiwan Park
[1] https://gist.github.com/chiwanpark/a0b0269c9a9b058d15d3
> On Sep 4, 2015, at 3:51 AM, hagersaleh <lo...@yahoo.com> wrote:
>
> Hi Chiwan Park
> not understand this solution please explain more
>
>
>
> --
> View this message in context: http://apache-flink-user-mailing-list-archive.2336050.n4.nabble.com/when-use-broadcast-variable-and-run-on-bigdata-display-this-error-please-help-tp2455p2676.html
> Sent from the Apache Flink User Mailing List archive. mailing list archive at Nabble.com.
Re: when use broadcast variable and run on bigdata display this
error please help
Posted by hagersaleh <lo...@yahoo.com>.
Hi Chiwan Park
not understand this solution please explain more
--
View this message in context: http://apache-flink-user-mailing-list-archive.2336050.n4.nabble.com/when-use-broadcast-variable-and-run-on-bigdata-display-this-error-please-help-tp2455p2676.html
Sent from the Apache Flink User Mailing List archive. mailing list archive at Nabble.com.
Re: when use broadcast variable and run on bigdata display this error
please help
Posted by Stephan Ewen <se...@apache.org>.
Chiwan has a good point. Once the data that needs to be available to all
machines is too large for one machine, there is no good solution any more.
The best approach is an external store to which all nodes have access. It
is not going to be terribly fast, though.
If you are in the situation that you need to broadcast so much data, you
may want to rethink your approach to the problem in the first place. Is
there no solution that can work with partitioned data? Even at the cost of
re-partitioning twice or so?
On Thu, Sep 3, 2015 at 10:35 AM, Chiwan Park <ch...@apache.org> wrote:
> Hi hagersaleh,
>
> Sorry for late reply.
>
> I think using an external system could be a solution for large scale data.
> To use an external system, you have to implement rich functions such as
> RichFilterFunction, RichMapFunction, …, etc.
>
>
> Regards,
> Chiwan Park
>
>
> > On Aug 30, 2015, at 1:30 AM, hagersaleh <lo...@yahoo.com> wrote:
> >
> > where are any ways for use broadcast variable with bigdata
> >
> >
> >
> > --
> > View this message in context:
> http://apache-flink-user-mailing-list-archive.2336050.n4.nabble.com/when-use-broadcast-variable-and-run-on-bigdata-display-this-error-please-help-tp2455p2566.html
> > Sent from the Apache Flink User Mailing List archive. mailing list
> archive at Nabble.com.
>
>
>
>
>