No video

Kafka Tutorial CreatingConsumer

  Рет қаралды 63,425

Learning Journal

Learning Journal

Күн бұрын

Spark Programming and Azure Databricks ILT Master Class by Prashant Kumar Pandey - Fill out the google form for Course inquiry.
forms.gle/Nxk8...
-------------------------------------------------------------------
Data Engineering using is one of the highest-paid jobs of today.
It is going to remain in the top IT skills forever.
Are you in database development, data warehousing, ETL tools, data analysis, SQL, PL/QL development?
I have a well-crafted success path for you.
I will help you get prepared for the data engineer and solution architect role depending on your profile and experience.
We created a course that takes you deep into core data engineering technology and masters it.
If you are a working professional:
1. Aspiring to become a data engineer.
2. Change your career to data engineering.
3. Grow your data engineering career.
4. Get Databricks Spark Certification.
5. Crack the Spark Data Engineering interviews.
ScholarNest is offering a one-stop integrated Learning Path.
The course is open for registration.
The course delivers an example-driven approach and project-based learning.
You will be practicing the skills using MCQ, Coding Exercises, and Capstone Projects.
The course comes with the following integrated services.
1. Technical support and Doubt Clarification
2. Live Project Discussion
3. Resume Building
4. Interview Preparation
5. Mock Interviews
Course Duration: 6 Months
Course Prerequisite: Programming and SQL Knowledge
Target Audience: Working Professionals
Batch start: Registration Started
Fill out the below form for more details and course inquiries.
forms.gle/Nxk8...
--------------------------------------------------------------------------
Learn more at www.scholarnes...
Best place to learn Data engineering, Bigdata, Apache Spark, Databricks, Apache Kafka, Confluent Cloud, AWS Cloud Computing, Azure Cloud, Google Cloud - Self-paced, Instructor-led, Certification courses, and practice tests.
========================================================
SPARK COURSES
-----------------------------
www.scholarnes...
www.scholarnes...
www.scholarnes...
www.scholarnes...
www.scholarnes...
KAFKA COURSES
--------------------------------
www.scholarnes...
www.scholarnes...
www.scholarnes...
AWS CLOUD
------------------------
www.scholarnes...
www.scholarnes...
PYTHON
------------------
www.scholarnes...
========================================
We are also available on the Udemy Platform
Check out the below link for our Courses on Udemy
www.learningjo...
=======================================
You can also find us on Oreilly Learning
www.oreilly.co...
www.oreilly.co...
www.oreilly.co...
www.oreilly.co...
www.oreilly.co...
www.oreilly.co...
www.oreilly.co...
www.oreilly.co...
=========================================
Follow us on Social Media
/ scholarnest
/ scholarnesttechnologies
/ scholarnest
/ scholarnest
github.com/Sch...
github.com/lea...
========================================

