Setup Kafka and Zookeeper with brew(homebrew) on Mac operating system: Use Kafka tool(UI) to Publish message and monitor Kafka topic message.

Kafka is publish subscribe messaging system which are most commonly used in asynchronous work flow. Homebrew is a software package management system that simplifies the installation of software on Apple's macOS operating system. Using brew Kafka and Zookeeper can installed & setup with ease.

Install zookeeper using brew(homebrew):
brew install zookeeper
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 2 taps (homebrew/core, homebrew/cask).
==> New Formulae
bundletool         geant4             i2pd               mallet             opensubdiv         opentracing-cpp    stanford-corenlp   tdlib
==> Updated Formulae
....
.....
==> Downloading https://homebrew.bintray.com/bottles/zookeeper-3.4.12.high_sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring zookeeper-3.4.12.high_sierra.bottle.tar.gz
==> Caveats
To have launchd start zookeeper now and restart at login:
  brew services start zookeeper
Or, if you don't want/need a background service you can just run:
  zkServer start
==> Summary
🍺  /usr/local/Cellar/zookeeper/3.4.12: 242 files, 32.9MB
Where is installation directory of zookeeper : /usr/local/Cellar/zookeeper

Install Kafka Using brew(hombrew):
➜  brew install kafka
Updating Homebrew...
==> Downloading https://homebrew.bintray.com/bottles/kafka-2.0.0.high_sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring kafka-2.0.0.high_sierra.bottle.tar.gz
==> Caveats
To have launchd start kafka now and restart at login:
  brew services start kafka
Or, if you don't want/need a background service you can just run:
  zookeeper-server-start /usr/local/etc/kafka/zookeeper.properties & kafka-server-start /usr/local/etc/kafka/server.properties
==> Summary
🍺  /usr/local/Cellar/kafka/2.0.0: 160 files, 46.8MB
Where is installation directory of Kafka : /usr/local/Cellar/kafka


Kafka Producer and Consumer(Command line tool)

Create Kafka topic: Create topic "topic-devinline-1" with replication factor 1 and partition 1
➜  bin pwd
/usr/local/Cellar/kafka/2.0.0/bin
➜  bin sh kafka-topics --create --zookeeper localhost:2181 --replication-factor 1 --partitions 1 --topic topic-devinline-1 
Created topic "topic-devinline-1".

Start producer:
➜  bin kafka-console-producer --broker-list localhost:9092 --topic topic-devinline-1                       
>Hello, Fist message
>Bye, Message
>
Start consumer:
➜  bin kafka-console-consumer --bootstrap-server localhost:9092 --topic  topic-devinline-1 --from-beginning
Hello, Fist message
Bye, Message

Kafka UI tool(Kafka Tool)

An UI tool to analyse and post/consume messages in topic. Download Kafka tool
As we have setup Zookeeper and Kafka locally, we can use following configuration to setup Kafka tool.

Analyse Kafka Topic through UI:
Open Topic "topic-devinline-1" and partition-0. Click green play button and find both message posted earlier.

Post Message from UI tool in Kafka topic:
1. Select Partition-0, Select Data tab and Click + 
2. Post message in text-box and click Add.
3. Click on green-play button and message posted is available in topic.


Note: If you find text box for Key also, provide a key along with message. It can be configured in preferences.
Kafka tool -> Preferences -> topics -> Default content type (Key = No Key)

46 Comments

  1. I thought protecting the website from the hackers is a hectic task. This post makes it easy for the developers and business people to protect the website. Keep sharing posts like this…
    Hire Web Developerc
    Hire Wordpress Programmer
    Hire PHP Developer India
    Mobile App Development India
    Hire Opencart Developer

    ReplyDelete
  2. My friend website has been infected with malware. The tips shared in this post helps me in a better way and guide me to protect my website.
    Hire Dedicated Wordpress Developer
    Smarty Developers
    Hire Dedicated Web Developers
    Hire Dedicated Php Developer
    Hire Dedicated Opencart Developers

    ReplyDelete
  3. A round of applause for your article.Much thanks again. Really Cool. Satta king

    ReplyDelete
  4. Super site! I am Loving it!! Will return once more, I’m taking your food additionally, Thanks. Oregon Business Registry

    ReplyDelete
  5. It is extremely nice to see the greatest details presented in an easy and understanding manner. 먹튀사이트

    ReplyDelete
  6. Mick Youthful is experts in web developers denver in Lincoln and also has a firm called Regional Professions Website Design that are experts in making web sites for neighborhood professions such as plumbing technicians, electrical contractors, painter and also designers, etc.

    ReplyDelete
  7. Hello ! I am a student writing a report on the subject of your post.Your article is an article with all the content and topics. I've ever wanted . Thanks to this, it will be of great help to the report I am preparing now.Thanks for your hard work. And if you have time, please visit my site as well. The site name is 토토커뮤니티.Thank you for this wonderful post! It has long been extremely helpful. 사설토토사이트I wish that you will carry on posting your knowledge with us.Simply unadulterated brilliance from you here. I have never expected something not as much as this from you and 먹튀검증 have not confounded me by any reach out of the inventive vitality. I acknowledge you will keep the quality work going on.


    ReplyDelete
  8. I think about it is most required for making more on this get engaged. 토토사이트

    ReplyDelete
  9. You did a great job writing. I have the same interests, so please bear with me here.먹튀검증

    ReplyDelete
  10. First of all, thank you for your post. 먹튀검증 Your posts are neatly organized with the information I want, so there are plenty of resources to reference. I bookmark this site and will find your posts frequently in the future. Thanks again ^^

    ReplyDelete
  11. Hi there i amm kavin, its my first occasion to commenting anywhere,
    when i read this paragraph i thought i could also
    create comment due to this sensible post. 출장안마

    ReplyDelete
  12. Great job for publishing such a beneficial온라인카지노 web site

    ReplyDelete
  13. Hi there colleagues, its wonderful paragraph on the topic of tutoringand completely explained,
    keep it up all the time.대구오피

    ReplyDelete
  14. It's actually remarkable. I marvel you composed such a great write-up. I'm still delighted. Check out the response of these individuals currently. Every person agrees with me. As an individual that can truly associate, I do not intend to conserve praises. You need to constantly be an author. 바카라사이트

    ReplyDelete
  15. Your ideas inspired me very much. roulette It's amazing. I want to learn your writing skills. In fact, I also have a website. If you are okay, please visit once and leave your opinion. Thank you.


    ReplyDelete
  16. Hello, I am one of the most impressed people in your article. sòng bạc I'm very curious about how you write such a good article. Are you an expert on this subject? I think so. Thank you again for allowing me to read these posts, and have a nice day today. Thank you.


    ReplyDelete
  17. As I am looking at your writing, 온카지노 I regret being unable to do outdoor activities due to Corona 19, and I miss my old daily life. If you also miss the daily life of those days, would you please visit my site once? My site is a site where I post about photos and daily life when I was free.


    ReplyDelete
  18. Nhà cái lừa đảoDec 10, 2021, 7:37:00 PM

    While looking for articles on these topics, I came across this article on the site here. As I read your article, I felt like an expert in this field. I have several articles on these topics posted on my site. Could you please visit my homepage? Nhà cái lừa đảo


    ReplyDelete
  19. Excellent read, I just passed this onto a friend who was doing a little research on that. And he actually bought me lunch as I found it for him smile Therefore let me rephrase that: Thank you for lunch. 룰렛".


    ReplyDelete
  20. With having so much content and articles do you ever run into any issues of plagiarism or copyright violation? My site has a lot of exclusive content I’ve either authored myself or outsourced but it looks like a lot of it is popping it up all over the internet without my agreement. Do you know any ways to help protect against content from being stolen? I’d genuinely appreciate it.

    야설
    대딸방
    횟수 무제한 출장
    스포츠마사지
    바카라사이트

    ReplyDelete
  21. This is very interesting, You’re an excessively skilled bloggerI have joined your rss feed and sit up for in quest of extra of your wonderful post.
    룰렛사이트탑

    ReplyDelete
  22. 토토사이트
    토토


    Hey there! Someone in my Facebook group shared this site with us so I came to look it over.

    I’m definitely enjoying the information. I’m book-marking and will be tweeting this to
    my followers! Fantastic blog and wonderful design and style.

    ReplyDelete
  23. 배트맨토토
    토토사이트


    Greetings! Very useful advice in this particular
    post! It is the little changes which will make the
    most important changes. Thanks for sharing!

    ReplyDelete
  24. 고스톱


    I enjoyed over read your blog post. Your blog have nice information, I got good ideas from this amazing blog. I am always searching like this type blog post.

    ReplyDelete
  25. This is just the information I am finding everywhere. Thanks for your blog, I just subscribe your blog. This is a nice blog. Desawar Satta King

    ReplyDelete
  26. I am really enjoying reading your well written articles. I think you spend numerous effort and time updating your blog.
    Backlinks2022

    ReplyDelete
  27. Sach A Informative Website. Daily Updated Info. Really Like It And Bookmarked It. Visit Daily To Keep Me Update.

    ReplyDelete
  28. I have been looking for articles on these topics for a long time. safetoto I don't know how grateful you are for posting on this topic. Thank you for the numerous articles on this site, I will subscribe to those links in my bookmarks and visit them often. Have a nice day

    ReplyDelete
  29. Maybe the most great piece of Mac operating system X v10.5 Panther, in any case, is Apple's internet browser, Safari. https://macosxtutorial.com

    ReplyDelete
  30. Your time is important to you as a business owner. I value Go Big LA's excellent and efficient use of digital marketing because of this. Without wasting your time or resources, they may assist you in reaching your objectives. Your quest is ended if you are a dentist seeking for internet marketing for dentists. Go Big La is available to provide you with the best options.

    ReplyDelete
  31. what i do not understood is 토디즈

    ReplyDelete
  32. this became a actually proper submit. Taking the time and actual attempt to create a good article… however what can i say… i placed matters off an entire lot and do not manipulate to get almost anything accomplished. 토토시대 먹튀검증

    ReplyDelete
  33. most of anything you say is ask with this. Additionally, the weblog loads very fast for me on chrome. Outstanding weblog ! Amazing work ! That is the form of facts which might be speculated to be shared throughout the net. เพื่อนฟุตบอล

    ReplyDelete
  34. i should explicit way to thisnes excellent, safe, instructional and similarly cool thoughts on the topic to janet. ok토토 먹튀검증사이트

    ReplyDelete
  35. i’m just commenting to make yo all and sundry. 카이소

    ReplyDelete
  36. i nee alent assist. I received’t be reluctant to advocate your web web page to any person who requires route on this situation rely. 카지노군단

    ReplyDelete
  37. There are articles and pictures on these subjects on my homepage, so please visit and share your evaluations. 카지노프렌즈

    ReplyDelete
  38. Clear, concise guide! Thanks for simplifying Kafka setup on Mac. Excited to use Kafka tool for message management. Check our service at Best accounting services in UAE .

    ReplyDelete
  39. Great tutorial! Setting up Kafka and Zookeeper with Homebrew was straightforward thanks to your clear instructions. The step-by-step guide made it easy to follow along, and the troubleshooting tips were especially helpful. Thanks for sharing this valuable resource!

    ReplyDelete
Previous Post Next Post