savearray2 commented on issue #8027: URL: https://github.com/apache/pulsar/issues/8027#issuecomment-690376334
For anyone else who ever runs into this problem. I've figured it out. This has been plaguing me for days. I followed the stack trace to the following line: https://github.com/apache/bookkeeper/blob/2f08377f5c56f96389fb3a8e51844844537e118b/bookkeeper-server/src/main/java/org/apache/bookkeeper/net/BookieSocketAddress.java#L68 In short, EVERY address added via the ```pulsar-admin bookies set-bookie-rack``` command MUST be in the format of ```<FQDN>:<port>```. If it's not in the correct format (if there's no ```:``` found), it'll throw an ```UnknownHostException```. This should probably be documented much better, but I'm glad to at least get the fix on record. ```java.lang.RuntimeException: java.net.UnknownHostException: koto-bk-aen-0``` is not very descriptive. E.g. (the proper format): ``` { "default" : { "koto-bk-aen-0:3181" : { "rack" : "/aen" }, "koto-bk-aen-1:3181" : { "rack" : "/aen" } } } ``` Thanks to @mkozioro for helping. If I wasn't told this was working with someone else's configuration, I never would have followed the stack trace. -- I'll leave it up to the maintainers of the project on whether or not they want to update the documentation with this information... If not, this issue can be closed :) ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: [email protected]
