After upgrading from Strategy 2021 to Strategy 2021 Update 2, Kafka and ZooKeeper cannot be started.
[mstr@env-258226laiouse1 initd_scripts]$ ./kafka-zookeeper start Kafka service is stopped Zookeeper service is stopped
[mstr@env-258226laiouse1 logs]$ cat kafkaServer.out nohup: failed to run command 'java': No such file or directory [mstr@env-258226laiouse1 logs]$
In Strategy 2021 Update 1, the
JAVA_HOMEpath in
kafka-run-class.shis missing. This prevents Apache Kafka and ZooKeeper from starting.
<install_path>/MessagingServices/Kafka/kafka_2.13-2.7.0/bin
kafka-run-class.shfile.
[mstr@tec-l-1008315 bin]$ vi kafka-run-class.sh
JAVA_HOME="<install_path>/_jre"

<install_path>/initd_scripts/
[mstr@tec-l-1008315 ~]$ cd /var/opt/Strategy/install/initd_scripts/ [mstr@tec-l-1008315 initd_scripts]$ ./kafka-zookeeper start Kafka service running with PID = 15701 Zookeeper service running with PID = 94746 [mstr@tec-l-1008315 initd_scripts]$