Install Kafka CLI tool | Kafka

CodeWithRajRanjan · Beginner ·🔧 Backend Engineering ·2y ago

About this lesson

Kafka CLI tools is a command line interface used to interact with the Kafka server and get different types of information like topic details, consumer lag, offset reset information, etc. Let’s learn to install the Kafka Cli tool on your machine Links - https://selftuts.in/install-kafka-cli-tools/ - https://kafka.apache.org/downloads - https://selftuts.in/install-kafka-and-kafka-manger-using-docker-compose/ Social Media CodeWithRajRanjan : https://www.youtube.com/channel/UCCa9UnklA65wsMcVKUhYsjQ Website: https://selftuts.in/ Facebook: https://www.facebook.com/codewithrajranjan Twitter: https://twitter.com/code_rajranjan Important Playlists Docker For Beginners: https://www.youtube.com/playlist?list=PLxoOrmZMsAWwCCcnKFpUOt7bcxjs7mtwU Kafka For Beginners: https://www.youtube.com/playlist?list=PLxoOrmZMsAWxXBF8h_TPqYJNsh3x4GyO4 Python MongoDB: https://www.youtube.com/playlist?list=PLxoOrmZMsAWxvorH9cNQyizHYZHS5QXXv VirtualMachineCluster:https://www.youtube.com/playlist?list=PLxoOrmZMsAWyzk725Z7aDjWOX8Cd-Wexy Python For Beginners: https://www.youtube.com/playlist?list=PLxoOrmZMsAWyRqokvOM3ZKlEO6VvXvxi4 AWS Lambda NodeJS: https://www.youtube.com/playlist?list=PLxoOrmZMsAWyBy3qwWdNhtAi-J4yLK1k9 Vagrant For Beginners: https://www.youtube.com/playlist?list=PLxoOrmZMsAWw2tUwrmB7QeniRxVzvEhkS TODO REST API NodeJS: https://www.youtube.com/playlist?list=PLxoOrmZMsAWwTIKAJTOUpS9US5YkRuhrq Exception Handling Python: https://www.youtube.com/playlist?list=PLxoOrmZMsAWxY-CN9duhjulZBcozx_tZE VIM: https://www.youtube.com/playlist?list=PLxoOrmZMsAWyS2Mc0SLFug4X_fnHp8de2 GIT: https://www.youtube.com/playlist?list=PLxoOrmZMsAWwfTsvuxNxJXliO8coRKxIt

Full Transcript

hello people welcome back to my channel and let's learn how to install Kafka CLI tool so there will be a Kafka server basically it can be on your local machine or anywhere in the cloud and you need to interact with this Kafka server so you need to install a CLI tool CLI tool is a command line interface tool which can be used to interact with the Kafka server so the usage of Kafka CLI tool can be for creating the topic for viewing the topic details for viewing all the consumers for viewing the consumer locks you can also get and reset the offset information of the consumer start and stop Kafka server there are other use cases of this CLI tool but the CLI tool is most commonly being used for these purposes like you can create a topic you can view the topic details and then list the consumers what is the consumer lag and all those things so let's see how we can install this Kafka CLI tool I have already written this blog post that is install Kafka CLI tool and here I already given whole description let's go through it so first thing is what you need to download the Kafka CLI binary which is available on this website so let's go to this website here and this is Kafka apache.org downloads so here you can see the versions that has already been released and it is saying 3.7.0 is the latest release and this is the current stable version so we'll pick this up it may happen that when you viewing this video there are other releases also that um went into live but you you can download any one whatever you want you can go through the latest one so what we need here is we will go through this Scala 2.13 version and this is a binary download so if you click here so you can see at the bottom here that the link is present so if you see at the bottom there will be a link now right click here and just say copy link address and then what we are going to do we are going to go to our terminal here so you will have terminal if you're using a a Linux machine so I am inside this Kafka folder so what I'm going to do is I'll just do WG and then paste the link and hit enter so what this is going to do is it will go to this link and it will try to download the tar file if I do LS you can see that the file is present here now let's try to untar this or let's try to get the content which is present inside it so we'll say XV ZF so X means unar V means verbo verbos and basically Z and F are other parameters which are being passed so I'll just say Kafka 2.13 which is the tar file this one t. deser and I'll hit enter so what this is doing this is uncompressing it and if I do LS again you can see I I'll clear the screen so I'm going to clear it if I do LS again you can see that a folder is created here so if I do CD Kafka this time you can see I'm inside this folder and here you will see that bin folder is present let's go inside the bin and if I do LS or let's do LL these are the different bash files or binaries which can be used as a Kafka CLI tool so you if you can see here you will see Kafka console consumer. sh Kafka console producer. so this can be used as a producer and a consumer then this is Kafka consumer groups. sh which can be used to interact with the groups we'll see in later videos like how to find the Kafka lag like there's a consumer and you want to find what is the current lag then you will be using using this Kafka console producer. sh you'll also see Kafka topics. sh basically to create a new topic to delete a topic to assign partitions and other thing let's use one of the command I'll use do/ Kafka topic and then this help so this will do what it will give me the usage information like what is the different parameter that you can use with this CLI tool that is Kafka topic So currently it is saying command must include U exactly one action that is list describe if I see list so what does the list to list will basically help you to list all the available topics so let's use this one so I'll say clear and then do/ cfut topics we need to provide the bootstrap server this is one of the bootstrap server which is present on my local machine and I'm using the IP address and the P I have already written a blog post here I'll uh put that in the description below like how to install Kafka and Kafka manager using toer compos so you can have your own local Kafka server running on your machine so now if I go to my terminal and if I do slash slash this one/ cfat toopics Dosh bootst server then the actual IP address and the port and list if I do list it will say what are the different topics present here so you can see a registered user topic is present here underscore underscore consumer offsets like which is a internal topic for Kafka zookeeper that is there and then underscore undor confidence support. matrics so this is another topic so these are the different topic so if again if I do LL it will show you like the different CLI tools which is available with the Kafka you can use all this to basically connect to Kafka server and get the information so this is all about how to install Kafka CLA tools hope you like this video hope you like my Channel Please share my videos and please subscribe to my channel thank you

