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.

Windows WSL2: Start Kafka in KRaft mode

Windows WSL2: Start Kafka in KRaft mode - Kafka Tutorial

From the course: Complete Guide to Apache Kafka for Beginners

Windows WSL2: Start Kafka in KRaft mode

- [Instructor] So let's go ahead and start Kafka. For this, on the Kafka website, under Quickstart, I'm going to click here. We did this step 1 of getting Kafka, and now we're going to start the Kafka environment. So first thing we have to do is to do a cd into the Kafka directory to run these commands properly. And we're going to first create a Cluster UUID. So you copy this command and you paste it, press Enter. And then that's good. It's been run. And now we need to format the log directories. So this is where your Kafka data is going to be stored. And there is a servers.properties file that you need to look at. So I'll do cat servers.properties file. And this file contains all your configuration of your Kafka broker. So it's a lot of things, of course, but the one important thing to look at is logs.dir, and this is where your Kafka data is going to be stored. So right now it's going to be stored in…

Contents