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

stop script fails due 4096 ps output limit

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Patch Available
    • Minor
    • Resolution: Unresolved
    • 0.10.2.0
    • None
    • tools

    Description

      When run the script: bin/zookeeper-server-stop.sh fails to stop the zookeeper server process if the ps output exceeds 4096 character limit of linux. I think instead of ps we can use ${JAVA_HOME}/bin/jps -vl | grep QuorumPeerMain it would correctly stop zookeeper process. Currently we are using kill

      PIDS=$(ps ax | grep java | grep -i QuorumPeerMain | grep -v grep | awk '

      {print $1}

      ')

      Attachments

        Issue Links

          Activity

            People

              tombentley Tom Bentley
              amit5094 Amit Jain
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated: