Oct 8, 2018

Textual description of firstImageUrl

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)
Location: Bengaluru, Karnataka, India

42 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. It's a magnificent blog and it was very informative while reading. I look forward to reading more of your blogs. More info please visit:

    Hire Cake Php Developer
    Hire Phonegap Developer
    Hire Dedicated Laravel Developer
    Hire Dedicated Developers

    ReplyDelete
  4. Everything has its value. Thanks for sharing this informative information with us. GOOD works! satta king

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

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

    ReplyDelete
  7. Very awesome!!! When I seek for this I found this website at the top of all blogs in search engine. Oregon Business Registry

    ReplyDelete
  8. I want to say thanks to you. I have bookmark your site for future updates. Oregon Business Registry

    ReplyDelete
  9. 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
  10. I truly like you're composing style, incredible data, thankyou for posting. 먹튀검증

    ReplyDelete
  11. I want to say thanks to you. I have bookmark your site for future updates. 토토사이트

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

    ReplyDelete
  13. 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
  14. I am very impressed with your writing I couldn't think of this, but it's amazing! I wrote several posts similar to this one, but please come and see! 토토사이트

    ReplyDelete
  15. Hello. I'm subscribed to your posts. You inspire me a lot.카지노사이트I am so grateful.

    ReplyDelete
  16. I’m not sure exactly why but this weblog is loading incredibly slow for me. Is anyone else having this problem or is it a problem on my end? I’ll check back later on and see if the problem still exists. 안전놀이터

    ReplyDelete
  17. What an interesting story! I'm glad I finally found what I was looking for Excellent reading 안전놀이터, I read a lot of posts but I am really impressed with your post. Thanks sir, I will look into this article. To know about me, try talking to 사설토토사이트.

    ReplyDelete
  18. 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
  19. 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
  20. I think about it is most required for making more on this get engaged. 토토사이트

    ReplyDelete
  21. This article is very interesting information. It has helped me a lot. Thank you very much for providing this quality information in an easy-to-understand manner. Our site also provides high-quality information, so it will be helpful for your site. 먹튀검증

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

    ReplyDelete
  23. 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
  24. best site for satta king result, leak number all game record charts. We provide 100% fix number.

    ReplyDelete
  25. 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
  26. You did a great job writing. I have the same interests, so please bear with me here.먹튀검증

    ReplyDelete
  27. 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
  28. 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
  29. Looking at this article, I miss the time when I didn't wear a mask. 먹튀검증업체 Hopefully this corona will end soon. My blog is a blog that mainly posts pictures of daily life before Corona and landscapes at that time. If you want to remember that time again, please visit us.

    ReplyDelete
  30. I needed several examples to write an article on this subject, and your article was of great help to me.바카라사이트

    ReplyDelete
  31. I’m not sure exactly why but this weblog is loading incredibly slow for me. Is anyone else having this problem or is it a problem on my end? I’ll check back later on and see if the problem still exists. 안전놀이터순위

    ReplyDelete
  32. Nice post love it check my site for fast Satta King we provide superfast and all time result Satta King

    ReplyDelete