You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@bookkeeper.apache.org by Enrico Olivelli <eo...@gmail.com> on 2018/10/08 06:51:08 UTC

Migrating from zkServers to metadataServiceURI

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.

Do you have any best practice for doing this change in configurations ?



Enrico

Re: Migrating from zkServers to metadataServiceURI

Posted by Sijie Guo <gu...@gmail.com>.
On Tue, Oct 9, 2018 at 1:53 PM Enrico Olivelli <eo...@gmail.com> wrote:

>
>
> Il mar 9 ott 2018, 22:45 Sijie Guo <gu...@gmail.com> ha scritto:
>
>>
>>
>> On Mon, Oct 8, 2018 at 1:51 AM Enrico Olivelli <eo...@gmail.com>
>> wrote:
>>
>>> Il giorno lun 8 ott 2018 alle ore 09:59 Sijie Guo <gu...@gmail.com>
>>> ha scritto:
>>> >
>>> >
>>> >
>>> > On Sun, Oct 7, 2018 at 11:51 PM Enrico Olivelli <eo...@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)
>

Yes we need add documentation for that. If you have cycles, do you mind
helping creating one page for that?

- Sijie


>
> 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
>

Re: Migrating from zkServers to metadataServiceURI

Posted by Enrico Olivelli <eo...@gmail.com>.
Il mar 9 ott 2018, 22:45 Sijie Guo <gu...@gmail.com> ha scritto:

>
>
> On Mon, Oct 8, 2018 at 1:51 AM Enrico Olivelli <eo...@gmail.com>
> wrote:
>
>> Il giorno lun 8 ott 2018 alle ore 09:59 Sijie Guo <gu...@gmail.com>
>> ha scritto:
>> >
>> >
>> >
>> > On Sun, Oct 7, 2018 at 11:51 PM Enrico Olivelli <eo...@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

Re: Migrating from zkServers to metadataServiceURI

Posted by Sijie Guo <gu...@gmail.com>.
On Mon, Oct 8, 2018 at 1:51 AM Enrico Olivelli <eo...@gmail.com> wrote:

> Il giorno lun 8 ott 2018 alle ore 09:59 Sijie Guo <gu...@gmail.com>
> ha scritto:
> >
> >
> >
> > On Sun, Oct 7, 2018 at 11:51 PM Enrico Olivelli <eo...@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.


>
> 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
>

Re: Migrating from zkServers to metadataServiceURI

Posted by Enrico Olivelli <eo...@gmail.com>.
Il lun 8 ott 2018, 10:50 Enrico Olivelli <eo...@gmail.com> ha scritto:

> Il giorno lun 8 ott 2018 alle ore 09:59 Sijie Guo <gu...@gmail.com>
> ha scritto:
> >
> >
> >
> > On Sun, Oct 7, 2018 at 11:51 PM Enrico Olivelli <eo...@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.
>
> I would like to have a "recipe" for the conversion.
>

What about zk+null?.....
Was is something  like 'auto' ?

Enrico


> 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

Re: Migrating from zkServers to metadataServiceURI

Posted by Enrico Olivelli <eo...@gmail.com>.
Il giorno lun 8 ott 2018 alle ore 09:59 Sijie Guo <gu...@gmail.com>
ha scritto:
>
>
>
> On Sun, Oct 7, 2018 at 11:51 PM Enrico Olivelli <eo...@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.

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

Re: Migrating from zkServers to metadataServiceURI

Posted by Sijie Guo <gu...@gmail.com>.
On Sun, Oct 7, 2018 at 11:51 PM Enrico Olivelli <eo...@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?

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
>