Kafka Tutorial - Producer API

Sdílet
Vložit
  • čas přidán 2. 12. 2016
  • Spark Programming and Azure Databricks ILT Master Class by Prashant Kumar Pandey - Fill out the google form for Course inquiry.
    forms.gle/Nxk8dQUPq4o4XsA47
    -------------------------------------------------------------------
    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/Nxk8dQUPq4o4XsA47
    --------------------------------------------------------------------------
    Learn more at www.scholarnest.com/
    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.scholarnest.com/courses/s...
    www.scholarnest.com/courses/s...
    www.scholarnest.com/courses/s...
    www.scholarnest.com/courses/s...
    www.scholarnest.com/courses/d...
    KAFKA COURSES
    --------------------------------
    www.scholarnest.com/courses/a...
    www.scholarnest.com/courses/k...
    www.scholarnest.com/courses/s...
    AWS CLOUD
    ------------------------
    www.scholarnest.com/courses/a...
    www.scholarnest.com/courses/a...
    PYTHON
    ------------------
    www.scholarnest.com/courses/p...
    ========================================
    We are also available on the Udemy Platform
    Check out the below link for our Courses on Udemy
    www.learningjournal.guru/cour...
    =======================================
    You can also find us on Oreilly Learning
    www.oreilly.com/library/view/...
    www.oreilly.com/videos/apache...
    www.oreilly.com/videos/kafka-...
    www.oreilly.com/videos/spark-...
    www.oreilly.com/videos/spark-...
    www.oreilly.com/videos/apache...
    www.oreilly.com/videos/real-t...
    www.oreilly.com/videos/real-t...
    =========================================
    Follow us on Social Media
    / scholarnest
    / scholarnesttechnologies
    / scholarnest
    / scholarnest
    github.com/ScholarNest
    github.com/learningJournal/
    ========================================

