You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zookeeper.apache.org by "metatech (JIRA)" <ji...@apache.org> on 2014/11/12 13:10:33 UTC
[jira] [Created] (ZOOKEEPER-2078) zkServer.sh uses pattern
unsupported by "grep" on Solaris
metatech created ZOOKEEPER-2078:
-----------------------------------
Summary: zkServer.sh uses pattern unsupported by "grep" on Solaris
Key: ZOOKEEPER-2078
URL: https://issues.apache.org/jira/browse/ZOOKEEPER-2078
Project: ZooKeeper
Issue Type: Bug
Components: scripts
Affects Versions: 3.4.5
Environment: Solaris 11
Reporter: metatech
Priority: Minor
The script "zkServer.sh" contains a pattern which is not supported by "grep" on Solaris (both versions 10 and 11).
{code}
ZOO_DATADIR="$(grep "^[[:space:]]*dataDir" "$ZOOCFG" | sed -e 's/.*=//')"
{code}
This results into the environment variable being set with an empty value, which later gives the following error :
{code}
Starting zookeeper ... bin/zkServer.sh: line 114: /zookeeper_server.pid: Permission denied
{code}
The workaround is to simplify the pattern used by "grep" :
{code}
ZOO_DATADIR="$(grep "^dataDir" "$ZOOCFG" | sed -e 's/.*=//')"
{code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)