Uploaded image for project: 'Ambari'
  1. Ambari
  2. AMBARI-12427

Incorrect listeners property in file /etc/kafka/conf/server.properties

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 2.1.0
    • 2.1.1
    • stacks
    • None

    Description

      The file /etc/kafka/conf/server.properties that gets created after running the script upgradeHelper.py has the following property:

      listeners=PLAINTEXT://hmcl-amb-201-hdp-2260-to-amb-21-hdp-2300-1-1:6667,PLAINTEXT://hmcl-amb-201-hdp-2260-to-amb-21-hdp-2300-1-4:6667

      The value for this property is exactly the same in all the hosts running the kafka-broker, which causes the following exception in var/log/kafka/server.log

      java.lang.IllegalArgumentException: requirement failed: Each listener must have a different port

      The correct value for the listeners property should be HOST_NAME:PORT where HOST_NAME is the host name of the node corresponding to that kafka broker, and PORT is the kafka broker port

      Please see attached screenshots for details.

      Attachments

        1. AMBARI-12427.patch
          3 kB
          Sumit Mohanty

        Activity

          People

            sumitmohanty Sumit Mohanty
            sumitmohanty Sumit Mohanty
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: