New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Question] metadataServiceUri with multiple zk servers #1756
Comments
No, it should be like |
@hiscal2015 can you try with my suggested URI? |
@eolivelli Sorry for delay, looks format zk://server1:port,server2:port,server3:port/ledgers does not work, I tried with zk+hierarchical://server1:2181/ledgers,zk+hierarchical://server2:2181/ledgers,zk+hierarchical://server3:2181/ledgers, it works fine, can you have a double check? Thanks a lot. |
This sounds to me as a big problem. |
Looks like the setting is only available on bookie, client only needs webservice and broker url. |
@hiscal2015 metadataServiceUri is available on client as well. |
@hiscal2015 hmm, I think ',' can not be used in a java URI. URI will take characters before ','. That might example why you see Can you try
from pulsar's perspective, it is a setting for broker and bookies. |
In fact the code which translates from the legacy zkServer to the new model is bookkeeper/bookkeeper-server/src/main/java/org/apache/bookkeeper/conf/AbstractConfiguration.java Line 238 in d9444ba
and it simply concatenates:
|
@eolivelli I think the question how current code extracts zk servers from metadata service uri. I know dlog uri handles ';' and converts it to ','. but I am not very sure about the new metadata service uri, have to look more into this. |
@hiscal2015 any luck with |
@sijie My cluster was destroyed days ago, I'll get it back to you once cluster coming back again. |
@hiscal2015 cool thank you |
@hiscal2015 I am closing this issue since the question is answered. If you still see the issue, please reopen it. |
Today I changed metadataServiceUri to zk://server1:port;server2:port;server3:port/ledgers and see below logs:
Is that means this is succeed? |
@hiscal2015 yes that succeed |
Hi I can't get this to work.. here is how my bookie.conf looks like. can you please help me figure out the format..
|
Hi,
From the documents, I can see zkServers parameter has been deprecated in favor of using metadataServiceUri, but I can't see any example to define metadataServiceUri with multiple zk servers? Please help, thanks.
Is it something like this?
The text was updated successfully, but these errors were encountered: