Note: All installations are subject to your legal use of the software installed, according to each software’s license terms.
K2View will not be liable for any unauthorized, unlicensed or unallowed use (“Prohibited Use”) of the software by you or for any damages caused to you or any third party as a result of the Prohibited Use.
Download the latest Zookeeper version from https://zookeeper.apache.org/releases.html. For example apache-zookeeper-3.6.1-bin.tar.gz.
Copy the Zookeeper zip file to your local directory. For example C:\k2view, and extract the zip file.
Go to the conf sub-directory under the Zookeeper directory. For example C:\k2view\apache-zookeeper-3.6.1-bin\conf directory.
Rename the zoo_sample.cfg file to zoo.cfg.
Open the zoo.cfg file for editing in any text editor like Notepad++. Find dataDir=/tmp/zookeeper and replace the /tmp/zookeeper with the Zookeeper data directory. For example dataDir=C:\k2view\apache-zookeeper-3.6.1-bin\data.
(Optional) Modify the default Zookeeper port (2181) in the zoo.cfg file.
Open the System Properties of your Windows environment and edit the Environment Variables:
Add the ZOOKEEPER_HOME environment variable and populate it using the Zookeeper directory. For example: ZOOKEEPER_HOME = C:\k2view\apache-zookeeper-3.6.1-bin\.
Edit the Path environmentvariable and add ;%ZOOKEEPER_HOME%\bin;
To run ZooKeeper, open a new cmd window from the Zookeeper directory and type zkserver.
Download the latest Kafka version from http://kafka.apache.org/downloads.html. For example kafka_2.12-2.5.0.tgz.
Copy the Kafka zip file to to your local directory, for example: C:\k2view, and extract the zip file.
Go to the config sub-directory under the Kafka directory, for example: C:\K2View\kafka_2.12-2.5.0\config.
Open the server.properties file for editing. Find and edit the log.dirs=/tmp/kafka-logs line and replace the /tmp/kafka-logs with [Kafka local directory]\data. For example log.dir= C:\K2View\kafka_2.12-2.5.0\data.
Start Kafka, open a new cmd window from the Kafka directory and run the following command in the cmd window: .\bin\windows\kafka-server-start.bat .\config\server.properties
Open a cmd window from the [Kafka directory]\bin\windows directory. For example C:\K2View\kafka_2.12-2.5.0\bin\windows.
Run the following command in the cmd window to start a producer type: kafka-console-producer.bat --broker-list localhost:9092 --topic test.
Open a new cmd window in the same location again and run the following command in the cmd window to start a consumer: kafka-console-consumer.bat --bootstrap-server localhost:9092 --topic test
Notes:
Please follow the instructions in the following link: https://www.elastic.co/guide/en/elasticsearch/reference/current/zip-windows.html.
Note: All installations are subject to your legal use of the software installed, according to each software’s license terms.
K2View will not be liable for any unauthorized, unlicensed or unallowed use (“Prohibited Use”) of the software by you or for any damages caused to you or any third party as a result of the Prohibited Use.
Download the latest Zookeeper version from https://zookeeper.apache.org/releases.html. For example apache-zookeeper-3.6.1-bin.tar.gz.
Copy the Zookeeper zip file to your local directory. For example C:\k2view, and extract the zip file.
Go to the conf sub-directory under the Zookeeper directory. For example C:\k2view\apache-zookeeper-3.6.1-bin\conf directory.
Rename the zoo_sample.cfg file to zoo.cfg.
Open the zoo.cfg file for editing in any text editor like Notepad++. Find dataDir=/tmp/zookeeper and replace the /tmp/zookeeper with the Zookeeper data directory. For example dataDir=C:\k2view\apache-zookeeper-3.6.1-bin\data.
(Optional) Modify the default Zookeeper port (2181) in the zoo.cfg file.
Open the System Properties of your Windows environment and edit the Environment Variables:
Add the ZOOKEEPER_HOME environment variable and populate it using the Zookeeper directory. For example: ZOOKEEPER_HOME = C:\k2view\apache-zookeeper-3.6.1-bin\.
Edit the Path environmentvariable and add ;%ZOOKEEPER_HOME%\bin;
To run ZooKeeper, open a new cmd window from the Zookeeper directory and type zkserver.
Download the latest Kafka version from http://kafka.apache.org/downloads.html. For example kafka_2.12-2.5.0.tgz.
Copy the Kafka zip file to to your local directory, for example: C:\k2view, and extract the zip file.
Go to the config sub-directory under the Kafka directory, for example: C:\K2View\kafka_2.12-2.5.0\config.
Open the server.properties file for editing. Find and edit the log.dirs=/tmp/kafka-logs line and replace the /tmp/kafka-logs with [Kafka local directory]\data. For example log.dir= C:\K2View\kafka_2.12-2.5.0\data.
Start Kafka, open a new cmd window from the Kafka directory and run the following command in the cmd window: .\bin\windows\kafka-server-start.bat .\config\server.properties
Open a cmd window from the [Kafka directory]\bin\windows directory. For example C:\K2View\kafka_2.12-2.5.0\bin\windows.
Run the following command in the cmd window to start a producer type: kafka-console-producer.bat --broker-list localhost:9092 --topic test.
Open a new cmd window in the same location again and run the following command in the cmd window to start a consumer: kafka-console-consumer.bat --bootstrap-server localhost:9092 --topic test
Notes:
Please follow the instructions in the following link: https://www.elastic.co/guide/en/elasticsearch/reference/current/zip-windows.html.