This is an automated email from the ASF dual-hosted git repository.

sijie pushed a commit to branch branch-2.1
in repository https://gitbox.apache.org/repos/asf/incubator-pulsar.git


The following commit(s) were added to refs/heads/branch-2.1 by this push:
     new cb88ae0  Standalone bookie should always advertise 'localhost' when 
running in docker container (#2425)
cb88ae0 is described below

commit cb88ae029d748017d88cdc7583b5dca1eb3a5b1c
Author: Matteo Merli <mme...@apache.org>
AuthorDate: Fri Aug 24 12:55:12 2018 -0700

    Standalone bookie should always advertise 'localhost' when running in 
docker container (#2425)
    
    * Standalone bookie should always advertise 'localhost' when running in 
docker container
    
    * Fixed advertised address coming from config file
---
 pulsar-broker/src/main/java/org/apache/pulsar/PulsarStandalone.java | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git 
a/pulsar-broker/src/main/java/org/apache/pulsar/PulsarStandalone.java 
b/pulsar-broker/src/main/java/org/apache/pulsar/PulsarStandalone.java
index 3e44f76..cf07d8c 100644
--- a/pulsar-broker/src/main/java/org/apache/pulsar/PulsarStandalone.java
+++ b/pulsar-broker/src/main/java/org/apache/pulsar/PulsarStandalone.java
@@ -253,7 +253,8 @@ public class PulsarStandalone implements AutoCloseable {
         if (!this.isOnlyBroker()) {
             // Start LocalBookKeeper
             bkEnsemble = new LocalBookkeeperEnsemble(
-                this.getNumOfBk(), this.getZkPort(), this.getBkPort(), 
this.getStreamStoragePort(), this.getZkDir(), this.getBkDir(), 
this.isWipeData(), config.getAdvertisedAddress());
+                    this.getNumOfBk(), this.getZkPort(), this.getBkPort(), 
this.getStreamStoragePort(), this.getZkDir(),
+                    this.getBkDir(), this.isWipeData(), "127.0.0.1");
             bkEnsemble.startStandalone(!this.isNoStreamStorage());
         }
 
@@ -352,7 +353,7 @@ public class PulsarStandalone implements AutoCloseable {
             log.info(e.getMessage());
         }
     }
-    
+
     /** this methods gets a buidler to use to build and an embedded pulsar 
instance `
      * i.e.
      * <pre>

Reply via email to