[ 
https://issues.apache.org/jira/browse/KAFKA-6270?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Antony Stubbs updated KAFKA-6270:
---------------------------------
    Description: 
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.

  was:
I seems the parser expects everything to strictly be key=value pairs, where as 
sasl.jaas.config is key="preamble key=value key=value"

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)


> 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
>
> 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
(v6.4.14#64029)

Reply via email to