In-depth Intuition on Kafka Rack Awareness with Practical Demo

  Рет қаралды 2,163

Knowledge Amplifier

Knowledge Amplifier

Жыл бұрын

The Rack Awareness feature in Kafka spreads replicas of the same partition across different racks to minimize data loss in the event of a rack failure.
This video explains about this concept with in-depth intuition & hands-on.
Prerequisite:
--------------------
Rack Awareness in Hadoop
• Rack Awareness in Hadoop
Kafka Cluster with Multiple Brokers
• Kafka Cluster with Mul...
Topic with Replication in Multiple Broker Kafka Cluster
• Topic with Replication...
Code used in this video:
-------------------------------
Start Zookeeper:
------------------
F:/kafka_2.12-3.3.1/bin/windows/zookeeper-server-start.bat F:/kafka_2.12-3.3.1/config/zookeeper.properties
Create 3 server properties file.
Change broker ids,listeners,log directory
Start Kafka-server:
--------------------
F:/kafka_2.12-3.3.1/bin/windows/kafka-server-start.bat F:/kafka_2.12-3.3.1/config/server.properties
F:/kafka_2.12-3.3.1/bin/windows/kafka-server-start.bat F:/kafka_2.12-3.3.1/config/server1.properties
F:/kafka_2.12-3.3.1/bin/windows/kafka-server-start.bat F:/kafka_2.12-3.3.1/config/server2.properties
F:/kafka_2.12-3.3.1/bin/windows/zookeeper-shell.bat localhost:2181 ls /brokers/ids
Create a topic:
----------------
F:/kafka_2.12-3.3.1/bin/windows/kafka-topics.bat --create --topic demo_testing2 --bootstrap-server localhost:9092,localhost:9093,localhost:9094 --replication-factor 2 --partitions 1
F:/kafka_2.12-3.3.1/bin/windows/kafka-topics.bat --bootstrap-server localhost:9092,localhost:9093,localhost:9094 --describe --topic demo_testing2
set broker.rack=1 for broker 0 & 1 and broker.rack=2 for broker 2
F:/kafka_2.12-3.3.1/bin/windows/kafka-topics.bat --create --topic demo_testing3 --bootstrap-server localhost:9092,localhost:9093,localhost:9094 --replication-factor 2 --partitions 1
F:/kafka_2.12-3.3.1/bin/windows/kafka-topics.bat --bootstrap-server localhost:9092,localhost:9093,localhost:9094 --describe --topic demo_testing3
F:/kafka_2.12-3.3.1/bin/windows/kafka-topics.bat --create --topic demo_testing4 --bootstrap-server localhost:9092,localhost:9093,localhost:9094 --replication-factor 2 --partitions 1
F:/kafka_2.12-3.3.1/bin/windows/kafka-topics.bat --bootstrap-server localhost:9092,localhost:9093,localhost:9094 --describe --topic demo_testing4
F:/kafka_2.12-3.3.1/bin/windows/kafka-topics.bat --create --topic demo_testing5 --bootstrap-server localhost:9092,localhost:9093,localhost:9094 --replication-factor 2 --partitions 1
F:/kafka_2.12-3.3.1/bin/windows/kafka-topics.bat --bootstrap-server localhost:9092,localhost:9093,localhost:9094 --describe --topic demo_testing5
(like this multiple topics can be created & tested...)
Check this playlist for more Data Engineering related videos:
• Demystifying Data Engi...
Apache Kafka form scratch
• Apache Kafka for Pytho...
Snowflake Complete Course from scratch with End-to-End Project with in-depth explanation--
doc.clickup.com/37466271/d/h/...
🙏🙏🙏🙏🙏🙏🙏🙏
YOU JUST NEED TO DO
3 THINGS to support my channel
LIKE
SHARE
&
SUBSCRIBE
TO MY KZbin CHANNEL

