[ 
https://issues.apache.org/jira/browse/FLINK-36817?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

ASF GitHub Bot updated FLINK-36817:
-----------------------------------
    Labels: pull-request-available  (was: )

> Give users ability to provide their own KafkaConsumer when using 
> flink-connector-kafka
> --------------------------------------------------------------------------------------
>
>                 Key: FLINK-36817
>                 URL: https://issues.apache.org/jira/browse/FLINK-36817
>             Project: Flink
>          Issue Type: New Feature
>          Components: Connectors / Kafka
>            Reporter: Levani Kokhreidze
>            Priority: Major
>              Labels: pull-request-available
>
> In certain scenarios users of the `KafkaSource` in the flink-connector-kafka 
> might want to provide their own KafkaConsumer. Right now this is not possible 
> as consumer is created in the 
> [KafkaPartitionSplitReader|https://github.com/apache/flink-connector-kafka/blob/main/flink-connector-kafka/src/main/java/org/apache/flink/connector/kafka/source/reader/KafkaPartitionSplitReader.java#L97]
>  which makes customisation impossible.
> Proposal is to let users pass `KafkaConsumerFactory` when building the 
> KafkaSource.
> {code:java}
> public interface KafkaConsumerFactory {
>   KafkaConsumer<byte[], byte[]> get(Properties properties);
> }{code}
> Builder will have a default implementation which creates the KafkaConsumer 
> the same as it is done now.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to