[ https://issues.apache.org/jira/browse/BOOKKEEPER-981?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15728581#comment-15728581 ]
Enrico Olivelli commented on BOOKKEEPER-981: -------------------------------------------- thank you [~zhaijia] with the 'host' network BookKeeper works as espected. I'm using the UseHostNameAsBookieId option. [~hustlmsp] I wonder if it is worth to fix this NPEs or leave this issue just as 'won't fix'. in general I would like to have the ability to declare an 'advertised' endpoint (host/port) different from the network endpoint to which the bookie is actually listening on. Kafka for instance as a "advertised.listeners" configuration maybe I can file another JIRA > NullPointerException in RackawareEnsemblePlacementPolicy while running in > Docker Container > ------------------------------------------------------------------------------------------ > > Key: BOOKKEEPER-981 > URL: https://issues.apache.org/jira/browse/BOOKKEEPER-981 > Project: Bookkeeper > Issue Type: Bug > Components: bookkeeper-client > Affects Versions: 4.4.0 > Reporter: Enrico Olivelli > Assignee: Enrico Olivelli > Priority: Blocker > Fix For: 4.5.0 > > > I'm playing with Docker and BookKeeper, I got into this error when running > inside a container. > {code} > SEVERE: Caught unexpected throwable > java.lang.NullPointerException > at > org.apache.bookkeeper.client.RackawareEnsemblePlacementPolicy.resolveNetworkLocation(RackawareEnsemblePlacementPolicy.java:343) > at > org.apache.bookkeeper.client.RackawareEnsemblePlacementPolicy.createBookieNode(RackawareEnsemblePlacementPolicy.java:306) > at > org.apache.bookkeeper.client.RackawareEnsemblePlacementPolicy.onClusterChanged(RackawareEnsemblePlacementPolicy.java:390) > at > org.apache.bookkeeper.client.BookieWatcher.processResult(BookieWatcher.java:185) > at > org.apache.bookkeeper.client.BookieWatcher$4.processResult(BookieWatcher.java:233) > at > org.apache.zookeeper.ClientCnxn$EventThread.processEvent(ClientCnxn.java:589) > at org.apache.zookeeper.ClientCnxn$EventThread.run(ClientCnxn.java:505) > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)