You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@zookeeper.apache.org by 王运来 <hn...@126.com> on 2015/11/09 03:35:10 UTC
[ZK]Why zoo.cfg does not support env variable?
WHY? I think it is cheap and very useful.
Re:RE: RE: Re: [ZK]Why zoo.cfg does not support env variable?
Posted by 王运来 <hn...@126.com>.
yeah, ok, I got you. thank you again!
在 2015-11-09 15:50:19,"Akihiro Suda" <su...@lab.ntt.co.jp> 写道:
>Sorry for confusing.
>eRuby works *outside* of ZooKeeper.
>So you don't have to care about the ZooKeeper version.
>
>The instruction is:
>
> $ vi zoo.cfg.erb
> $ ZOOKEEPER_HOME=~/zookeeper-3.4.6xxx eruby zoo.cfg.erb > zoo.cfg
> $ zkServer.sh start
>
>
>
>-----Original Message-----
>From: 王运来 [mailto:hnwyllmm@126.com]
>Sent: Monday, November 09, 2015 2:51 PM
>To: user@zookeeper.apache.org
>Subject: 回复:RE: Re: [ZK]Why zoo.cfg does not support env variable?
>
>haha, it doesn't work. maybe it was not support in version 3.4.6.
>I will write the full path in config file.
>thank you very much.
>
>
>
>
>
>
>
>
>在 2015-11-09 12:50:14,"Akihiro Suda" <su...@lab.ntt.co.jp> 写道:
>>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" <rg...@itevenworks.net>
>写
>>道:
>>>On Nov 8, 2015 6:36 PM, "王运来" <hn...@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
>>
>>
>>
>
>
RE: RE: Re: [ZK]Why zoo.cfg does not support env variable?
Posted by Akihiro Suda <su...@lab.ntt.co.jp>.
Sorry for confusing.
eRuby works *outside* of ZooKeeper.
So you don't have to care about the ZooKeeper version.
The instruction is:
$ vi zoo.cfg.erb
$ ZOOKEEPER_HOME=~/zookeeper-3.4.6xxx eruby zoo.cfg.erb > zoo.cfg
$ zkServer.sh start
-----Original Message-----
From: 王运来 [mailto:hnwyllmm@126.com]
Sent: Monday, November 09, 2015 2:51 PM
To: user@zookeeper.apache.org
Subject: 回复:RE: Re: [ZK]Why zoo.cfg does not support env variable?
haha, it doesn't work. maybe it was not support in version 3.4.6.
I will write the full path in config file.
thank you very much.
在 2015-11-09 12:50:14,"Akihiro Suda" <su...@lab.ntt.co.jp> 写道:
>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" <rg...@itevenworks.net>
写
>道:
>>On Nov 8, 2015 6:36 PM, "王运来" <hn...@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
>
>
>
回复:RE: Re: [ZK]Why zoo.cfg does not support env variable?
Posted by 王运来 <hn...@126.com>.
haha, it doesn't work. maybe it was not support in version 3.4.6.
I will write the full path in config file.
thank you very much.
在 2015-11-09 12:50:14,"Akihiro Suda" <su...@lab.ntt.co.jp> 写道:
>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" <rg...@itevenworks.net> 写
>道:
>>On Nov 8, 2015 6:36 PM, "王运来" <hn...@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
>
>
>
RE: Re: [ZK]Why zoo.cfg does not support env variable?
Posted by Akihiro Suda <su...@lab.ntt.co.jp>.
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" <rg...@itevenworks.net> 写
道:
>On Nov 8, 2015 6:36 PM, "王运来" <hn...@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
回复:Re: [ZK]Why zoo.cfg does not support env variable?
Posted by 王运来 <hn...@126.com>.
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" <rg...@itevenworks.net> 写道:
>On Nov 8, 2015 6:36 PM, "王运来" <hn...@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
Re: [ZK]Why zoo.cfg does not support env variable?
Posted by Raúl Gutiérrez Segalés <rg...@itevenworks.net>.
On Nov 8, 2015 6:36 PM, "王运来" <hn...@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