I have an error using kafka Error while executing topic command replication factor: 1 larger than available brokers: 0
when I tried to create a topic.
And I found the solution (Error creating Kafka Topics- Replication factor larger than available brokers) by modifying config file
cp config/server.properties config/server-1.properties
cp config/server.properties config/server-2.properties)
But my problem is that I can't find the config file cp: config/server.properties: No such file or directory
Could someone help me how to find it using terminal on Mac?
It dictates how the Kafka tool runs in the JAAS configuration. These are some security rules and regulations used while exchanging words with the servers. It indicates the size of the memory buffer which will hold the data to be sent to the producer.
Many config settings in Kafka are static and are wired through the properties file. However, there are several settings that you can change per topic. These settings can be changed dynamically using the <path-to-confluent>/bin/kafka-configs tool without having to restart the brokers.
The default log. dir is /tmp/kafka-logs which you may want to change in case your OS has a /tmp directory cleaner. If no log. dir is defined, then it stores the logs under /tmp/kafka-logs/<topic.name>-<topic.
You can use the bin/kafka-topics.sh shell script along with the Zookeeper service URL as well as the –list option to display a list of all the topics in the Kafka cluster. You can also pass the Kafka cluster URL to list all topics.
If you are using the docker image from confluent, e.g. confluentinc/cp-enterprise-kafka
, they are located in /etc/kafka
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With