Kafka requires Java 8 for running. And hence, this is the first step that we should do to install Kafka.