You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Flink Jira Bot (Jira)" <ji...@apache.org> on 2021/11/18 22:39:00 UTC

[jira] [Updated] (FLINK-11319) Allow usage of custom implementation of Kafka Producer and Consumer in source and sink

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

Flink Jira Bot updated FLINK-11319:
-----------------------------------
    Labels: auto-deprioritized-major stale-minor  (was: auto-deprioritized-major)

I am the [Flink Jira Bot|https://github.com/apache/flink-jira-bot/] and I help the community manage its development. I see this issues has been marked as Minor but is unassigned and neither itself nor its Sub-Tasks have been updated for 180 days. I have gone ahead and marked it "stale-minor". If this ticket is still Minor, please either assign yourself or give an update. Afterwards, please remove the label or in 7 days the issue will be deprioritized.


> Allow usage of custom implementation of Kafka Producer and Consumer in source and sink
> --------------------------------------------------------------------------------------
>
>                 Key: FLINK-11319
>                 URL: https://issues.apache.org/jira/browse/FLINK-11319
>             Project: Flink
>          Issue Type: Improvement
>          Components: Connectors / Kafka
>            Reporter: Allen Wang
>            Priority: Minor
>              Labels: auto-deprioritized-major, stale-minor
>
> We use our own implementation of Kafka producer and consumer in our cloud environment for better integration with our infrastructure. The {{Consumer}} and {{Producer}} interfaces are properly implemented, but the implementation does not extend {{KafkaConsumer}} or {{KafkaProducer}}. Instead, it wraps and decorates the instance of the default Kafka implementation.
> I propose the following changes to make it easy to hook up our own implementation with Flink. 
>  * Refer to {{Consumer}} and {{Producer}} interface, not {{KafkaConsumer}} or {{KafkaProducer}} in {{FlinkKafkaInternalProducer}} and {{KafkaConsumerThread}}
>  * Add {{ConsumerBuilder}} and {{ProducerBuilder}} interface with the following definition
> {code:java}
> // ProducerBuilder
> Producer<K, V> build(Properties properties)
> // ConsumerBuilder
> Consumer<byte[], byte[]> build(Properties properties){code}
>  * Add new constructors in {{FlinkKafkaProducer}} and {{FlinkKafkaConsumer}} to pass in the {{ProducerBuilder}} and {{ConsumerBuilder}}. 



--
This message was sent by Atlassian Jira
(v8.20.1#820001)