You need to follow the pre-install steps to install Kafka.

Procedure

  1. Stop firewall on all 3 nodes or open ports 2181, 3181, 4181 and 9092 on all 3 nodes.
  2. Check for java 1.8. If not installed, install java 1.8:
    yum install -y java-1.8.0-openjdk.x86_64
  3. Download Kafka 2.0.0 from https://archive.apache.org/dist/kafka/2.0.0/kafka_2.11-2.0., to any directory (for example /root or /opt)
  4. Run below command to untar and deploy Kafka:
    tar -xvf kafka_2.11-2.0.0.tgz