[ 
https://issues.apache.org/jira/browse/KAFKA-9343?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Shuo Zhang updated KAFKA-9343:
------------------------------
    Fix Version/s:     (was: 2.6.0)
                   2.5.0
      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.

  was:To make Kafka runnable on z/OS, I need some changes to the shell script 
and java/scala files, to 

          Summary: Add ps command for Kafka and zookeeper process on z/OS.  
(was: Make Kafka shell runnable on z/OS)

> Add ps command for Kafka and zookeeper process on z/OS.
> -------------------------------------------------------
>
>                 Key: KAFKA-9343
>                 URL: https://issues.apache.org/jira/browse/KAFKA-9343
>             Project: Kafka
>          Issue Type: Task
>          Components: tools
>    Affects Versions: 2.4.0
>         Environment: z/OS, OS/390
>            Reporter: Shuo Zhang
>            Priority: Major
>              Labels: OS/390, z/OS
>             Fix For: 2.5.0
>
>   Original Estimate: 168h
>  Remaining Estimate: 168h
>
> +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.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to