void setZkLedgersRootPath(String zkLedgersPath); its in AbstractConfiguration, because it's shared between the server and the client.
-ivan On Tue, Oct 23, 2012 at 04:34:44PM +0800, ChenWei wrote: > if I changed zkLedgersRootPath to /test1 or /ledgers/test1, how should the > client config the BookKeeper? I didn't find one in ClientConfiguration. > > 2012/10/23 Ivan Kelly <[email protected]> > > > > Besides, I want to know how to share one ZooKeeper cluster with several > > > BookKeeper clusters? That is, how to specify a root directory of > > ZooKeeper > > > for one Bookie? > > what you want is > > # zkLedgersRootPath=/ledgers > > in bk_server.conf > > > > Also, you should probably use the HierarchicalLedgerManager as there > > are limits in zk for how many children a znode can have, and this has > > an effect on how we lay out the ledger znodes. > > > > see > > http://zookeeper.apache.org/bookkeeper/docs/r4.1.0/bookkeeperInternals.html > > > > -Ivan > >
