[
https://issues.apache.org/jira/browse/KAFKA-6270?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
pengfei huang reassigned KAFKA-6270:
------------------------------------
Assignee: pengfei huang
> ProducerPerformance doesn't support setting sasl.jaas.config as a
> --producer-props
> ----------------------------------------------------------------------------------
>
> Key: KAFKA-6270
> URL: https://issues.apache.org/jira/browse/KAFKA-6270
> Project: Kafka
> Issue Type: Bug
> Components: tools
> Affects Versions: 0.11.0.1
> Reporter: Antony Stubbs
> Assignee: pengfei huang
> Priority: Major
>
> I seems the parser expects everything to strictly be key=value pairs, where
> as sasl.jaas.config is key="preamble key=value key=value"
> {noformat}
> Exception in thread "main" java.lang.IllegalArgumentException: Invalid
> property:
> sasl.jaas.config=org.apache.kafka.common.security.plain.PlainLoginModule
> required username='user' password='user-secret'";
> at
> org.apache.kafka.tools.ProducerPerformance.main(ProducerPerformance.java:99)
> {noformat}
> {noformat}
> if (producerProps != null)
> for (String prop : producerProps) {
> String[] pieces = prop.split("=");
> if (pieces.length != 2)
> throw new IllegalArgumentException("Invalid property:
> " + prop);
> props.put(pieces[0], pieces[1]);
> }
> {noformat}
> Workaround is that user must instead put this in the --producer.config file.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)