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)

63 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. wow your arctile was very informative and it has solved my many quiries.
    Please more information on different topic please visit these links given bellow...
    Satta Bazar

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

    ReplyDelete
  7. 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
  8. Hello. I'm subscribed to your posts. You inspire me a lot.카지노사이트I am so grateful.

    ReplyDelete
  9. 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
  10. Great post! I am actually getting ready to across this information, is very helpful my friend. Also great blog here with all of the valuable information you have. Keep up the good work you are doing here. 토토사이트

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

    ReplyDelete
  12. It's perfect.카지노사이트Can you look at your writing and bear with me?

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

    ReplyDelete
  14. must say this blog loads a lot faster then 먹튀검증.Can you suggest a good web hosting provider at a reasonableprice? Thank you, I appreciate it!

    ReplyDelete
  15. 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
  16. I've been looking for photos and articles on this topic over the past few days due to a school assignment, and I'm really happy to find a post with the material I was looking for! I bookmark and will come often! Thanks :D 먹튀신고

    ReplyDelete
  17. 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
  18. Nice post love it check my site for fast Satta King we provide superfast and all time result SattaKing also check सट्टा किंग and Satta matka

    ReplyDelete
  19. best site for satta king result, leak number all game record charts. We provide 100% fix number direct from Satta king gali company which includes all famous games like Satta king Desawar, Gali Satta, Ghaziabad, Faridabad, Shri Ganesh Satta, Taj Satta King, charminar and other games of Satta Market Matka is also a simple game and essentially is a form of old lottery games. Ratan Khatri was the founder of this game in the 70 century and was become popular up until the 90 century. The game is not played that much anymore mostly in the regions of North India and Pakistan. Instead, many enjoy the lottery games Satta king result more so these days.

    Here is an example card. satta-king.online is the no1 satta king site where you can get the fastest Satta result, Satta king leak number (confirm jodi), Old Satta King ghaziabad, Daily leak Jodi, Desawar Jodi, Satta king faridabad, Satta record chart, Satta king taj, Gali Satta result, Ghaziabad Satta Result, Satta Bazar result and 100% passing fix Jodi today.

    ReplyDelete
  20. Oh, the data you've shared in this incredible article is just magnificent. I am definitely going to make more use of this data in my future projects. You must continue sharing more data like this with us. 메이저사설놀이터

    ReplyDelete
  21. Your writing is perfect and complete. Kèo hay However, I think it will be more wonderful if your post includes additional topics that I am thinking of. I have a lot of posts on my site similar to your topic. Would you like to visit once?

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

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

    ReplyDelete
  24. Pretty nice post. I just stumbled upon your weblog and wanted to say that I have really enjoyed browsing your blog posts. After all I’ll be subscribing to your feed and I hope you write again soon 먹튀검증업체 I would like to write an article based on your article. When can I ask for a review?!

    ReplyDelete
  25. Thanks , I’ve just been looking for info about this subject for a long time and yours is the best I have found out till now. But, what in regards to the bottom line? Are you certain in regards to the source? keonhacái

    ReplyDelete
  26. 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
  27. 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
  28. 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
  29. In my opinion, the item you posted is perfect for being selected as the best item of the year. You seem to be a genius to combine 먹튀사이트 and . Please think of more new items in the future!

    ReplyDelete
  30. 메이저사이트순위Dec 7, 2021, 8:50:00 PM

    Hi there, I simply hopped over in your website by way of StumbleUpon. Now not one thing I’d typically learn, but I favored your emotions none the less. Thank you for making something worth reading. 메이저사이트순위

    ReplyDelete
  31. 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
  32. 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
  33. From one day, I noticed that many people post a lot of articles related to 온라인슬롯. Among them, I think your article is the best among them!!I

    ReplyDelete
  34. 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
  35. You made some good points there. I did a Google search about the topic and found most people will believe your blog. 먹튀검증

    ReplyDelete
  36. Traditional bookstores have always existed on high streets, but in the digital age, the internet is proving to become a serious competitor to traditional brick and mortar stores. This article examines both sides of the coin and provides an appropriate insight into the phenomenon of shopping of books online. 메이저사이트추천

    ReplyDelete
  37. 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
  38. 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
  39. I've been searching for hours on this topic and finally found your post. 슬롯사이트 , I have read your post and I am very impressed. We prefer your opinion and will visit this site frequently to refer to your opinion. When would you like to visit my site?

    ReplyDelete
  40. 토토사이트
    토토


    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
  41. 배트맨토토
    토토사이트


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

    ReplyDelete
  42. 고스톱


    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
  43. ที่สุดแห่งบาคาร่าออนไลน์ biobetgaming บริการตลอด 24 ชั่วโมง บริการด้านเกมคาสิโนหลากหลายเช่น บาคาร่าออนไลน์ รูเร็ท แบล็คแจ็ค เสือมังกร ไฮโล และอื่นๆอีกมากมาย ที่มาพร้อมกับโปรโมชั่นโดนใจเน้นๆ ที่นี่ที่ เว็บบาคาร่า

    ReplyDelete
  44. Hi there, I simply hopped over in your website by way of StumbleUpon. Now not one thing I’d typically learn, but I favored your emotions none the less. Thank you for making something worth reading. 메이저사이트순위

    ReplyDelete
  45. 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
  46. I am really enjoying reading your well written articles. I think you spend numerous effort and time updating your blog.
    Backlinks2022

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

    ReplyDelete
  48. 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
  49. 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
  50. 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
  51. what i do not understood is 토디즈

    ReplyDelete
  52. 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
  53. 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
  54. i should explicit way to thisnes excellent, safe, instructional and similarly cool thoughts on the topic to janet. ok토토 먹튀검증사이트

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

    ReplyDelete
  56. 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
  57. There are articles and pictures on these subjects on my homepage, so please visit and share your evaluations. 카지노프렌즈

    ReplyDelete
Previous Post Next Post