Hi Etienne,

I think this is a reasonable request. The question we need to answer is
what kind of stability guarantees we want to provide for the
KafkaSubscriber interface. Once this is done, I am sure that we can also
expose this part for advanced use cases. I am pulling in Arvid and Fabian
who are working on these parts.

Cheers,
Till

On Wed, Dec 1, 2021 at 3:10 PM CARRIERE Etienne
<etienne.a.carri...@socgen.com.invalid> wrote:

> Hello,
>
> Thank you for the work on dynamic topic/partition topology possible with
> KafkaSource which permit to do a lot of things (tested in 1.14) . But, in
> our organization, we have a custom need to have the list of topic defined
> from an external source (SQL database in our case).
> We plan to write a custom KafkaSubscriber<
> https://github.com/apache/flink/blob/master/flink-connectors/flink-connector-kafka/src/main/java/org/apache/flink/connector/kafka/source/enumerator/subscriber/KafkaSubscriber.java>
> that will implement our logic.
> Unfortunately, we can't inject our custom subscriber in KafkaSourceBuilder
> => the builder has only methods for standard subscriber nor in KafkaSource
> as the constructor is not public.
>
> What can be a good method to implement this need ?
> Would a PR which add "advanced" method to Builder or which put the
> KafkaSource as public be accepted ?
>
> Thanks in advance,
>
> Regards,
>
> Etienne Carrière
> =========================================================
>
> Ce message et toutes les pieces jointes (ci-apres le "message")
> sont confidentiels et susceptibles de contenir des informations
> couvertes par le secret professionnel. Ce message est etabli
> a l'intention exclusive de ses destinataires. Toute utilisation
> ou diffusion non autorisee interdite.
> Tout message electronique est susceptible d'alteration. La SOCIETE GENERALE
> et ses filiales declinent toute responsabilite au titre de ce message
> s'il a ete altere, deforme falsifie.
>
> =========================================================
>
> This message and any attachments (the "message") are confidential,
> intended solely for the addresses, and may contain legally privileged
> information. Any unauthorized use or dissemination is prohibited.
> E-mails are susceptible to alteration. Neither SOCIETE GENERALE nor any
> of its subsidiaries or affiliates shall be liable for the message
> if altered, changed or falsified.
>
> =========================================================
>

Reply via email to