Kafka Tutorial - Producer API

Поділитися
Вставка
  • Опубліковано 30 січ 2025

КОМЕНТАРІ • 89

  • @ScholarNest
    @ScholarNest  4 роки тому

    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/

  • @matrixlnmi169
    @matrixlnmi169 6 років тому +6

    Sir, I would like to touch your feet as my teacher/guruji. very useful and one of the best way to teach. please more video in the same style.

  • @cliffmathew
    @cliffmathew 5 років тому +1

    Your series is very useful. You deserve more likes than I see registered.

  • @andewwayne7751
    @andewwayne7751 8 років тому +1

    This is one of the best videos regarding how to create producers with APIs

  • @sridhark6826
    @sridhark6826 7 років тому

    Excellent , I will never forget Kafka , Please upload videos related to cracking big data interviews.Really awesome

  • @manikandansaravanan5248
    @manikandansaravanan5248 7 років тому

    Extremely Great . Even if we just listen the Audio by closing the eyes .our mind visualize the entire Kafka system . Great work sir !!! you keep post .. will keep grow

  • @ankitkumar-wp5ny
    @ankitkumar-wp5ny 7 років тому +7

    First time i found a channel where everything is explained clearly and from scratch. you are doing really nice work sir.
    Thank you so much.
    If you have spark tutorial as well please tell me.

    • @ScholarNest
      @ScholarNest  7 років тому +6

      @Ankit, Spark is comming soon :-)

    • @deepakgupta-hk9ig
      @deepakgupta-hk9ig 7 років тому

      Awesome waiting for the spark tutorials also :)

  • @bnagarajan2176
    @bnagarajan2176 4 роки тому

    Nice video please upload more Kafka

  • @nidhirazdan6596
    @nidhirazdan6596 6 років тому

    Awesome ,Very Simple and so effective .Brucelee of Kafka is Sir !!!

  • @veerukbr1184
    @veerukbr1184 7 років тому

    Excellent.......Best video....with less timing....i really enjoyed a lot...please make video for spark scala with sbt and eclipse and R integration part as well.......

  • @gobiviswa7848
    @gobiviswa7848 7 років тому

    I feel python package gives easy way to create producer in just few lines of code... wonderful , thanks :)

  • @pankajsamadhiya8471
    @pankajsamadhiya8471 7 років тому

    Very Nice tutorial and well explained..useful for beginner and expert as well

  • @ericansah525
    @ericansah525 5 років тому

    Very good video and easy to comprehend.

  • @sunil28071987
    @sunil28071987 7 років тому +1

    Seriously Awesome Tutorial...!!!

  • @ramasubbareddy6147
    @ramasubbareddy6147 6 років тому

    Clear explanation about kafka producer API

  • @avelincorreia3418
    @avelincorreia3418 7 років тому +1

    very nice. simple and yet covers important topics. thanks.

  • @nikhillahoti7628
    @nikhillahoti7628 7 років тому +1

    Simply amazing. Thank you so much. Please keep posting such videos.

  • @nandininema7123
    @nandininema7123 4 роки тому

    Amazing 😍

  • @gokuldighe9160
    @gokuldighe9160 7 років тому

    excellent video ...this is what I was looking for

  • @luisjaimegonzalez
    @luisjaimegonzalez 7 років тому +3

    Dear Sr. you are my hero, thank you so much for sharing this knowledge !

  • @bharathnagamalla7713
    @bharathnagamalla7713 5 років тому

    Awesome Videos! If you have Hive Videos as well please tell us.

  • @AkshayA86
    @AkshayA86 7 років тому

    Very nicely explained. Thanks for the hard work you put in sharing this.

  • @monalkumar3698
    @monalkumar3698 4 роки тому

    awesome video
    thanks a lot

  • @ckudalkar
    @ckudalkar 5 років тому

    wah wah wah...! period!

  • @abhijeetkumar3569
    @abhijeetkumar3569 7 років тому +1

    I'm getting import error. I don't know what to do, I'm using eclipse oxygen and created the maven project and inside pom.xml, I've installed dependencies as well.

  • @NirdeshM
    @NirdeshM 7 років тому +2

    very well explained.

  • @KC-zn4gt
    @KC-zn4gt 6 років тому

    Excellent explanation and clear. Thank you.

  • @gksrikanthachar1787
    @gksrikanthachar1787 4 роки тому

    Hi sir, I wanted to know if there is an upper limit on data that can be stored in a single partition of a topic at any time?

    • @LivenLove
      @LivenLove 4 роки тому

      I think yes and we can specify it using log.retention.bytes

  • @sohamkamanitech
    @sohamkamanitech 7 років тому

    Amazing video! Well explained

  • @josephkingstonleomariamich7220
    @josephkingstonleomariamich7220 7 років тому

    Hi , I tired this example but getting exception(Invalid value SupplierDeserializer for configuration value.deserializer: Class SupplierDeserializer could not be found.) please help me. This dependency am using,
    org.apache.kafka
    kafka-clients
    0.10.1.1

  • @satish.b
    @satish.b 7 років тому +2

    In a previous video you had mentioned that all clients connect to the master for the partition. How is the producer connecting to the master?

    • @niravarma
      @niravarma 4 роки тому

      Good question. If I am not wrong, from his tutorial, what I understood was that this master (called as Leader in Apache Kafka) is the only one who receives the message so there is no need to specify in the args to which replica message should arrive. About how producer delivers message, that is presented in next video tutorial.

  • @sahilchhabra956
    @sahilchhabra956 8 років тому

    Hi, I have a doubt. While storing messages in Kafka in the form of Key-value pair, its not necessary for key to be unique? If yes, then how can we extract all the values of a particular key from Kafka?

    • @ScholarNest
      @ScholarNest  8 років тому +1

      Kafka is not a Key-values store. We never extract messages based on a key. I suggest you watch all the videos and note down your queries. Hold on your questions until you reach the end of the series. By the end of the series, you will have answers for most of your questions. If something is still not answered, send me those questions. I will answer them.

  • @MohammadFaizanKhanJ
    @MohammadFaizanKhanJ 6 років тому

    Good job sir but there are four core APIs not two. The other two are Streaming API and Connector API. Did you make any video/tut for this? Please share the link? Additionally do you know any .net implementation of kafka?

  • @deepakgupta-hk9ig
    @deepakgupta-hk9ig 7 років тому

    Kindly confirm do I need to create a maven project in eclipse IDE and then add the dependency of Consumer and producer API to run all the examples described in the videos

    • @ScholarNest
      @ScholarNest  7 років тому

      Using a build tool like maven to resolve dependency is the ideal method. However, you can also download the JAR and include it in your project. You can find the jar here.
      mvnrepository.com/artifact/org.apache.kafka/kafka-clients/0.10.1.0

  • @maravarmanmanoharan3300
    @maravarmanmanoharan3300 6 років тому

    Nice Explanation thanks

  • @mohammedmohideen1756
    @mohammedmohideen1756 5 років тому

    Good one thx...!

  • @vaddadisanthoshkumar4143
    @vaddadisanthoshkumar4143 6 років тому

    Love you sir 🙏🙏🙏 great expalination.

  • @TheGegX
    @TheGegX 7 років тому

    Thank you a lot for this nice tutorial. Good work!

  • @avibitm
    @avibitm 4 роки тому

    same thing can i get in python

  • @rudreshbhatt2919
    @rudreshbhatt2919 6 років тому

    Hello Sir, I'm pretty new to kafka, I'm trying to create sample application using .net code. Can you please help me with some step by step implementation guide like this?

  • @manirasaily2171
    @manirasaily2171 6 років тому

    Tussi great ho sir :)

  • @nipunsharma7194
    @nipunsharma7194 7 років тому

    Awesome videos :)

  • @GONTUBOSS
    @GONTUBOSS 6 років тому

    what are jar file required to create producer using java please send me link

  • @kumarsushma
    @kumarsushma 5 років тому

    Does the client code needs to be updated everytime there's a new broker added?

  • @megha02jain
    @megha02jain 6 років тому

    If we use the ProducerRecord API with both key and partition field, which one will be preferred for selecting the partition?

    • @ScholarNest
      @ScholarNest  6 років тому

      It's a small test, I encourage you to do it yourself and let everyone know the answer.

  • @srikanthch1524
    @srikanthch1524 5 років тому

    Thx for the videos. Can we use Kafka for long processing things..like suppose a customer can have orders from 1k to 1million orders..n to process each customer avg it takes 2hrs..can we use Kafka here..presently we are using rabbit mq with 50 threads ..all customers in one queue..

    • @ScholarNest
      @ScholarNest  5 років тому

      That's what Kafka is designed for :-) Go for it.

  • @vigneshrajans2975
    @vigneshrajans2975 6 років тому

    Hi Sir, I am from non java platform.can we able to programme any other language

  • @miguelfrosales01
    @miguelfrosales01 5 років тому

    In one of your previous videos you mentioned a producer only speaks with a master broker of sorts, why is it then normal to specify more than one broker?

    • @ScholarNest
      @ScholarNest  5 років тому +1

      Producer only speaks to the leader of the partition. That's correct.
      But how would the producer know who is the leader?
      So, we give him ip for one or more broker (any broker) which is used to query metadata. The metada contain the list of topic partition and leader address.

  • @aritrabasu8794
    @aritrabasu8794 7 років тому

    Sir ,can u add a tutorial on spring/sprint boot? Thanks..

  • @KapilKumar-hk9xk
    @KapilKumar-hk9xk 7 років тому

    hello sir, your videos are very knowledgeable but I have one doubt related to the role of kafka in production environment. Suppose I am creating a streaming application for Macdonald which will take the customer/order/offer json data from point of sell. This I want to process through spark streaming. So where exactly kafka producer and consumer api will sit here. Will it be a bridge between Macdonald POS and my streaming application...? If yes, then producer api will be bridge or consumer api will be bridge?
    I am not able to imagine, please enlighten me.

    • @ScholarNest
      @ScholarNest  7 років тому

      Producer at POS can send data to Kafka Broker and Spark Streaming should consume it directly from Kafka Broker. You may don't need a consumer in this case.

  • @Jaspreetkaur-ui7xu
    @Jaspreetkaur-ui7xu 7 років тому

    hi,, can someone please explain me how can we make a directory/folder in unix as kafka producer. I need to read multiple files that are coming in a directory continuously using kafka,, how can i do that,, can someone please explain me.. thanks in advance!

  • @lokeshreddy9837
    @lokeshreddy9837 7 років тому

    Thanks you so much sir.

  • @MrJeffherman
    @MrJeffherman 7 років тому

    Thanks for putting such a wonderful tutorials for us.I am having around 6 years of experience in ETL,DW and reporting background and trying to learn big data technologies from a long time.I have learnt Scala(Basics for spark),Apache Spark on my own and trying to learn Apache Kafka but I am bit worried about java as I don't have any knowledge of it.Can you please tell me how much Java I will have to learn in order to write efficient code for Apache kafka or it is doable through Scala too ?

    • @ScholarNest
      @ScholarNest  7 років тому +1

      Kafka is written in Java. There are language binding and wrappers for other languages but I Scala clients are not in good shape. I recommend learning core Java. That's going to help you in long run. Java is too big as an ecosystem and frameworks. But core Java should be the must thing for a big data developer.

    • @MrJeffherman
      @MrJeffherman 7 років тому

      Awesome.Would learn basics of java too then

  • @MrRimmy
    @MrRimmy 8 років тому

    Hello Sir,
    Thank you for giving such useful information.
    My Query:
    When we write our own producer java program, how we will run that jar??
    some thing related to kafka/libs/..

    • @ScholarNest
      @ScholarNest  8 років тому +2

      You can run your jar using java. Include your jar location in your classpath. Most of the Kafka dependency is available in Kafka lib directory. You may want to include them as well.

  • @mahammadshoyab9717
    @mahammadshoyab9717 8 років тому

    hello sir can you share text documentation of kafka which help for cracking interview and learning kafka ,please

    • @ScholarNest
      @ScholarNest  8 років тому +4

      I haven't made any document but looks like people want it. I will make one by the end of this month and share.

    • @doronae1
      @doronae1 7 років тому

      Hi
      Great session !!! Kudos
      Any news about the sharing of a text documents of these Kafka session?
      Great thanks again, Well Done !

  • @karthikmuthyala1251
    @karthikmuthyala1251 7 років тому

    I ran the code
    these are the last lines after code got executed , but when I try to read topic contents through kafka console consumer it is showing empty
    [main] INFO org.apache.kafka.common.utils.AppInfoParser - Kafka version : 0.11.0.0
    [main] INFO org.apache.kafka.common.utils.AppInfoParser - Kafka commitId : cb8625948210849f
    [main] INFO org.apache.kafka.clients.producer.KafkaProducer - Closing the Kafka producer with timeoutMillis = 9223372036854775807 ms.
    SimpleProducer Completed.

  • @itsmylife8260
    @itsmylife8260 7 років тому

    hai sir,
    am getting error in execution in terminal. plz can u tell me how to execute in terminal.

    • @ScholarNest
      @ScholarNest  7 років тому

      What error are you getting?

    • @itsmylife8260
      @itsmylife8260 7 років тому

      bin/kafka-console-consumer.sh --bootstrap-server localhost:9092 --topic tn (enter)
      its not come out form dat.its not displying any msg.
      sir do u have step by step process for executing producer in cosole in github.

    • @ScholarNest
      @ScholarNest  7 років тому

      I have documented all steps, commands etc at my website. Check this page. It might help you resolve the issue.
      www.learningjournal.guru/courses/kafka/kafka-foundation-training/quick-start-demo/
      One more thing. Start the consumer first in one terminal and then start the producer in another terminal. Producer should send messages when consumer is already listening for it. Sometime that helps.

    • @itsmylife8260
      @itsmylife8260 7 років тому

      i done the above video sir.actually its really help full. i understand the process in the above video.am preparing my own nodes based on ur tutorial sir.
      my doubt is how can i run the producer api , consumer api in terminal.

    • @ScholarNest
      @ScholarNest  7 років тому

      The process for compiling and executing producer and consumer API is also explained in the video. Source code is available at the website and also in GitHub. I used SBT to compile and run the code. If you have any doubt on SBT, I have a full SBT tutorial as part of my Scala tutorial playlist.

  • @asimranjanpanigrahi
    @asimranjanpanigrahi 7 років тому

    Sir, This is very informative. do you have any tutorial for java?

  • @kamalbctg
    @kamalbctg 5 років тому

    available on udemy?

  • @mpgrewal00
    @mpgrewal00 8 років тому

    Gold

  • @Vishall861
    @Vishall861 7 років тому

    anyone please help on How to send Xml file?

  • @josephkingstonleomariamich7220
    @josephkingstonleomariamich7220 7 років тому

    Tutorial is good but how to import his project which build that is killing me

    • @ScholarNest
      @ScholarNest  7 років тому

      Didn't get you.

    • @josephkingstonleomariamich7220
      @josephkingstonleomariamich7220 7 років тому

      I am trying with Maven now as am aware of Maven and Gradle, but I dont know about SBT. Please post SPARK soon.Thanks again.

  • @pratikshamete2281
    @pratikshamete2281 3 роки тому

    Hi