Re:[DISCUSS] Multi-topics consuming from KafkaTableSource

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Re:[DISCUSS] Multi-topics consuming from KafkaTableSource

zhangjun
If the data formats of the Multi-topics are different, what do you plan to do?                          
                   
 
     
 
     On 11/26/2019 08:53,leo<[hidden email]&gt; wrote:
 
 
Hi, all.


I want to propose an improvement of KafkaTableSource which can consume
multiple topics at the same time.

Here is proposal,
https://issues.apache.org/jira/browse/FLINK-14729


Best,

Leo
leo
Reply | Threaded
Open this post in threaded view
|

Re: [DISCUSS] Multi-topics consuming from KafkaTableSource

leo
Hi,

As Flink does not own the data, so it can not forbid this. It's the
responsibility of user to deserialize messages from these topics with
custom schema deser.


On 11/26/19 10:55 AM, Jun Zhang wrote:

>
> If the data formats of the Multi-topics are different, what do you
> plan to do?
>
> On 11/26/2019 08:53,leo<[hidden email]>
> <mailto:[hidden email]> wrote:
>
>
>     Hi, all.
>
>
>     I want to propose an improvement of KafkaTableSource which can
>     consume
>     multiple topics at the same time.
>
>     Here is proposal,
>     https://issues.apache.org/jira/browse/FLINK-14729
>
>
>     Best,
>
>     Leo
>
>
Reply | Threaded
Open this post in threaded view
|

Re: [DISCUSS] Multi-topics consuming from KafkaTableSource

Jingsong Li
In reply to this post by zhangjun
Hi leo:

Can you share why KafkaSource supports multiple topics?
Why can't we use multiple sources and then union them?

Best,
Jingsong Lee

On Wed, Nov 27, 2019 at 8:19 AM leo <[hidden email]> wrote:

> Hi,
>
> As Flink does not own the data, so it can not forbid this. It's the
> responsibility of user to deserialize messages from these topics with
> custom schema deser.
>
>
> On 11/26/19 10:55 AM, Jun Zhang wrote:
> >
> > If the data formats of the Multi-topics are different, what do you
> > plan to do?
> >
> > On 11/26/2019 08:53,leo<[hidden email]>
> > <mailto:[hidden email]> wrote:
> >
> >
> >     Hi, all.
> >
> >
> >     I want to propose an improvement of KafkaTableSource which can
> >     consume
> >     multiple topics at the same time.
> >
> >     Here is proposal,
> >     https://issues.apache.org/jira/browse/FLINK-14729
> >
> >
> >     Best,
> >
> >     Leo
> >
> >
>


--
Best, Jingsong Lee
Reply | Threaded
Open this post in threaded view
|

Re: [DISCUSS] Multi-topics consuming from KafkaTableSource

Gyula Fóra-2
Hi all,

I think the same reasoning applies here as with the regular Kafka consumer
sources.

Those support multiple topics, even topic patterns assuming the same schema.

Some times you have so many topics that you can't create a source for each
or as with the pattern the topics might be changing over time.

Cheers
Gyula

On Wed, Nov 27, 2019, 07:36 Jingsong Li <[hidden email]> wrote:

> Hi leo:
>
> Can you share why KafkaSource supports multiple topics?
> Why can't we use multiple sources and then union them?
>
> Best,
> Jingsong Lee
>
> On Wed, Nov 27, 2019 at 8:19 AM leo <[hidden email]> wrote:
>
> > Hi,
> >
> > As Flink does not own the data, so it can not forbid this. It's the
> > responsibility of user to deserialize messages from these topics with
> > custom schema deser.
> >
> >
> > On 11/26/19 10:55 AM, Jun Zhang wrote:
> > >
> > > If the data formats of the Multi-topics are different, what do you
> > > plan to do?
> > >
> > > On 11/26/2019 08:53,leo<[hidden email]>
> > > <mailto:[hidden email]> wrote:
> > >
> > >
> > >     Hi, all.
> > >
> > >
> > >     I want to propose an improvement of KafkaTableSource which can
> > >     consume
> > >     multiple topics at the same time.
> > >
> > >     Here is proposal,
> > >     https://issues.apache.org/jira/browse/FLINK-14729
> > >
> > >
> > >     Best,
> > >
> > >     Leo
> > >
> > >
> >
>
>
> --
> Best, Jingsong Lee
>
leo
Reply | Threaded
Open this post in threaded view
|

Re: [DISCUSS] Multi-topics consuming from KafkaTableSource

leo
Hi all,


Thanks for your involvement. The benefits can be summarized here for a
multi-topics consuming via KafkaTableSource,

First, It boosts developing and managing a source with so many topics,
especially when the schema of topics is the same.

Second, It is aligned with existed FlinkKafkaConsumer and it is also
easy to achieve this goal just leveraging on the existed APIs.

I'll open a VOTE for this feature now and please join this.


Best,

Leo


On 11/27/19 3:12 PM, Gyula Fóra wrote:

> Hi all,
>
> I think the same reasoning applies here as with the regular Kafka consumer
> sources.
>
> Those support multiple topics, even topic patterns assuming the same schema.
>
> Some times you have so many topics that you can't create a source for each
> or as with the pattern the topics might be changing over time.
>
> Cheers
> Gyula
>
> On Wed, Nov 27, 2019, 07:36 Jingsong Li <[hidden email]> wrote:
>
>> Hi leo:
>>
>> Can you share why KafkaSource supports multiple topics?
>> Why can't we use multiple sources and then union them?
>>
>> Best,
>> Jingsong Lee
>>
>> On Wed, Nov 27, 2019 at 8:19 AM leo <[hidden email]> wrote:
>>
>>> Hi,
>>>
>>> As Flink does not own the data, so it can not forbid this. It's the
>>> responsibility of user to deserialize messages from these topics with
>>> custom schema deser.
>>>
>>>
>>> On 11/26/19 10:55 AM, Jun Zhang wrote:
>>>> If the data formats of the Multi-topics are different, what do you
>>>> plan to do?
>>>>
>>>> On 11/26/2019 08:53,leo<[hidden email]>
>>>> <mailto:[hidden email]> wrote:
>>>>
>>>>
>>>>      Hi, all.
>>>>
>>>>
>>>>      I want to propose an improvement of KafkaTableSource which can
>>>>      consume
>>>>      multiple topics at the same time.
>>>>
>>>>      Here is proposal,
>>>>      https://issues.apache.org/jira/browse/FLINK-14729
>>>>
>>>>
>>>>      Best,
>>>>
>>>>      Leo
>>>>
>>>>
>>
>> --
>> Best, Jingsong Lee
>>