Topics, partitions, and offsets in Kafka

  Рет қаралды 6,762

Knowledge Amplifier

Knowledge Amplifier

2 жыл бұрын

Imp. points related to Kafka covered in this video :
-----------------------------------------------------------------------------------
1)Topics are particular stream of data in Kafka
2)You can have as many topics as you want
3)A topic is identified by it's name
4)Topics are split in partitions
5)Each partition is ordered
6)Each message within a partition gets an incremental id , called offset
7)Offset only have a meaning for a specific partition
8)Order is guaranteed within a partition (not across partitions)
9)Data is kept only for a limited time (default is one week)
10)Once the data is written to a partition , it can't be changed (immutability)
11)Data is assigned randomly to a partition unless a key is provided
Prerequisite:
--------------------
Install and run Apache Kafka & integration with Python using kafka-python
• Install and run Apache...
Multiple Producer & Multiple Consumer in a Kafka Topic
• Multiple Producer & Mu...
Intuition on Log files in kafka & Kafka Brokers
• Intuition on Log files...
Broker Cluster and Zookeeper in Kafka
• Broker Cluster and Zoo...
Code used in this video is available in the comment section.
Check this playlist for more Data Engineering related videos:
• Demystifying Data Engi...
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

Пікірлер: 23
@KnowledgeAmplifier1
@KnowledgeAmplifier1 2 жыл бұрын
Codes used in the demo : -------------------------------------------- Start Zookeeper: --------------------------- F:/kafka_2.12-3.2.0/bin/windows/zookeeper-server-start.bat F:/kafka_2.12-3.2.0/config/zookeeper.properties Start Kafka-server: ----------------------------- F:/kafka_2.12-3.2.0/bin/windows/kafka-server-start.bat F:/kafka_2.12-3.2.0/config/server.properties Create a topic: ------------------------- F:/kafka_2.12-3.2.0/bin/windows/kafka-topics.bat --create --topic demo_testing --bootstrap-server localhost:9092 --replication-factor 1 --partitions 3 Start Producer: -------------------------- F:/kafka_2.12-3.2.0/bin/windows/kafka-console-producer.bat --topic demo_testing --bootstrap-server localhost:9092 Start Consumer: ---------------------------------- F:/kafka_2.12-3.2.0/bin/windows/kafka-console-consumer.bat --topic demo_testing --from-beginning --bootstrap-server localhost:9092 Reading message from specific partition: --------------------------------------------------------------------- F:/kafka_2.12-3.2.0/bin/windows/kafka-console-consumer.bat --topic demo_testing --from-beginning --bootstrap-server localhost:9092 --partition 2 Reading message from specific offset inside a specific partition: --------------------------------------------------------------------------------------------------------------- F:/kafka_2.12-3.2.0/bin/windows/kafka-console-consumer.bat --topic demo_testing --bootstrap-server localhost:9092 --partition 2 --offset 1 Reading message from specific offset : ------------------------------------------------------------------------- F:/kafka_2.12-3.2.0/bin/windows/kafka-console-consumer.bat --topic demo_testing --bootstrap-server localhost:9092 --offset 0
@user-bf4kg9iw7y
@user-bf4kg9iw7y 10 ай бұрын
Explained well. concepts are so clear. Below are the topics learned so far - 1. Verifying multiple partitions in the server logs directory 2. Checking the offset based on the flag parameter within the partition 3. Content check for each message within the partition
@bigdataprofessional1880
@bigdataprofessional1880 Жыл бұрын
Crisp explanation, 100% perfect
@KnowledgeAmplifier1
@KnowledgeAmplifier1 Жыл бұрын
Thank you BigData Professional! Happy Learning
@user-or5gv9jt2i
@user-or5gv9jt2i 11 ай бұрын
absolute genius. amazing xplaination sir, thankyou so much.
@KnowledgeAmplifier1
@KnowledgeAmplifier1 10 ай бұрын
Thanks and welcome
@ayansrivastava731
@ayansrivastava731 9 ай бұрын
if someone is using kafka >2.4 , this approach of round robin(random partitioning) will NOT work, instead there is something called sticky partitioner where you'll see all msgs going to same partition. WHY? because we didn't specify keys in the start. The partitioning strategy by kafka has changed.
@KnowledgeAmplifier1
@KnowledgeAmplifier1 7 ай бұрын
You are correct Ayan , here are the videos where I have explained the same -- kzbin.info/www/bejne/Y5bSZXyGitibiNEsi=o_tQF0TYGE5qFO_D
@BasitAIi
@BasitAIi 6 ай бұрын
Thanks, I was also thinking about the same problem
@user-vp4by6sb1m
@user-vp4by6sb1m 3 ай бұрын
Thank you Sir
@KnowledgeAmplifier1
@KnowledgeAmplifier1 3 ай бұрын
You are @user-vp4by6sb1m ! Happy Learning
@shobhitarya1637
@shobhitarya1637 6 ай бұрын
Wow, you explained the topics very well with practical as well as with internals. Its a very good tutorial for learning kafka. Thank you .
@KnowledgeAmplifier1
@KnowledgeAmplifier1 6 ай бұрын
Thank you for your kind words Shobhit Arya! Happy Learning
@kamalnayan9157
@kamalnayan9157 Жыл бұрын
Great work man! Thank you
@KnowledgeAmplifier1
@KnowledgeAmplifier1 Жыл бұрын
Thank you Kamal Nayan! Happy Learning
@ohuuthai1678
@ohuuthai1678 Ай бұрын
Why does my data only save to partition 0 when I was like you, I tried adding many other input data examples, but it only jumps to partition 0
@digitaltechconnect1318
@digitaltechconnect1318 Жыл бұрын
Please provide us the session for Confluent Kafka
@vigneshr4197
@vigneshr4197 Жыл бұрын
One kafka producer,two consumer subscribes to kafka topic then how partition works?
@KnowledgeAmplifier1
@KnowledgeAmplifier1 Жыл бұрын
Hello Vignesh R , you can have a look in this video , I explained your scenario in detail -- kzbin.info/www/bejne/r3zdlaijlNuLbc0 Hope this will be helpful! Happy Learning
@alapysalapylalapy2352
@alapysalapylalapy2352 Жыл бұрын
Can we connect?
@KnowledgeAmplifier1
@KnowledgeAmplifier1 Жыл бұрын
Hello Namrata Pathak, please post your doubt here , If I know that topic or have any idea , I will surely reply asap , also for any kafka related doubts , please check this playlist once , might help you if the topic is covered in the playlist already -- kzbin.info/aero/PLjfRmoYoxpNrs0VmIq6mOTqXP52RfZdRf
@alapysalapylalapy2352
@alapysalapylalapy2352 Жыл бұрын
@@KnowledgeAmplifier1 hi i am facing one error with my assignment where to post the picture??
@alapysalapylalapy2352
@alapysalapylalapy2352 Жыл бұрын
@@KnowledgeAmplifier1 what are the rules of data ingestion i.e Kafka to hdfs in which video it is present??
Kafka Cluster with Multiple Brokers
33:57
Knowledge Amplifier
Рет қаралды 11 М.
Topic with Replication in Multiple Broker Kafka Cluster
28:35
Knowledge Amplifier
Рет қаралды 4,3 М.
HAPPY BIRTHDAY @mozabrick 🎉 #cat #funny
00:36
SOFIADELMONSTRO
Рет қаралды 17 МЛН
- А что в креме? - Это кАкАооо! #КондитерДети
00:24
Телеканал ПЯТНИЦА
Рет қаралды 7 МЛН
Самый Молодой Актёр Без Оскара 😂
00:13
Глеб Рандалайнен
Рет қаралды 6 МЛН
Topics, Partitions and Offsets:  Apache Kafka Tutorial #2
6:41
Anton Putra
Рет қаралды 20 М.
buffer.memory , max.block.ms & Producer IO Thread in kafka
17:44
Knowledge Amplifier
Рет қаралды 2,6 М.
Introduction to Schema Registry in Kafka | Part 1
30:42
Knowledge Amplifier
Рет қаралды 8 М.
System Design: Why is Kafka fast?
5:02
ByteByteGo
Рет қаралды 1 МЛН
Consumer & Consumer Group in Kafka
12:17
Knowledge Amplifier
Рет қаралды 2 М.
Kafka Producer Key & Message Acknowledgements
21:14
Knowledge Amplifier
Рет қаралды 4,8 М.
Kafka Topics, Partitions and Offsets Explained
7:03
Stephane Maarek
Рет қаралды 149 М.
ASMR Programming - Spinning Cube - No Talking
20:45
Servet Gulnaroglu
Рет қаралды 3,7 МЛН
Klavye İle Trafik Işığını Yönetmek #shorts
0:18
Osman Kabadayı
Рет қаралды 6 МЛН
Battery  low 🔋 🪫
0:10
dednahype
Рет қаралды 12 МЛН
Какой ноутбук взять для учёбы? #msi #rtx4090 #laptop #юмор #игровой #apple #shorts
0:18
Look, this is the 97th generation of the phone?
0:13
Edcers
Рет қаралды 4,2 МЛН
Samsung Galaxy 🔥 #shorts  #trending #youtubeshorts  #shortvideo ujjawal4u
0:10
Ujjawal4u. 120k Views . 4 hours ago
Рет қаралды 8 МЛН
Здесь упор в процессор
18:02
Рома, Просто Рома
Рет қаралды 379 М.