Il mar 9 ott 2018, 22:45 Sijie Guo <guosi...@gmail.com> ha scritto: > > > On Mon, Oct 8, 2018 at 1:51 AM Enrico Olivelli <eolive...@gmail.com> > wrote: > >> Il giorno lun 8 ott 2018 alle ore 09:59 Sijie Guo <guosi...@gmail.com> >> ha scritto: >> > >> > >> > >> > On Sun, Oct 7, 2018 at 11:51 PM Enrico Olivelli <eolive...@gmail.com> >> wrote: >> >> >> >> Hi, >> >> I am going to migrate a bunch of applications from the deprecated >> >> zkServers to metadataServiceURI. >> >> I think that the change is not really straightforward. >> > >> > >> > why? >> >> uhm just forgot to mention FlatLedgerManagerFactory, I have several >> "old" BookKeeper clusters with it. >> > > if you want to be more explicit, you can use: > > zk+flat:// > and > zk+hierarchical:// > > otherwise, you can omit the "+" part, using "zk://" will lookup the layout > and use the factory class stored in layout. >
Oh great! This is what I was suspecting and it is great, so the migration can be automatic and straightforward, just drop ledgerManagerFactory option and concat zkServers with ledgersPathand addd a zk:// prefix. Thank you very much Sijie ! It would be good to write this down somewhere (or I am missing such page on the website) Enrico > >> >> I would like to have a "recipe" for the conversion. >> >> Having this discussion on the ML can be useful to share this issue, >> that all of the users must address before we drop zkAddress >> configuration entry >> >> Enrico >> >> > >> > the metadataServiceURI should be "zk://<zkServers><ledgersRootPath>". >> > >> > For example, if your zkServers is "127.0.0.1:2181" and your ledgers >> root path is "/ledgers". >> > The metadata service uri is "zk://127.0.0.1:2181/ledgers" >> > >> >> >> >> >> >> Do you have any best practice for doing this change in configurations ? >> >> >> >> >> >> >> >> Enrico >> > -- -- Enrico Olivelli