Kafka Tutorial - Producer API

Поделиться
HTML-код
  • Опубликовано: 2 дек 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/
    ========================================

Комментарии • 89

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

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

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

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

  • @nikhillahoti7628
    @nikhillahoti7628 6 лет назад +1

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

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

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

  • @cliffmathew
    @cliffmathew 5 лет назад +1

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

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

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

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

    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

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

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

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

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

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

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

  • @sunil28071987
    @sunil28071987 6 лет назад +1

    Seriously Awesome Tutorial...!!!

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

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

  • @KC-zn4gt
    @KC-zn4gt 5 лет назад

    Excellent explanation and clear. Thank you.

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

    Amazing video! Well explained

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

    Clear explanation about kafka producer API

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

    Love you sir 🙏🙏🙏 great expalination.

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

    very well explained.

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

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

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

    Awesome videos :)

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

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

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

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

    wah wah wah...! period!

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

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

    Nice Explanation thanks

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

    Nice video please upload more Kafka

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

    Thanks you so much sir.

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

    Good one thx...!

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

    Very good video and easy to comprehend.

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

    Tussi great ho sir :)

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

    awesome video
    thanks a lot

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

    Amazing 😍

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

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

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

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

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

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

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

  • @Jaspreetkaur-ui7xu
    @Jaspreetkaur-ui7xu 6 лет назад

    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!

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

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

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

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

    Gold

  • @satish.b
    @satish.b 6 лет назад +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 3 года назад

      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.

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

    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?

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

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

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

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

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

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

      Awesome.Would learn basics of java too then

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

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

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

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

    same thing can i get in python

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

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

    anyone please help on How to send Xml file?

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      What error are you getting?

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

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

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

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

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

    available on udemy?

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

    Hi