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.9MBWhere 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.8MBWhere 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 toolAs 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)
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…
ReplyDeleteHire Web Developerc
Hire Wordpress Programmer
Hire PHP Developer India
Mobile App Development India
Hire Opencart Developer
Great Article Artificial Intelligence Projects
DeleteProject Center in Chennai
JavaScript Training in Chennai
JavaScript Training in Chennai
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.
ReplyDeleteHire Dedicated Wordpress Developer
Smarty Developers
Hire Dedicated Web Developers
Hire Dedicated Php Developer
Hire Dedicated Opencart Developers
I appreciate your post. Thanks for sharing
ReplyDeletePython course in delhi
Python course in noida
as
ReplyDeleteIt's a magnificent blog and it was very informative while reading. I look forward to reading more of your blogs. More info please visit:
ReplyDeleteHire Cake Php Developer
Hire Phonegap Developer
Hire Dedicated Laravel Developer
Hire Dedicated Developers
Thankyou for sharing this post.
ReplyDeletepython training institute in south delhi
python training institute in Noida
Thankyou for sharing this informative blog.
ReplyDeletepython training institute in south delhi
python training institute in Noida
Thank you for sharing useful and creative content
ReplyDeleteautocad training institute in Noida
autocad training institute in Delhi
Everything has its value. Thanks for sharing this informative information with us. GOOD works! satta king
ReplyDeleteA round of applause for your article.Much thanks again. Really Cool. Satta king
ReplyDeleteThank you very much for this great post.Lawyers Guns and Money Blog
ReplyDeleteSuper site! I am Loving it!! Will return once more, I’m taking your food additionally, Thanks. Oregon Business Registry
ReplyDeleteVery awesome!!! When I seek for this I found this website at the top of all blogs in search engine. Oregon Business Registry
ReplyDeleteI want to say thanks to you. I have bookmark your site for future updates. Oregon Business Registry
ReplyDeletewow your arctile was very informative and it has solved my many quiries.
ReplyDeletePlease more information on different topic please visit these links given bellow...
Satta Bazar
I truly like you're composing style, incredible data, thankyou for posting. ๋จนํ๊ฒ์ฆ
ReplyDeleteYour blog is so impressive to us. Thanks for sharing this post. Good content delivery.
ReplyDeletedevops culture
java mobile app development
adwords campaign
is web design a good career
seo interview questions and answers
I want to say thanks to you. I have bookmark your site for future updates. ํ ํ ์ฌ์ดํธ
ReplyDeleteIt is extremely nice to see the greatest details presented in an easy and understanding manner. ๋จนํ์ฌ์ดํธ
ReplyDeleteMick 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.
ReplyDeleteI 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! ํ ํ ์ฌ์ดํธ
ReplyDeleteHello. I'm subscribed to your posts. You inspire me a lot.์นด์ง๋ ธ์ฌ์ดํธI am so grateful.
ReplyDeletehttps://www.sattakingup.club
ReplyDeleteI’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. ์์ ๋์ดํฐ
ReplyDeleteWhat 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 ์ฌ์คํ ํ ์ฌ์ดํธ.
ReplyDeleteHello ! 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