Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 93D27200CBD for ; Wed, 21 Jun 2017 23:28:05 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 92EA5160BF7; Wed, 21 Jun 2017 21:28:05 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id D62FF160BD5 for ; Wed, 21 Jun 2017 23:28:04 +0200 (CEST) Received: (qmail 90027 invoked by uid 500); 21 Jun 2017 21:28:04 -0000 Mailing-List: contact jira-help@kafka.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jira@kafka.apache.org Delivered-To: mailing list jira@kafka.apache.org Received: (qmail 89749 invoked by uid 99); 21 Jun 2017 21:28:04 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Jun 2017 21:28:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 8AEBEC00A9 for ; Wed, 21 Jun 2017 21:28:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -100.002 X-Spam-Level: X-Spam-Status: No, score=-100.002 tagged_above=-999 required=6.31 tests=[RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id jtIzuw6hKq5f for ; Wed, 21 Jun 2017 21:28:02 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 5DEB55FDCE for ; Wed, 21 Jun 2017 21:28:02 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id CDC2CE0BB3 for ; Wed, 21 Jun 2017 21:28:01 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 130B2240B8 for ; Wed, 21 Jun 2017 21:28:01 +0000 (UTC) Date: Wed, 21 Jun 2017 21:28:01 +0000 (UTC) From: "Tom Bentley (JIRA)" To: jira@kafka.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (KAFKA-4931) stop script fails due 4096 ps output limit MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 21 Jun 2017 21:28:05 -0000 [ https://issues.apache.org/jira/browse/KAFKA-4931?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Tom Bentley updated KAFKA-4931: ------------------------------- Labels: patch-available (was: ) > stop script fails due 4096 ps output limit > ------------------------------------------ > > Key: KAFKA-4931 > URL: https://issues.apache.org/jira/browse/KAFKA-4931 > Project: Kafka > Issue Type: Bug > Components: tools > Affects Versions: 0.10.2.0 > Reporter: Amit Jain > Priority: Minor > Labels: patch-available > > 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}') -- This message was sent by Atlassian JIRA (v6.4.14#64029)