Installing Apache Kafka on the Services node

Apache Kafka is used with IBM® Streams. You must download and install Apache Kafka on the services node.

For information about using Apache Kafka, see the Kafka documentation (https://kafka.apache.org/quickstart).

Procedure

  1. Go to the Apache Kafka download page (https://www.apache.org/dyn/closer.cgi?path=/kafka/0.10.0.1/kafka_2.11-0.10.0.1.tgz).
  2. Click one of the links to download the software.
  3. In the download directory, decompress the file to the /opt directory.
    For example, enter tar xvf kafka_2.11-0.10.0.1.tgz -C /opt
  4. Set the JAVA_HOME environment variable to point to OpenJDK Java™.

    export JAVA_HOME=/usr/jdk64/java-1.8.0-openjdk-1.8.0.77-0.b03.el7_2.x86_64/jre

  5. Set the PATH environment variable to include the OpenJDK Java bin directory.

    export PATH=/usr/jdk64/java-1.8.0-openjdk-1.8.0.77-0.b03.el7_2.x86_64/jre/bin:$PATH