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

Running test-kraft-server-start results in error

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.0.0
    • 2.8.1, 3.0.0
    • None
    • None

    Description

      Running the test-kraft-server-start script in the raft module results in this error

       

      ERROR Exiting raft server due to fatal exception (kafka.tools.TestRaftServer$)
      java.lang.IllegalArgumentException: No enum constant org.apache.kafka.common.security.auth.SecurityProtocol.
      	at java.lang.Enum.valueOf(Enum.java:238)
      	at org.apache.kafka.common.security.auth.SecurityProtocol.valueOf(SecurityProtocol.java:26)
      	at org.apache.kafka.common.security.auth.SecurityProtocol.forName(SecurityProtocol.java:72)
      	at kafka.raft.KafkaRaftManager.$anonfun$buildNetworkClient$1(RaftManager.scala:256)
      	at scala.collection.immutable.Map$Map4.getOrElse(Map.scala:530)
      	at kafka.raft.KafkaRaftManager.buildNetworkClient(RaftManager.scala:256)
      	at kafka.raft.KafkaRaftManager.buildNetworkChannel(RaftManager.scala:234)
      	at kafka.raft.KafkaRaftManager.<init>(RaftManager.scala:126)
      	at kafka.tools.TestRaftServer.startup(TestRaftServer.scala:88)
      	at kafka.tools.TestRaftServer$.main(TestRaftServer.scala:442)
      	at kafka.tools.TestRaftServer.main(TestRaftServer.scala)
      

      Looks like the listener property in the config is not getting picked up as an empty string gets passed to SecurityProtocol.forName

      EDIT: The issue is the properties file needs to have a controller.listener.names property with just values of the names

      Attachments

        Issue Links

          Activity

            People

              bbejeck Bill Bejeck
              bbejeck Bill Bejeck
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: