Details
Description
Note: since the final change scope changed, I changed the summary and description.
The existing method to check Kafka process for other platform doesn't applicable for z/OS, on z/OS, the best keyword we can use is the JOBNAME.
PIDS=$(ps ax | grep -i 'kafka\.Kafka' | grep java | grep -v grep | awk '{print $1}')
-->
PIDS=$(ps -A -o pid,jobname,comm | grep -i $JOBNAME | grep java | grep -v grep | awk '{print $1}')
So does the zookeeper process.
Attachments
Issue Links
- links to