Пікірлер: 18
@user-ix4dl6zo1w
@user-ix4dl6zo1w 5 ай бұрын
you are best kafka teacher i ever gone through. thank you.
@KnowledgeAmplifier1
@KnowledgeAmplifier1 4 ай бұрын
Thank you for your kind words @user-ix4dl6zo1w! Happy Learning
@user-or5gv9jt2i
@user-or5gv9jt2i 11 ай бұрын
how come you are so underrated sir. You have simply amazing teaching skills.
@KnowledgeAmplifier1
@KnowledgeAmplifier1 10 ай бұрын
Glad you think so!
@user-ew6de9gq3u
@user-ew6de9gq3u 5 ай бұрын
Awesome content!!!!!!! I owe you one.
@KnowledgeAmplifier1
@KnowledgeAmplifier1 4 ай бұрын
Thank you so much @user-ew6de9gq3u! 🙌 I'm glad you found the content helpful!
@AmarjeetAnandsingh
@AmarjeetAnandsingh 8 ай бұрын
Thanks for such nice content. Really appreciate your efforts. 🙏
@KnowledgeAmplifier1
@KnowledgeAmplifier1 8 ай бұрын
Thank you Amarjeet Anand! Happy Learning
@ye__in
@ye__in 7 ай бұрын
Truely amazing!! Thank you sooooo much for making this high quality lecture!
@KnowledgeAmplifier1
@KnowledgeAmplifier1 7 ай бұрын
You are welcome @ye__in! Happy Learning
@RajbirSingh-eg9qr
@RajbirSingh-eg9qr 8 ай бұрын
your content is awesome bro
@KnowledgeAmplifier1
@KnowledgeAmplifier1 8 ай бұрын
Thank you so much 😀
@sdef719
@sdef719 Жыл бұрын
Don't know who you are, but Orz to your contents, I have learned the theory till now, never seen this things practically in real life. You made it possible. Kudos. 🙏
@KnowledgeAmplifier1
@KnowledgeAmplifier1 Жыл бұрын
Thank you so much for your kind words and appreciation Bibhash Ghosh! Happy Learning
@akashshelke5330
@akashshelke5330 11 ай бұрын
Beautifully explained.
@KnowledgeAmplifier1
@KnowledgeAmplifier1 10 ай бұрын
Thank You!
@bravewarrior236
@bravewarrior236 Жыл бұрын
I have a request. I am trying to build a VCO ADC model in Simulink. Could you try to provide some guidance through your videos. Many thanks!
Setting up a  single node Kafka Cluster on EC2
13:21
Knowledge Amplifier
Рет қаралды 5 М.
Learning How to Consume Data from Kafka
24:46
That DevOps Guy
Рет қаралды 12 М.
КАК ДУМАЕТЕ КТО ВЫЙГРАЕТ😂
00:29
МЯТНАЯ ФАНТА
Рет қаралды 9 МЛН
A clash of kindness and indifference #shorts
00:17
Fabiosa Best Lifehacks
Рет қаралды 109 МЛН
Clowns abuse children#Short #Officer Rabbit #angel
00:51
兔子警官
Рет қаралды 73 МЛН
100❤️
00:19
MY💝No War🤝
Рет қаралды 23 МЛН
3. Apache Kafka Fundamentals | Apache Kafka Fundamentals
24:14
Confluent
Рет қаралды 455 М.
Geo-Replication with Apache Kafka® and Confluent
11:36
Confluent
Рет қаралды 6 М.
Multi Node Kafka Cluster Setup Using Docker
12:14
Allied Consultants
Рет қаралды 7 М.
Apache Kafka and Python
44:42
freeCodeAcademy
Рет қаралды 33 М.
What is Zookeeper?
4:56
Stephane Maarek
Рет қаралды 157 М.
Quickly Build high-accuracy Gen-AI applications using Amazon Kendra & LLM
20:23
Make your Kafka cluster production-ready: Rack-Awareness
2:37
What Is Tiered Storage?
7:54
Confluent
Рет қаралды 6 М.
Отдых для геймера? 😮‍💨 Hiper Engine B50
1:00
Вэйми
Рет қаралды 1,3 МЛН
ОБСЛУЖИЛИ САМЫЙ ГРЯЗНЫЙ ПК
1:00
VA-PC
Рет қаралды 2,1 МЛН
Самые крутые школьные гаджеты
0:49
Что делать если в телефон попала вода?
0:17
Лена Тропоцел
Рет қаралды 1,2 МЛН