Skip to content

Kafka process is not correctly identified in init.d script #31

@jpwmeta

Description

@jpwmeta

In the /etc/init.d/kafka script, the findPid() function uses java class to identify the kafka process:

CLASS=kafka.Kafka
findPid() {
  FOUND_PID=`pgrep -u $USER -f $CLASS`
}

However, the java class listed in the command line for the kafka process is:

io.confluent.support.metrics.SupportedKafka

This prevents service commands for kafka from functioning properly. Modifying the class name in the init.d script resolves this issue.

Issue identified on confluent version 4.1.1. Have not tested on other versions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions