zookeeper-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Akihiro Suda" <suda.akih...@lab.ntt.co.jp>
Subject RE: Re: [ZK]Why zoo.cfg does not support env variable?
Date Mon, 09 Nov 2015 04:50:14 GMT
How about using eRuby?

e.g. 
  datadir=<%= ENV['ZOOKEEPER_HOME'] %>/data



-----Original Message-----
From: 王运来 [mailto:hnwyllmm@126.com] 
Sent: Monday, November 09, 2015 1:30 PM
To: user@zookeeper.apache.org
Subject: 回复:Re: [ZK]Why zoo.cfg does not support env variable?


When I config `dataDir' like this $ZOOKEEPER_HOME/data, ZK will make a new
directory in current directory which I start the ZK(zkServer.sh start).
But what I mean is ~/home/zookeeper-3.4.6xxx/data not a new directory.
Maybe it can be handled by other method but I have no idea.








在 2015-11-09 10:46:14,"Raúl Gutiérrez Segalés" <rgs@itevenworks.net> 写
道:
>On Nov 8, 2015 6:36 PM, "王运来" <hnwyllmm@126.com> wrote:
>>
>>
>> WHY? I think it is cheap and very useful.
>
>What's the use case? Feel free to open a JIRA for it.
>
>-rgs




Mime
View raw message