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

Unable to produce or consume when enabling authentication SASL/Kerberos

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Cannot Reproduce
    • None
    • None
    • None
    • None
    • Ubuntu 16.04LTS running in VirtualBox

    Description

      I have a problem while trying to produce or consume on kerberos enabled cluster.
      I launched a single broker and a console producer,
      using the SASL authentication between producer and broker.
      When i run the producer ,I got the result attached below

      Any advice on what can cause the problem.

      Thanks!
      ================================
      configuration used:

      server.properties:
      listeners=SASL_PLAINTEXT://kafka.example.com:9092
      security.inter.broker.protocol=SASL_PLAINTEXT
      sasl.mechanism.inter.broker.protocol=GSSAPI
      sasl.enabled.mechanism=GSSAPI
      sasl.kerberos.service.name=kafka

      producer.properties
      bootstrap.servers=kafka.example.com:9092
      sasl.kerberos.service.name=kafka
      security.protocol=SASL_PLAINTEXT

      kafka_client_jaas.conf

      KafkaClient {
      com.sun.security.auth.module.Krb5LoginModule required
      useKeyTab=true
      storeKey=true
      keyTab="/etc/kafka/keytabs/kafkaclient.keytab"
      principal="kafkaclient/kafka.example.com@EXAMPLE.COM";
      };

      Attachments

        1. logKafka.txt
          40 kB
          Ait haj Slimane
        2. logZookeeper.txt
          16 kB
          Ait haj Slimane
        3. Screenshot from 2017-03-30 15-36-30.png
          70 kB
          Ait haj Slimane

        Activity

          People

            Unassigned Unassigned
            slimane1100 Ait haj Slimane
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: