Return-Path: X-Original-To: apmail-zookeeper-dev-archive@www.apache.org Delivered-To: apmail-zookeeper-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A7C7B177FD for ; Fri, 1 May 2015 05:57:06 +0000 (UTC) Received: (qmail 32623 invoked by uid 500); 1 May 2015 05:57:06 -0000 Delivered-To: apmail-zookeeper-dev-archive@zookeeper.apache.org Received: (qmail 32576 invoked by uid 500); 1 May 2015 05:57:06 -0000 Mailing-List: contact dev-help@zookeeper.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@zookeeper.apache.org Delivered-To: mailing list dev@zookeeper.apache.org Received: (qmail 32564 invoked by uid 99); 1 May 2015 05:57:06 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 May 2015 05:57:06 +0000 Date: Fri, 1 May 2015 05:57:06 +0000 (UTC) From: "Chris Nauroth (JIRA)" To: dev@zookeeper.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (ZOOKEEPER-2042) zkServer.sh does not work properly on Solaris MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/ZOOKEEPER-2042?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14522805#comment-14522805 ] Chris Nauroth commented on ZOOKEEPER-2042: ------------------------------------------ [~jlindwall], thank you for filing the bug report. I'm going to resolve this as a duplicate of ZOOKEEPER-1927. I've added you as a watcher on that issue so that you'll continue to get status updates. I'll post a patch on that issue shortly. > zkServer.sh does not work properly on Solaris > --------------------------------------------- > > Key: ZOOKEEPER-2042 > URL: https://issues.apache.org/jira/browse/ZOOKEEPER-2042 > Project: ZooKeeper > Issue Type: Bug > Components: scripts > Affects Versions: 3.4.6 > Environment: Solaris 5.11 > Reporter: John Lindwall > Priority: Minor > > There are two issues in the zkServer.sh script that make it not work properly out of the box on Solaris. > 1. The bin/zkServer.sh script uses plain "echo" in all instances but one: when writing the pid to the pid file. In that instance it uses "/bin/echo". > The "/bin/echo" command on Solaris does not understand the "-n" parameter and interprets it as a literal string, so the "-n" gets written into the pid file along with the pid. This causes the "stop" command to fail. > 2. The /bin/grep command in Solaris does not understand special character classes like "[[:space:]]". You must use the alternate posix version of grep as found in /usr/xpg4/bin/grep for this to work. If the script cannot be made completely generic then at least we should document the need to use the posix grep implementation on Solaris. -- This message was sent by Atlassian JIRA (v6.3.4#6332)