Komentáře • 89

  • @ScholarNest
    @ScholarNest  Před 3 lety

    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 Před 6 lety +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.

  • @andewwayne7751
    @andewwayne7751 Před 7 lety +1

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

  • @cliffmathew
    @cliffmathew Před 5 lety +1

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

  • @sridhark6826
    @sridhark6826 Před 6 lety

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

  • @nikhillahoti7628
    @nikhillahoti7628 Před 6 lety +1

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

  • @nidhirazdan6596
    @nidhirazdan6596 Před 6 lety

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

  • @manikandansaravanan5248

    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

  • @avelincorreia3418
    @avelincorreia3418 Před 7 lety +1

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

  • @sunil28071987
    @sunil28071987 Před 6 lety +1

    Seriously Awesome Tutorial...!!!

  • @Akshay06071986
    @Akshay06071986 Před 6 lety

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

  • @bnagarajan2176
    @bnagarajan2176 Před 3 lety

    Nice video please upload more Kafka

  • @gokuldighe9160
    @gokuldighe9160 Před 6 lety

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

  • @ramasubbareddy6147
    @ramasubbareddy6147 Před 6 lety

    Clear explanation about kafka producer API

  • @TheGegX
    @TheGegX Před 7 lety

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

  • @luisjaimegonzalez
    @luisjaimegonzalez Před 7 lety +3

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

  • @KC-zn4gt
    @KC-zn4gt Před 5 lety

    Excellent explanation and clear. Thank you.

  • @NirdeshM
    @NirdeshM Před 7 lety +2

    very well explained.

  • @sohamkamanitech
    @sohamkamanitech Před 6 lety

    Amazing video! Well explained

  • @veerukbr1184
    @veerukbr1184 Před 6 lety

    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 Před 7 lety

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

  • @vaddadisanthoshkumar4143

    Love you sir 🙏🙏🙏 great expalination.

  • @pankajsamadhiya8471
    @pankajsamadhiya8471 Před 7 lety

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

  • @ankitkumar-wp5ny
    @ankitkumar-wp5ny Před 7 lety +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.

  • @nipunsharma7194
    @nipunsharma7194 Před 6 lety

    Awesome videos :)

  • @ckudalkar
    @ckudalkar Před 4 lety

    wah wah wah...! period!

  • @ericansah525
    @ericansah525 Před 4 lety

    Very good video and easy to comprehend.

  • @maravarmanmanoharan3300

    Nice Explanation thanks

  • @monalkumar3698
    @monalkumar3698 Před 3 lety

    awesome video
    thanks a lot

  • @abhijeetkumar3569
    @abhijeetkumar3569 Před 6 lety +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.

  • @manirasaily2171
    @manirasaily2171 Před 5 lety

    Tussi great ho sir :)

  • @nandininema7123
    @nandininema7123 Před 3 lety

    Amazing 😍

  • @mohammedmohideen1756
    @mohammedmohideen1756 Před 5 lety

    Good one thx...!

  • @lokeshreddy9837
    @lokeshreddy9837 Před 6 lety

    Thanks you so much sir.

  • @bharathnagamalla7713
    @bharathnagamalla7713 Před 5 lety

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

  • @josephkingstonleomariamich7220

    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

  • @aritrabasu8794
    @aritrabasu8794 Před 7 lety

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

  • @vigneshrajans2975
    @vigneshrajans2975 Před 5 lety

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

  • @belgiumboy7015
    @belgiumboy7015 Před 6 lety

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

  • @MohammadFaizanKhanJ
    @MohammadFaizanKhanJ Před 5 lety

    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?

  • @Jaspreetkaur-ui7xu
    @Jaspreetkaur-ui7xu Před 6 lety

    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!

  • @satish.b
    @satish.b Před 6 lety +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 Před 3 lety

      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.

  • @deepakgupta-hk9ig
    @deepakgupta-hk9ig Před 7 lety

    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  Před 7 lety

      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

  • @MrRimmy
    @MrRimmy Před 7 lety

    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  Před 7 lety +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.

  • @mpgrewal00
    @mpgrewal00 Před 7 lety

    Gold

  • @megha02jain
    @megha02jain Před 6 lety

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

    • @ScholarNest
      @ScholarNest  Před 6 lety

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

  • @sahilchhabra956
    @sahilchhabra956 Před 7 lety

    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  Před 7 lety +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.

  • @MrJeffherman
    @MrJeffherman Před 6 lety

    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  Před 6 lety +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 Před 6 lety

      Awesome.Would learn basics of java too then

  • @gksrikanthachar1787
    @gksrikanthachar1787 Před 3 lety

    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 Před 3 lety

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

  • @asimranjanpanigrahi
    @asimranjanpanigrahi Před 6 lety

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

  • @KapilKumar-hk9xk
    @KapilKumar-hk9xk Před 7 lety

    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  Před 7 lety

      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.

  • @rudreshbhatt2919
    @rudreshbhatt2919 Před 6 lety

    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?

  • @srikanthch1524
    @srikanthch1524 Před 5 lety

    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  Před 5 lety

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

  • @avibitm
    @avibitm Před 3 lety

    same thing can i get in python

  • @kumarsushma
    @kumarsushma Před 5 lety

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

  • @miguelfrosales01
    @miguelfrosales01 Před 4 lety

    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  Před 4 lety +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.

  • @Vishall861
    @Vishall861 Před 7 lety

    anyone please help on How to send Xml file?

  • @mahammadshoyab9717
    @mahammadshoyab9717 Před 7 lety

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

    • @ScholarNest
      @ScholarNest  Před 7 lety +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 Před 7 lety

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

  • @karthikmuthyala1251
    @karthikmuthyala1251 Před 7 lety

    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 Před 6 lety

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

    • @ScholarNest
      @ScholarNest  Před 6 lety

      What error are you getting?

    • @itsmylife8260
      @itsmylife8260 Před 6 lety

      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  Před 6 lety

      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 Před 6 lety

      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  Před 6 lety

      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.

  • @kamalbctg
    @kamalbctg Před 5 lety

    available on udemy?

  • @josephkingstonleomariamich7220

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

  • @pratikshamete2281
    @pratikshamete2281 Před 3 lety

    Hi