Kafka Tutorial CreatingConsumer

Поделиться
HTML-код
  • Опубликовано: 15 сен 2024

Комментарии • 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 лет назад +10

    Love your dedication to educate the community. Creating such presentations that you use to explain consumes time, really appreciate your hardwork and time.

  • @vasanthakumarselvaraj6375
    @vasanthakumarselvaraj6375 7 лет назад +3

    Best Kafka tutorial I have seen. Thank you for the wonderful, neat and clear lecture

    • @ScholarNest
      @ScholarNest  7 лет назад +2

      Thanks a lot Vasanth for your feedback. Appreciate you took the time to write back.

  • @大盗江南
    @大盗江南 3 года назад

    This is the best kafka tutoriel ever !!! Thank you buddy! we love u !

  • @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.

  • @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!

  • @adityasaxena7856
    @adityasaxena7856 Год назад

    great explanation Sir, Thank you😊

  • @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

  • @girishkuruba6323
    @girishkuruba6323 5 лет назад

    Excellent video!!!!. Explanation was very clear. Looking forward for more videos.

  • @premkushwaha3111
    @premkushwaha3111 4 года назад

    awesome tutorial, explained very well and clear all doubts

  • @gunanksood
    @gunanksood 5 лет назад

    Amazing tutorial. Really like the way you explain each and every concept.
    Thank you

  • @yog2915
    @yog2915 4 года назад

    amazing sessions to get ur basics right

  • @nileshpawar6299
    @nileshpawar6299 7 лет назад +1

    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?

  • @prageethjayasinghe709
    @prageethjayasinghe709 5 лет назад

    Short and sweet!

  • @abhis1083
    @abhis1083 7 лет назад

    very good informative tutorial on kafka

  • @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

      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.

  • @faisalnkutu3776
    @faisalnkutu3776 5 лет назад

    Thank you

  • @praveenppk1
    @praveenppk1 7 лет назад

    Excellent way of explanation and Waiting for your Hadoop and hive tutorial as well

  • @savitaraghuvanshi
    @savitaraghuvanshi 5 лет назад

    very informative .

  • @ramasubbareddy6147
    @ramasubbareddy6147 6 лет назад

    good explanation

  • @ashwanishukla744
    @ashwanishukla744 3 года назад

    How to send data from Kafka consumer in spring boot to Victoria metrics.

  • @HollyJollyTolly
    @HollyJollyTolly 7 лет назад

    Thank you sir...

  • @aniqatiq731
    @aniqatiq731 4 года назад

    Can you describe a clean way of closing the consumer mine keep stuck at the infinite loop

  • @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.

  • @prabhupsgtech
    @prabhupsgtech 7 лет назад

    Best Tutorials for Kafka.. If possible, will you able to post some videos about Mirrormaker?

    • @ScholarNest
      @ScholarNest  7 лет назад +1

      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:)

  • @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 лет назад +1

      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.

  • @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..

  • @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 ?

  • @JohnWick-zc5li
    @JohnWick-zc5li 7 лет назад

    Thanks sir...it is not possible consume and send m sg (s)from the same application for testing purpose

  • @chiragkadam5948
    @chiragkadam5948 3 года назад

    i want command which create consumers group

  • @rajareddy47444
    @rajareddy47444 6 лет назад

    I tried to make 2 brokers in GCP. its throwing an error. It says only one boker available for replication faction

  • @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 лет назад +1

      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.

  • @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?

  • @gouraharidas
    @gouraharidas 6 лет назад

    Sir, How can I provide a group name if I am starting a console consumer using the kafka script?

  • @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.

  • @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 лет назад +1

      It reads as much as it can within the specified time limit and other limits specified through configurations.

  • @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

  • @杨正云
    @杨正云 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.

    • @杨正云
      @杨正云 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 лет назад +1

      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.

  • @venkataraok
    @venkataraok 7 лет назад

    Where do I need to place property file?, as we are not mentioning the property file path in the code

  • @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.

  • @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?

  • @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.

  • @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.

  • @gvbsprasad2179
    @gvbsprasad2179 3 года назад

    .net ?

  • @MrJz450
    @MrJz450 7 лет назад

    Hi, I have a question that, can we create kafka consumer for any mysql databases?

    • @ScholarNest
      @ScholarNest  7 лет назад +1

      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 лет назад +2

      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 года назад +1

      github.com/LearningJournal/ApacheKafkaTutorials

  • @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