EducationSoftwareStrategy.com
StrategyCommunity

Knowledge Base

Product

Community

Knowledge Base

TopicsBrowse ArticlesDeveloper Zone

Product

Download SoftwareProduct DocumentationSecurity Hub

Education

Tutorial VideosSolution GalleryEducation courses

Community

GuidelinesGrandmastersEvents
x_social-icon_white.svglinkedin_social-icon_white.svg
Strategy logoCommunity

© Strategy Inc. All Rights Reserved.

LegalTerms of UsePrivacy Policy
  1. Home
  2. Topics

KB486886: Apache Kafka service cannot be started due to missing log directory in MicroStrategy 2021 Update 9


Mengran (Molly) Wang

Senior Cloud Support Engineer III • MicroStrategy


When Platform Analytics cannot be started, it shows "FAIL" for Kafka cluster component in Health Check Summary. Further checking kafka server.log, it is due to log path directory cannot be found. After creating the according log path, kafka service is up and running and therefore Platform Analytics is started.

Symptom

1. When Platform Analytics cannot be started, it shows  "FAIL" for Kafka cluster component in Health Check Summary.

ka0PW0000002fjpYAA_0EMPW000008LpVx.jpeg

2024-07-10 01:14:04,683 ERROR KafkaHealthCheck:87 - Failed to connect to above IP/Port: Unable to connect to Kafka at 0:0:0:0:0:0:0:1, on Port: 9092. Please contact your network administrator to open this IP/Port
2. Executing below command returned nothing, meaning Kafka service is not running:
ps ax | grep -i 'kafka\.Kafka' | grep java | grep -v grep | awk '{print $1}'
3. Start Kafka manually with below command under <Strategy_INSTALL_DIRECTORY>/MessagingServices/Kafka/kafka*/bin directory: 
./kafka-server-start.sh -daemon ../config/server.properties
It cannot be started - turned to shut down status shrotly.
4. Check kafka server.log, there is below error:
"Failed to create or validate data directory /opt/MicroStrategy/MessagingServices/Kafka/tmp/kafka-logs"

ka0PW0000002fjpYAA_0EMPW000008LqTd.jpeg

Cause

The kafka server cannot be started due to log directory not found, though root user is being used to start the service.

Solution

1. Create the log directory as referenced in the log:
/opt/MicroStrategy/MessagingServices/Kafka/tmp/kafka-logs
2. Start kafka
3. Start PA consumer service
 

THIRD PARTY SOFTWARE INSTALLATION WARNING:

The third-party product(s) discussed in this technical note is manufactured by vendors independent of Strategy. Strategy makes no warranty, express, implied or otherwise, regarding this product, including its performance or reliability.


Comment

0 comments

Details

Knowledge Article

Published:

November 27, 2024

Last Updated:

November 27, 2024