I have added Kafka service to my Cloudera cluster and when i try to start it it fails with the following error
Exception in thread "main" java.lang.UnsupportedClassVersionError: org/apache/kafka/common/utils/KafkaThread : Unsupported major.minor version 52.0
Which i understand is due to different java version and Kafka requires 1.8 while cloudera Quickstart has built in 1.7. I have installed 1.8 but my cloudera is still picking up the 1.7 version. I have updated JAVA_HOME and path veriables Also updated .profile and .bashrc files.
Java --version on my terminal shows following output.
[root@quickstart default]# java -version
java version "1.8.0_231"
Java(TM) SE Runtime Environment (build 1.8.0_231-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.231-b11, mixed mode)
but when i try to start the Kafka from cloudera Manager it shows following error. Kindly help.