From the course: Complete Guide to Apache Kafka for Beginners

Unlock the full course today

Join today to access over 25,200 courses taught by industry experts.

macOS X: Start Kafka in KRaft mode

macOS X: Start Kafka in KRaft mode - Kafka Tutorial

From the course: Complete Guide to Apache Kafka for Beginners

macOS X: Start Kafka in KRaft mode

- [Instructor] Okay, so let's go ahead and now start Kafka. So the way to do it is that on the Kafka website, on the GET STARTED, you'll find QUICK START, and you scroll down. So we did get Kafka, and we've unzipped it, and now, we need to, first, generate a Cluster UUID. So for this, we run this command called KAFKA_CLUSTER_ID equals this. So the best thing to do is to cd into the Kafka directory, so make sure you are in the Kafka directory right now, and then we run this command, so KAFKA_CLUSTER_ID =, and then we'll use the kafka-storage.sh command. So we press Enter, and we're going to get a random UUID stored in this variable, and next, we need to format the log directory. So we just copy, again, this command right here and press Enter, and now, all the information is going to be stored in a temp directory, and then finally, we start the Kafka server. So this is going to start the Kafka server with this file…

Contents