Pulsar: Allow to configure all options when using Kafka wrapper

Created on 23 Jan 2018  路  5Comments  路  Source: apache/pulsar

Expected behavior

Currently, we can only configure authentication on the Pulsar client instance when using the Kafka wrapper.

We can also configure few options for which there is a Kafka correspective, using the Kafka own properties, so that existing applications will behave in the same way.

Apart from that, we should be able to configure all the other Pulsar client option, maybe through a set of Java properties that are being passed to the Kafka client anyway.

componenclient help wanted typenhancement

All 5 comments

I'll try to do it :D Any firstcommer help?

@Horaddrim you are welcome to send a pull request. if you encounter any problems, feel free to ask questions at here, or mailing list [email protected] or join the slack channel for https://pulsar.incubator.apache.org/contact/

@Horaddrim We added a number of config for Kafka wrapper in 2.0 release.

The list was documented at http://pulsar.apache.org/docs/latest/adaptors/KafkaWrapper/#CustomPulsarconfigurations-eshp5

The config classes can be found at https://github.com/apache/incubator-pulsar/tree/master/pulsar-client-kafka-compat/pulsar-client-kafka/src/main/java/org/apache/pulsar/client/kafka/compat

I'm sure there will be some settings that were added since and are missing from there.

Really thank you @merlimat and @sijie ! I've already checked these materials, so ASAP I'll start working in this :smile:

Ok, I found out that a list of Pulsar consumer configs could be found in the class ConsumerConfigurationData. I noticed that there is a map which allows for other properties to be added in the class itself. So I want to know if there is possibly a list of configs which Pulsar's ConsumerImpl uses which I could draw from as a resource.

Was this page helpful?
0 / 5 - 0 ratings