Setting up external Kafka broker

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

  1. Download and extract Kafka V2.8.x from here:
  2. Start the ZooKeeper server by using the following command:
    bin/zookeeper-server-start.sh config/zookeeper.properties
  3. Start the Kafka server by using the following command:
    bin/kafka-server-start.sh config/server.properties
  4. 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
  5. 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