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

Command to run single quorum in raft is missing "--config" parameters.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • None
    • core, docs

    Description

      When I run "bin/test-raft-server-start.sh config/raft.properties", I get an error:
      [2020-11-14 23:00:38,742] ERROR Exiting Kafka due to fatal exception (kafka.tools.TestRaftServer$)
      org.apache.kafka.common.config.ConfigException: Missing required configuration "zookeeper.connect" which has no default value.
      at org.apache.kafka.common.config.ConfigDef.parseValue(ConfigDef.java:478)
      at org.apache.kafka.common.config.ConfigDef.parse(ConfigDef.java:468)
      at org.apache.kafka.common.config.AbstractConfig.<init>(AbstractConfig.java:108)
      at org.apache.kafka.common.config.AbstractConfig.<init>(AbstractConfig.java:142)
      at kafka.server.KafkaConfig.<init>(KafkaConfig.scala:1314)
      at kafka.server.KafkaConfig.<init>(KafkaConfig.scala:1317)
      at kafka.tools.TestRaftServer$.main(TestRaftServer.scala:607)
      at kafka.tools.TestRaftServer.main(TestRaftServer.scala)

      The correct command is “ ./bin/test-raft-server-start.sh --config ./config/raft.properties”

      Attachments

        Issue Links

          Activity

            People

              hachikuji Jason Gustafson
              huldar huldar chen
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: