Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I find kafka config file?

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?

like image 507
user3368526 Avatar asked Feb 28 '16 15:02

user3368526


People also ask

What is Kafka config?

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.

How do I change config in Kafka?

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.

Where are Kafka properties stored?

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.

How can I see my Kafka topic details?

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.


1 Answers

If you are using the docker image from confluent, e.g. confluentinc/cp-enterprise-kafka, they are located in /etc/kafka.

like image 54
chubao Avatar answered Sep 22 '22 00:09

chubao