If the zookeeper setup involves multiple zookeeper server ensemble, myid
file needs to be created in the data directory. This can also be done as
part of the 'init' setup from command line.

$ /etc/init.d/zookeeper-server init --myid=<number>


On Mon, Mar 31, 2014 at 2:49 PM, Michi Mutsuzaki <[email protected]>wrote:

> You create a file named myid under the data directory, and pick a
> number between 1 and 255. The process is documented here:
>
>
> http://zookeeper.apache.org/doc/r3.4.6/zookeeperAdmin.html#sc_zkMulitServerSetup
>
> --Michi
>
> On Mon, Mar 31, 2014 at 2:33 AM, ch huang <[email protected]> wrote:
> > hi,maillist:
> >        how can i assign myid when i do zookeeper init ?
>

Reply via email to