When a generic Java instance is not available, both the Kafka and Zookeeper services fail to launch, returning an error ‘
exec: java: not found’.


Without being able to launch Messaging Services, this also can lead to the Platform Analytics Consumer being unable to pass its health check.
The
kafka-run-class.shscript that is used in launching the two services is missing the declaration of the
JAVA_HOMEvariable. Without the
JAVA_HOMEvariable pointing to the Java instance that is provided with the Strategy installation, the services will attempt to use Java from the User path variable.
To resolve the issue, the J
AVA_HOMEvariable can be declared at the top of the
kafka-run-class.shfile after the
!/bin/bashdeclaration. The
kafka-run-class.shis located at
<install>
/MessagingServices/Kafka/kafka_2.13-2.7.0/bin/kafka-run-class.sh.
<instal.>/_jrepath.
/opt/MicroStrategy/, the variable would be set as
JAVA_HOME="/opt/MicroStrategy/_jre".
