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
- links to