Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-8010

kafka-configs.sh does not allow setting config with an equal in the value

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • tools
    • None

    Description

      The sasl.jaas.config typically includes equals in its value. Unfortunately the kafka-configs tool does not parse such values correctly and hits an error:

      ./kafka-configs.sh --bootstrap-server localhost:9092 --entity-type brokers --entity-name 59 --alter --add-config "sasl.jaas.config=KafkaServer {\n  org.apache.kafka.common.security.plain.PlainLoginModule required\n  username=\"myuser\"\n  password=\"mypassword\";\n};\nClient {\n  org.apache.zookeeper.server.auth.DigestLoginModule required\n  username=\"myuser2\"\n  password=\"mypassword2\;\n};"
      requirement failed: Invalid entity config: all configs to be added must be in the format "key=val"

      Attachments

        Activity

          People

            Unassigned Unassigned
            mimaison Mickael Maison
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated: