niharrathod opened a new issue, #19920: URL: https://github.com/apache/pulsar/issues/19920
### Search before asking - [X] I searched in the [issues](https://github.com/apache/pulsar/issues) and found nothing similar. ### What issue do you find in Pulsar docs? [Deploy a cluster on bare metal](https://pulsar.apache.org/docs/2.11.x/deploy-bare-metal/#deploy-pulsar-brokers) doc is having wrong url format for `metadataStoreUrl` and `configurationMetadataStoreUrl` for broker config. Doc suggests as following ``` metadataStoreUrl=zk://zk1.us-west.example.com:2181,zk2.us-west.example.com:2181,zk3.us-west.example.com:2181 configurationMetadataStoreUrl=zk://zk1.us-west.example.com:2181,zk2.us-west.example.com:2181,zk3.us-west.example.com:2181 ``` Instead it should be ``` metadataStoreUrl=zk:zk1.us-west.example.com:2181,zk2.us-west.example.com:2181,zk3.us-west.example.com:2181 configurationMetadataStoreUrl=zk:zk1.us-west.example.com:2181,zk2.us-west.example.com:2181,zk3.us-west.example.com:2181 ``` or ``` metadataStoreUrl=zk1.us-west.example.com:2181,zk2.us-west.example.com:2181,zk3.us-west.example.com:2181 configurationMetadataStoreUrl=zk1.us-west.example.com:2181,zk2.us-west.example.com:2181,zk3.us-west.example.com:2181 ``` ### What is your suggestion? While running single node zookeeper, single Bookie and singe Pulsar broker on my local machine, broker startup failed with below exception because of wrong metadataUrl format (`zk://localhost:2181`): ``` java.lang.IllegalArgumentException: Invalid path string "//localhost:2181" caused by empty node name specified @1 at org.apache.zookeeper.common.PathUtils.validatePath(PathUtils.java:91) ~[org.apache.zookeeper-zookeeper-3.8.0.jar:3.8.0] at org.apache.zookeeper.client.ConnectStringParser.<init>(ConnectStringParser.java:61) ~[org.apache.zookeeper-zookeeper-3.8.0.jar:3.8.0] at org.apache.pulsar.metadata.impl.ZKMetadataStore.<init>(ZKMetadataStore.java:92) ~[org.apache.pulsar-pulsar-metadata-2.11.0.jar:2.11.0] at org.apache.pulsar.metadata.impl.MetadataStoreFactoryImpl.newInstance(MetadataStoreFactoryImpl.java:56) ~[org.apache.pulsar-pulsar-metadata-2.11.0.jar:2.11.0] at org.apache.pulsar.metadata.impl.MetadataStoreFactoryImpl.createExtended(MetadataStoreFactoryImpl.java:36) ~[org.apache.pulsar-pulsar-metadata-2.11.0.jar:2.11.0] at org.apache.pulsar.metadata.api.extended.MetadataStoreExtended.create(MetadataStoreExtended.java:41) ~[org.apache.pulsar-pulsar-metadata-2.11.0.jar:2.11.0] at org.apache.pulsar.broker.PulsarService.createLocalMetadataStore(PulsarService.java:1051) ~[org.apache.pulsar-pulsar-broker-2.11.0.jar:2.11.0] at org.apache.pulsar.broker.PulsarService.start(PulsarService.java:719) ~[org.apache.pulsar-pulsar-broker-2.11.0.jar:2.11.0] ``` Setting metadataUrl to `zk:localhost:2181` or `localhost:2181` worked for me ### Any reference? _No response_ ### Are you willing to submit a PR? - [ ] I'm willing to submit a PR! -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
