|
Hi all,
I am using flink 1.7.0 and using this constructor FlinkKafkaProducer(String topicId, KeyedSerializationSchema<IN> serializationSchema, Properties producerConfig) From the doc it says this constructor uses fixed partitioner. I want to partition based on key , so I tried to use this public FlinkKafkaProducer( What should I pass in the optional field ? From the doc it says @param customPartitioner A serializable partitioner for assigning messages to Kafka partitions. This is super confusing(contradicting in a way) since the previous constructor says that fixedpartitioner will be used if customPartioner is not present. Best, Vishwas |
|
Hi Vishwas, You should pay attention to the other args. The constructor provided by you has a `KeyedSerializationSchema` arg, while the comments of the constructor which made you confused only has a `SerializationSchema` arg. That's their difference. Best, Vino Vishwas Siravara <[hidden email]> 于2019年11月6日周三 上午9:16写道:
|
| Free forum by Nabble | Edit this page |
