-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for complexe additional properties in Kafka connector #97
Add support for complexe additional properties in Kafka connector #97
Conversation
The additional properties annotation for the setup of the Kafka connection accepts single quotes to wrap parts of the value, which contain the list and/or key value separator itself. This allows more complexe values, for example: security.protocol=SASL_SSL,sasl.mechanism=PLAIN,sasl.jaas.config='org.apache.kafka.common.security.plain.PlainLoginModule required username="foo" password="bar";' If a value should contain single quotes, the whole values has to be wrapped in single quotes and the quotes inside the value must be duplicated.
Thanks for your PR @S-Tischer |
Thank you for the information. The CLA is in the mail on it's way to you. |
We have the CLA thanks. |
Hi @smillidge @S-Tischer , I am trying to set sasl.jaas.config property as : @ActivationConfigProperty(propertyName = "additionalProperties", "sasl.jaas.config='org.apache.kafka.common.security.plain.PlainLoginModule required username="user" password="password";'"), referring to this PR. However I see the logs complaining that the property isn't set correctly. I am using 0.6.0(latest) version of rar and jca. Could someone provide inputs as to what might be wrong. Note : setting username="user" password="password" (without ), gives Syntax/compilation error. and all other properties provided except jaas.config are being set as expected. Thanks in advance. |
What's the log message? |
@smillidge , Below is the exception : PFA the full log. Thanks, |
@S-Tischer : Did you get a chance to look at the logs . Do you have any pointers for me ? Thanks, |
The additional properties annotation for the setup of the Kafka connection accepts single quotes to wrap parts of the value, which contain the list and/or key value separator itself. This allows more complexe values, for example:
security.protocol=SASL_SSL,sasl.mechanism=PLAIN,sasl.jaas.config='org.apache.kafka.common.security.plain.PlainLoginModule required username="foo" password="bar";'
If a value should contain single quotes, the whole values has to be wrapped in single quotes and the quotes inside the value must be duplicated.