2. Install Kafka, Zookeeper & Kafka Manager (GUI) - stm29/Kafka GitHub Wiki
Kafka Instalation
- Pre-requisite - Java Needs to be installed in your Machine
- Download Latest version of Kafka from here
- Kafka has config file called
server.properties & Zookeeper has config called zookeeper.properties
- Following changes need to be done on
server.properties file
advertised.listeners=PLAINTEXT://[server-ip-address]:9092
zookeeper.connect=localhost:2181
- Start Zookeeper First By using the following command
bin/zookeeper-server-start.sh config/zookeeper.properties
- After It is started successfully, Now start Kafka on other terminal using the following command
JMX_PORT=8004 bin/kafka-server-start.sh config/server.properties
- Once KAFKA is successfully ran you can see log file in last line of shell where ZOOKEEPER is opened
Install Kafka Manager - Graphical User Interface
- Download CMAK from this github repo
- Move inside CMAK using
cd CMAK , and then run ./sbt clean dist , before running you can confirm sbt file is there after cloning the repo
- You can confirm successful code execution by checking
target directory is created or not
- In
CMAK/target/universal location you can find tar file named cmak-3.0.0.5.zip
- Unzip it
- In
cmak-3.0.0.5/conf you can find application.conf , there change the following cmak.zkhosts=“zookeeper-host:2181" --> cmak.zkhosts=18.217.146.97:2181
- Starting Kafka manager - Now move to
cmak-3.0.0.5 directory and run bin/cmak -Dconfig.file=conf/application.conf -Dhttp.port=8080
- In Browser check
http://IP:8080