You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2019/03/08 03:09:47 UTC

[GitHub] [pulsar] lsy180829 opened a new issue #3788: Pulsar standalone does not read zk port form conf/standalone.conf

lsy180829 opened a new issue #3788: Pulsar standalone does not read zk port form conf/standalone.conf
URL: https://github.com/apache/pulsar/issues/3788
 
 
   
   **Describe the bug**
   When we run the order bin/pulsar standalone, it does not read the zookeeper port form the file in conf/standalone.conf.
   
   **To Reproduce**
   Steps to reproduce the behavior:
   1. Modify the file in conf/standalone.conf. Add zookeeperServers like this: 
   zookeeperServers=127.0.0.1:2182
   2. run the order: sh bin/pulsar standalone 
   3. See error.
   09:59:20.184 [main] INFO  org.apache.zookeeper.server.ZooKeeperServer - Server environment:user.dir=/usr/local/pulsar/apache-pulsar-2.4.0-SNAPSHOT
   09:59:20.204 [main] INFO  org.apache.zookeeper.server.ZooKeeperServer - Created server with tickTime 3000 minSessionTimeout 6000 maxSessionTimeout 60000 datadir /usr/local/pulsar/apache-pulsar-2.4.0-SNAPSHOT/data/standalone/zookeeper/version-2 snapdir /usr/local/pulsar/apache-pulsar-2.4.0-SNAPSHOT/data/standalone/zookeeper/version-2
   09:59:20.225 [main] INFO  org.apache.zookeeper.server.NIOServerCnxnFactory - binding to port 0.0.0.0/0.0.0.0:2181
   
   **Expected behavior**
   The priority is args > standalone.conf > default (args is the order “--zookeeper-port”). It means:
   1. If the user uses “--zookeeper-port” to run pulsar in standalone (order: sh bin/pulsar standalone --zookeeper-port 2183), the zk port should be 2183. It does not care the zookeeperServers setting in conf/stanalone.
   2. If the user run pulsar in standalone straightly (order: sh bin/pulsar standalone), after the user sets zookeeperServers in conf/stanalone ( like this zookeeperServers=127.0.0.1:2182 ) . The zk port should be 2182
   3. If the user run pulsar in standalone straightly (order: sh bin/pulsar standalone), and does not set zookeeperServers in conf/stanalone. The zk port should be default port 2181.
   
   **Desktop**
    - OS: Linux
   

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services