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

Invalid broker port in Zookeeper when SSL is enabled

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Not A Problem
    • Affects Version/s: 0.9.0.1
    • Fix Version/s: None
    • Component/s: core, network
    • Labels:
      None

      Description

      With broker config

      listeners=SSL://:9093,PLAINTEXT://:9092
      port=9093
      

      gives in Zookeeper /brokers/ids/1

      {"jmx_port":9999,"timestamp":"1468249905473","endpoints":["SSL://kafka1:9093","PLAINTEXT://kafka1:9092"],"host":"kafka1","version":2,"port":9092}
      

      Notice that port 9092 not 9093

      Then, different scenario, with config:

      listeners=SSL://:9093
      port=9093
      

      gives in Zookeeper /brokers/ids/1

      {"jmx_port":9999,"timestamp":"1468250372974","endpoints":["SSL://kafka1:9093"],"host":null,"version":2,"port":-1}
      

      Now host is null and port is -1

      Setting advertised.port doesn't help

        Attachments

          Activity

            People

            • Assignee:
              bharat Bharat Viswanadham
              Reporter:
              gquintana GĂ©rald Quintana
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: