Set up Kafka broker on any server of your choice.
About this task
Follow these steps to create a Kafka topic that is to be used for integrating with IBM® Operations Analytics - Predictive Insights.
Procedure
-
Download and extract Kafka V2.8.x from here:
-
Start the ZooKeeper server by using the following command:
bin/zookeeper-server-start.sh config/zookeeper.properties
-
Start the Kafka server by using the following command:
bin/kafka-server-start.sh config/server.properties
-
List the available Kafka topics that are created by using the following command:
Note: Run this command after the topic is created.
For
example,
bin/kafka-topics.sh --list --zookeeper localhost:2181
pi_metrics_tncp
-
See the output messages that are written to the Kafka topic by using the following
command:
Note: Run this command after the topic is created.
bin/kafka-console-consumer.sh --bootstrap-server localhost:9092 --topic pi_metrics_tncp