[
https://issues.apache.org/jira/browse/FLINK-7913?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16218776#comment-16218776
]
Konstantin Lalafaryan commented on FLINK-7913:
----------------------------------------------
Thanks for your comment.
Yes, you are right. But I have just found out that you can use the Kafka's
default partitioner by doing following:
{code:java}
outputStream.addSink(new
FlinkKafkaProducer010<>(producerProperties.getProperty(TOPIC), new
EventSerializationSchema(),producerProperties, null));
{code}
Basically you have to pass null value for customPartitioner.
> Add support for Kafka default partitioner
> -----------------------------------------
>
> Key: FLINK-7913
> URL: https://issues.apache.org/jira/browse/FLINK-7913
> Project: Flink
> Issue Type: Improvement
> Affects Versions: 1.4.0
> Reporter: Konstantin Lalafaryan
> Assignee: Konstantin Lalafaryan
> Fix For: 1.5.0
>
>
> Currently in the Apache Flink it is available only *FlinkKafkaPartitioner*
> and just one implementation *FlinkFixedPartitioner*.
> In order to be able to use Kafka's default partitioner you have to create new
> implementation for *FlinkKafkaPartitioner* and fork the code from the Kafka.
> It will be really good to be able to define the partitioner without
> implementing the new class.
> Thanks.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)