Original Description

Kafka CLI tools is a command line interface used to interact with the Kafka server and get different types of information like topic details, consumer lag, offset reset information, etc. Let’s learn to install the Kafka Cli tool on your machine Links - https://selftuts.in/install-kafka-cli-tools/ - https://kafka.apache.org/downloads - https://selftuts.in/install-kafka-and-kafka-manger-using-docker-compose/ Social Media CodeWithRajRanjan : https://www.youtube.com/channel/UCCa9UnklA65wsMcVKUhYsjQ Website: https://selftuts.in/ Facebook: https://www.facebook.com/codewithrajranjan Twitter: https://twitter.com/code_rajranjan Important Playlists Docker For Beginners: https://www.youtube.com/playlist?list=PLxoOrmZMsAWwCCcnKFpUOt7bcxjs7mtwU Kafka For Beginners: https://www.youtube.com/playlist?list=PLxoOrmZMsAWxXBF8h_TPqYJNsh3x4GyO4 Python MongoDB: https://www.youtube.com/playlist?list=PLxoOrmZMsAWxvorH9cNQyizHYZHS5QXXv VirtualMachineCluster:https://www.youtube.com/playlist?list=PLxoOrmZMsAWyzk725Z7aDjWOX8Cd-Wexy Python For Beginners: https://www.youtube.com/playlist?list=PLxoOrmZMsAWyRqokvOM3ZKlEO6VvXvxi4 AWS Lambda NodeJS: https://www.youtube.com/playlist?list=PLxoOrmZMsAWyBy3qwWdNhtAi-J4yLK1k9 Vagrant For Beginners: https://www.youtube.com/playlist?list=PLxoOrmZMsAWw2tUwrmB7QeniRxVzvEhkS TODO REST API NodeJS: https://www.youtube.com/playlist?list=PLxoOrmZMsAWwTIKAJTOUpS9US5YkRuhrq Exception Handling Python: https://www.youtube.com/playlist?list=PLxoOrmZMsAWxY-CN9duhjulZBcozx_tZE VIM: https://www.youtube.com/playlist?list=PLxoOrmZMsAWyS2Mc0SLFug4X_fnHp8de2 GIT: https://www.youtube.com/playlist?list=PLxoOrmZMsAWwfTsvuxNxJXliO8coRKxIt
Watch on YouTube ↗ (saves to browser)
Sign in to unlock AI tutor explanation · ⚡30

Related Reads

📰
10 Most Common Mistakes Java Developers Make in Interviews
Learn the common mistakes Java developers make in interviews and how to avoid them to improve your chances of success
Medium · Programming
📰
# C++ Error Messages Translated — 10 Common Compilation & Link Errors Explained
Learn to decipher 10 common C++ error messages for compilation and linking, improving debugging efficiency
Dev.to · Yilong Wu
📰
# Picking What to Read Next: The Trade-offs of Ranked-Choice Voting in a Django App
Learn how to implement ranked-choice voting in a Django app, weighing the trade-offs and complexities involved
Medium · Python
📰
The Ultimate Rust ORM Comparison 2026: Diesel vs SQLx vs SeaORM vs Rusqlite — Pick Your Powerhouse!
Compare top Rust ORMs Diesel, SQLx, SeaORM, and Rusqlite to choose the best fit for your project
Medium · Programming
Up next
Beginners Guide to GPT4 API & ChatGPT 3.5 Turbo API Tutorial
Adrian Twarog
Watch →