Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Plain View
Zookeeper >> mail # user >> zoo.cfg Server ID


+
Jordan Zimmerman 2012-01-04, 19:38
Copy link to this message
-
Re: zoo.cfg Server ID
Hi Jordan,
 From admin guide:

The myid file consists of a single line containing only the text of
that machine's id. So myid of server 1 would contain the text "1" and
nothing else. The id must be unique within the ensemble and should
have a value between 1 and 255

http://zookeeper.apache.org/doc/r3.4.2/zookeeperAdmin.html

hope that helps.

mahadev
On Wed, Jan 4, 2012 at 11:38 AM, Jordan Zimmerman
<[EMAIL PROTECTED]> wrote:
>
> If I read the code correctly, the server ID in zoo.cfg (i.e.
> "server.n=foo") does _not_ have to be sequential, 1 based, etc. i.e. it
> can be anything useful to me. For example, I could do:
>
>    server.10064=foo:288:3888
>    server.18=bar:288:3888
>    server.65535=snafu:288:3888
>
>
> Am I correct?
>
> -JZ
>