Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-9343

Add ps command for Kafka and zookeeper process on z/OS.

    XMLWordPrintableJSON

    Details

    • Type: Task
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.4.0
    • Fix Version/s: 2.5.0, 2.6.0, 2.4.2
    • Component/s: tools
    • Labels:
    • Environment:
      z/OS, OS/390

      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

            Activity

              People

              • Assignee:
                zshuo Shuo Zhang
                Reporter:
                zshuo Shuo Zhang
                Reviewer:
                Mickael Maison
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 168h
                  168h
                  Remaining:
                  Remaining Estimate - 168h
                  168h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified