18

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?

Community
  • 1
  • 1
user3368526
  • 2,168
  • 10
  • 37
  • 52

4 Answers4

21

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

chubao
  • 5,871
  • 6
  • 39
  • 64
11

You can use locate kafka command on MAC to search.

On my Mac the location of all configuration file is.

/usr/local/etc/kafka/

dReAmEr
  • 6,986
  • 7
  • 36
  • 63
1

If your are on Ubuntu 20 with Kafka 2.8.1, I found it's in /usr/local/kafka/config.

Kyle LI
  • 21
  • 6
0

If you are using Hortonworks (now Cloudera) HDP, it is located in /usr/hdp/2.6.4.0-91/kafka/conf

ForeverLearner
  • 1,901
  • 2
  • 28
  • 51