Пікірлер: 93
@ScholarNest
@ScholarNest 3 жыл бұрын
Want to learn more Big Data Technology courses. You can get lifetime access to our courses on the Udemy platform. Visit the below link for Discounts and Coupon Code. www.learningjournal.guru/courses/
@mpgrewal00
@mpgrewal00 7 жыл бұрын
Love your dedication to educate the community. Creating such presentations that you use to explain consumes time, really appreciate your hardwork and time.
@abhiganta
@abhiganta 5 жыл бұрын
This is the 17th video in this playlist and I still wonder the way you explain each concept. All topics were very clear and the pictorial representation was amazing.
@vasanthakumarselvaraj6375
@vasanthakumarselvaraj6375 7 жыл бұрын
Best Kafka tutorial I have seen. Thank you for the wonderful, neat and clear lecture
@ScholarNest
@ScholarNest 7 жыл бұрын
Thanks a lot Vasanth for your feedback. Appreciate you took the time to write back.
@user-oy4kf5wr8l
@user-oy4kf5wr8l 3 жыл бұрын
This is the best kafka tutoriel ever !!! Thank you buddy! we love u !
@sachinsree
@sachinsree 2 жыл бұрын
Such excellent tutorial. Your awesome sir!. The way you explain the concepts i liked it very much. It crisp and clear. Thanks!
@narayanarao2477
@narayanarao2477 7 жыл бұрын
You are best trainer sir even seen as of now
@rajareddy47444
@rajareddy47444 6 жыл бұрын
Hi,Thank you sir for sharing your knowledge.The way u take the concept and explaining is awesome. After watching your spark videos i got the confidence that i can face interviews with more confidence .Thanks for showing way how to do in real time using GCP. Now i started learning kafka parallel with spark. These videos are in terminal.Can you please explain kafka also in real time with GCP. That will be a great advantage for those who are moving to this ecosystem. Thank you
@adityasaxena7856
@adityasaxena7856 Жыл бұрын
great explanation Sir, Thank you😊
@Devans512
@Devans512 7 жыл бұрын
1) 10k producers sending the 50 records(one record at a time) of data for each 3min, can you please suggest me that how many partitions, consumers do i need? 2) What will happen if consumer count is more than Partition count, whether consumers consumes duplicate data( consumes more than once)? 3) what is the RAM consumption, ROM usage? 4) How much time consumers will take to read all the records?
@ScholarNest
@ScholarNest 7 жыл бұрын
1) You can decide the number of consumers based on some experiments. I suggest a small POC with the real records and then do some maths. 2) No, additional Consumers will not read any partitions. 3) Memory consumption depends upon your message size, and the number of in-flight messages is the main factors. 4) Depends on many factors. The size of the record and network speed are the major ones.
@yog2915
@yog2915 4 жыл бұрын
amazing sessions to get ur basics right
@premkushwaha3111
@premkushwaha3111 4 жыл бұрын
awesome tutorial, explained very well and clear all doubts
@girishkuruba6323
@girishkuruba6323 5 жыл бұрын
Excellent video!!!!. Explanation was very clear. Looking forward for more videos.
@nileshpawar6299
@nileshpawar6299 7 жыл бұрын
explained in simple and good way..
@patilsuhas
@patilsuhas 3 жыл бұрын
Thanks for good tutorial. Have a question around authentication. How broker authenticate consumers if it is valid? What if someone know the configuration and create his own consumer to pull the data?
@gunanksood
@gunanksood 5 жыл бұрын
Amazing tutorial. Really like the way you explain each and every concept. Thank you
@kumarvairakkannu360
@kumarvairakkannu360 7 жыл бұрын
Question- Only group name is created and no assignment of how many consumers should be created for a group in order to balance for multiple partitions. Kafka decides numbers of consumers automatically?
@ScholarNest
@ScholarNest 7 жыл бұрын
No, Kafka doesn't decide the number of consumers. We have to start Consumers, as many as we want. Just keep the Group Name same for all consumers, and they will share the workload.
@kumarvairakkannu360
@kumarvairakkannu360 7 жыл бұрын
Thanks a lot. Understand.
@ashwanishukla744
@ashwanishukla744 3 жыл бұрын
How to send data from Kafka consumer in spring boot to Victoria metrics.
@abhis1083
@abhis1083 7 жыл бұрын
very good informative tutorial on kafka
@ScholarNest
@ScholarNest 7 жыл бұрын
Thanks
@aniqatiq731
@aniqatiq731 4 жыл бұрын
Can you describe a clean way of closing the consumer mine keep stuck at the infinite loop
@sk4162
@sk4162 3 жыл бұрын
how to get latest message enter into topic using java consumer
@harishtati5667
@harishtati5667 3 жыл бұрын
Hi sir, i did code same but i am seeing logs updating continuously along with producer messages. I mean when i run consumer its displaying logs continuously without stopping. The logs are like fetching data or uncommitted offsets etc. Please help me why it is coming..
@praveenppk1
@praveenppk1 7 жыл бұрын
Excellent way of explanation and Waiting for your Hadoop and hive tutorial as well
@ScholarNest
@ScholarNest 7 жыл бұрын
Thanks, It's coming soon, Before the Bahubali 2 :-)
@karthikkumar12
@karthikkumar12 7 жыл бұрын
lol :)
@ragavkb2597
@ragavkb2597 6 жыл бұрын
Thanks again for a good tutorial series, At the time of executing consumer.poll(), does it fetches all available messages in the assigned partition at once ? Is there any control to specify how much data(at most) the consumer is interested in receiving in a single poll ? On a related note, suppose that my consumer received 10 messages on a single poll() but failed(consumer died) while processing the 5th message. Is there a way for the broker to know that it has to re-deliver the messages to the newly re-assigned consumer? Appreciate if you could give some insights on such scenarios. Thanks.
@jay-arabalos4393
@jay-arabalos4393 4 жыл бұрын
Do you have video tutorial for Junit testing a kafka consumer?
@SrinivasGadeGPlus
@SrinivasGadeGPlus 6 жыл бұрын
Isn't we have to pass zookeper details in the consumer... rather passing the brokerlist?
@pratikgandhi9543
@pratikgandhi9543 3 жыл бұрын
Which API create coordinator and leader ?
@prageethjayasinghe709
@prageethjayasinghe709 5 жыл бұрын
Short and sweet!
@savitaraghuvanshi
@savitaraghuvanshi 5 жыл бұрын
very informative .
@karthikragunaths
@karthikragunaths 7 жыл бұрын
What happens if there's 5 partitions, and I've created 2 consumer groups, both having 5 consumers? How does the GROUP CO-ORDINATOR balance in such a case? Does it randomly assign the 5 partitions among these 10 consumers? Another question I have is on the message itself -- If a message is too big, is the message split and pushed to different partitions ? or same partition ? [ I'm sorry I couldn't post this in one of the producer related videos ]
@ScholarNest
@ScholarNest 7 жыл бұрын
Q1- Each Group will read all 5 partitions. Since there are 5 consumers in each group, they get one partition each. Q2- If the message is too big, you get an exception. It can't be sent.
@prabhupsgtech
@prabhupsgtech 7 жыл бұрын
Best Tutorials for Kafka.. If possible, will you able to post some videos about Mirrormaker?
@ScholarNest
@ScholarNest 7 жыл бұрын
Thanks. Your request for the new content is reasonable. I am adding it to my list for next Kafka series. I will start a new set in the near future.
@prabhupsgtech
@prabhupsgtech 7 жыл бұрын
Thanks:)
@JohnWick-zc5li
@JohnWick-zc5li 7 жыл бұрын
Thanks sir...it is not possible consume and send m sg (s)from the same application for testing purpose
@rajareddy47444
@rajareddy47444 6 жыл бұрын
I tried to make 2 brokers in GCP. its throwing an error. It says only one boker available for replication faction
@faisalnkutu3776
@faisalnkutu3776 5 жыл бұрын
Thank you
@anushbabukancharla3907
@anushbabukancharla3907 7 жыл бұрын
conumer reads all records from topic higher than current offset or particular number of records? ,if its a particular no of records ,how consumer decides how many records to read from topic can u please explain
@ScholarNest
@ScholarNest 7 жыл бұрын
It reads as much as it can within the specified time limit and other limits specified through configurations.
@ramasubbareddy6147
@ramasubbareddy6147 6 жыл бұрын
good explanation
@priyankasarkar4527
@priyankasarkar4527 6 жыл бұрын
Sir how does the consumer get to know that it has finished consuming all records from the producer?Is there any technique for that?
@ScholarNest
@ScholarNest 6 жыл бұрын
I think you finish all videos and by the end of tutorial series, you should get the answer.
@chiragkadam5948
@chiragkadam5948 3 жыл бұрын
i want command which create consumers group
@user-rr3cc3uv2h
@user-rr3cc3uv2h 7 жыл бұрын
Saying there are 5 partitions in a topic and 4 consumers in a group to consume the topic messages. Now I start a independent new consumer to consume the topic messages, how does the group coordinator to handle this case?
@ScholarNest
@ScholarNest 7 жыл бұрын
What do you mean by the independent consumer? If it is part of the new group, it consumes all partitions. If it is not part of any group, then you have no group coordinator assigned.
@user-rr3cc3uv2h
@user-rr3cc3uv2h 7 жыл бұрын
you mentioned the concept of 'independentn consumer' at 2:20. I am confused what partition will the independent consumer works on.
@ScholarNest
@ScholarNest 7 жыл бұрын
Ok, That's a consumer who is not part of any group, so it has to assign topic and partition to itself using "assign" API. It should take care of everything that a Kafka group management offers. There is an example for such a consumer in "Exactly once processing" video.
@gowthamjs23
@gowthamjs23 7 жыл бұрын
Hello! Thanks for the great tutorial. How can I find the number of messages in a topic using Java and is there is a way to check if a particular message is in a topic? Please share your thoughts. Thanks!
@ScholarNest
@ScholarNest 7 жыл бұрын
You can do all that however you must ask yourself why? Do you want to use a broker as a database to execute queries?
@HollyJollyTolly
@HollyJollyTolly 7 жыл бұрын
Thank you sir...
@linipiusk8965
@linipiusk8965 4 жыл бұрын
can you help me how to copy data (say json format data) consumed from one topic to another topic after data being modified?
@ScholarNest
@ScholarNest 4 жыл бұрын
Create a consumer and also a producer, both in same application and you can do it. Join My Udemy course and I am adding an example in the same. It is free for few more days until I finish the full content.
@mkvjaipur
@mkvjaipur 7 жыл бұрын
Question? what happens if there is a Leader broker fails from where consumer was consuming data?
@ScholarNest
@ScholarNest 7 жыл бұрын
A new leader is elected. I have a separate video on Fault tolerance in Kafka. Have you checked that? Hope that answers your doubt.
@ScholarNest
@ScholarNest 7 жыл бұрын
However, Do you connect to a Leader? No, Right. When you create a consumer, You just connect to the cluster by supplying any broker address. So, as a consumer, you never know who a leader is? If one Leader goes down, a new leader is elected.
@Jitendrakumar-mg9gr
@Jitendrakumar-mg9gr 7 жыл бұрын
Could u Please help me. I have some dought . Please give a call on that number 9066898340
@venkataraok
@venkataraok 7 жыл бұрын
Where do I need to place property file?, as we are not mentioning the property file path in the code
@ScholarNest
@ScholarNest 7 жыл бұрын
current directory.
@gouraharidas
@gouraharidas 6 жыл бұрын
Sir, How can I provide a group name if I am starting a console consumer using the kafka script?
@arka70
@arka70 6 жыл бұрын
Hi Sir, here group_id is use if we have a consumer group. But is it required if we only use one consumer?
@ScholarNest
@ScholarNest 6 жыл бұрын
No. You dont need it.
@liviucira3611
@liviucira3611 7 жыл бұрын
What if I do this: props.put("bootstrap.servers", someIpAddress + ":9092"); ? Shouldn't my consumer receive messages from a functioning producer from a host having the IP address = someIpAddress? Is there any problem if many consumers bind to the same port of the producer (i.e. someIpAddress:9092)? For instance I have the following situation: producer on a host, consumer1 on the same host, consumer2 on a different host. Consumer1 receives the messages sent by the producer, consumer2 DOES NOT... the code is identical, I only changed "localhost" with the IP address of the producer (for consumer2).
@ScholarNest
@ScholarNest 7 жыл бұрын
I am not sure if I follow your question. However, I read a fundamental misconception. The consumer never directly interact with a producer. There is a Broker in between. The bootstrap server is the Broker address, not the producer. Hope this helps.
@liviucira3611
@liviucira3611 7 жыл бұрын
If the consumer is on a different machine than the one of the broker and if i do this in the consumer: props.put("bootstrap.servers", "123.12.12.12:9092"); where 123.12.12.12 is the address of the broker, shouldn't the consumer receive the messages?
@ScholarNest
@ScholarNest 7 жыл бұрын
Yes. That's the ideal case. You can't expect consumers to be executing on broker nodes.
@rishabhsinghal8638
@rishabhsinghal8638 6 жыл бұрын
Sir i have a question is it possible to delete a message from topic once a subscriber have received a message something like subscriber will send an acknowledgement to producer or topic and then message can be deleted.
@ScholarNest
@ScholarNest 6 жыл бұрын
No. Subscriber and producer don't know each others. They always talk to broker. They never talk directly.
@MrJz450
@MrJz450 7 жыл бұрын
Hi, I have a question that, can we create kafka consumer for any mysql databases?
@ScholarNest
@ScholarNest 7 жыл бұрын
Yes, we can, But for that, we use Kafka Connect.
@MrJz450
@MrJz450 7 жыл бұрын
Thanks for your reply, are you talking about the "Confluent Jdbc" Connector?? Is there any Consumer API(in Java) Available for mysql as a consumer?
@ScholarNest
@ScholarNest 7 жыл бұрын
check kafka.apache.org/quickstart#quickstart_kafkaconnect
@MrJz450
@MrJz450 7 жыл бұрын
Thank you so much....I appreciate your Response.
@antarahazra927
@antarahazra927 3 жыл бұрын
Can you share the git hub link?
@ScholarNest
@ScholarNest 3 жыл бұрын
github.com/LearningJournal/ApacheKafkaTutorials
@gvbsprasad2179
@gvbsprasad2179 3 жыл бұрын
.net ?
@alihossein_shahabi
@alihossein_shahabi 6 жыл бұрын
how can I download powerpoint of this course?
@ScholarNest
@ScholarNest 6 жыл бұрын
PowerPoint is not available. If you are looking for code to copy paste, it is available at the website.
@alihossein_shahabi
@alihossein_shahabi 6 жыл бұрын
No. I want to hold a seminar on Kafka in Iran. So I wanted to get help from your good slides
@ScholarNest
@ScholarNest 6 жыл бұрын
Unfortunately, I haven't preserved those slides. You might want to take the screenshots of full-screen videos.
@alihossein_shahabi
@alihossein_shahabi 6 жыл бұрын
ok.thanks
Kafka Tutorial   Offset Management
9:37
Learning Journal
Рет қаралды 100 М.
Kafka Tutorial - Schema Evolution Part 2
9:59
Learning Journal
Рет қаралды 30 М.
1ОШБ Да Вінчі навчання
00:14
AIRSOFT BALAN
Рет қаралды 4,8 МЛН
I Took a LUNCHBAR OFF A Poster 🤯 #shorts
00:17
Wian
Рет қаралды 15 МЛН
Мы сделали гигантские сухарики!  #большаяеда
00:44
АЗАРТНИК 4 |СЕЗОН 2 Серия
31:45
Inter Production
Рет қаралды 648 М.
Kafka Tutorial - Producer API
11:38
Learning Journal
Рет қаралды 141 М.
Apache Kafka Crash Course
1:18:06
Hussein Nasser
Рет қаралды 425 М.
Kafka Tutorial - Exactly once processing
13:33
Learning Journal
Рет қаралды 53 М.
Topics, Partitions and Offsets:  Apache Kafka Tutorial #2
6:41
Anton Putra
Рет қаралды 22 М.
Introduction to Apache Kafka by James Ward
49:48
Devoxx
Рет қаралды 279 М.
Kafka Tutorial   Schema Evolution Part 1
15:32
Learning Journal
Рет қаралды 57 М.
Kafka Tutorial   Rebalance Listener
10:49
Learning Journal
Рет қаралды 60 М.
1ОШБ Да Вінчі навчання
00:14
AIRSOFT BALAN
Рет қаралды 4,8 МЛН