[
https://issues.apache.org/jira/browse/FLINK-19239?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17195997#comment-17195997
]
zhangyunyun commented on FLINK-19239:
-------------------------------------
The attachments Show the source code. From them, I checked that when not use
KeyedSerializationSchema, it will set null partitioner, and will do no
partition assigning.
I'm not sure if it's a bug, Is there some purpose else?
> FlinkKafkaProducer
> ------------------
>
> Key: FLINK-19239
> URL: https://issues.apache.org/jira/browse/FLINK-19239
> Project: Flink
> Issue Type: Bug
> Components: Connectors / Kafka
> Affects Versions: 1.11.0
> Reporter: zhangyunyun
> Priority: Major
> Attachments: kafka_producer_1.png, kafka_producer_2.png,
> kafka_producer_3.png
>
>
> When I use the kafka connector jar: flink-connector-kafka_2.11
> My code is:
> {code:java}
> //代码占位符
> new FlinkKafkaProducer<>(
> brokerList,
> topic,
> new SimpleStringSchema()
> );
> {code}
> The target Kafka partition is big then 1, but all the data send to one
> partition only.
>
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)