You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@bookkeeper.apache.org by GitBox <gi...@apache.org> on 2019/03/14 15:34:43 UTC

[GitHub] [bookkeeper] mathewmoon opened a new issue #1984: BKCtl does not respect -x option when creating stream znode

mathewmoon opened a new issue #1984: BKCtl does not respect -x option when creating stream znode
URL: https://github.com/apache/bookkeeper/issues/1984
 
 
   **BUG REPORT**
   
   ***Describe the bug***
   When running ``` org.apache.bookkeeper.tools.cli.BKCtl --conf /conf/bookkeeper.conf cluster init -x ${CLUSTER_NAME} zk+hierarchical://${ZK_HOST}```  distributedlog and ledgers are created inside of /<cluster name>, but stream is created in root znode:
   
   ```
   [zk: localhost:2181(CONNECTED) 3] ls /
   [SERVERS, bookkeeper, stream, zookeeper]
   [zk: localhost:2181(CONNECTED) 4] ls /bookkeeper
   [distributedlog, ledgers]
   
   ```
   ***To Reproduce***
   run ``` java ${OPTS}  org.apache.bookkeeper.tools.cli.BKCtl --conf /conf/bookkeeper.conf cluster init -x ${CLUSTER_NAME} zk+hierarchical://${ZK_HOST} ```
   
   ***Expected behavior***
   
   stream directory should be located under /${CLUSTERNAME}/stream
   
   ***Additional context***
   
   Log of event:
   ```
   [2019-03-14 15:28:21,277] INFO Initializing cluster bookkeeper : 
           ledgers : path = /bookkeeper/ledgers, uri = zk+hierarchical://zklocal-svc.default.svc.cluster.local:2181/bookkeeper/ledgers
           dlog: path = /bookkeeper/distributedlog, uri = zk+hierarchical://zklocal-svc.default.svc.cluster.local:2181/bookkeeper/distributedlog
           stream storage: path = /stream, num_storage_containers = 32 (org.apache.bookkeeper.stream.cli.commands.cluster.InitClusterCommand)
   [2019-03-14 15:28:21,277] INFO Initializing cluster bookkeeper : 
           ledgers : path = /bookkeeper/ledgers, uri = zk+hierarchical://zklocal-svc.default.svc.cluster.local:2181/bookkeeper/ledgers
           dlog: path = /bookkeeper/distributedlog, uri = zk+hierarchical://zklocal-svc.default.svc.cluster.local:2181/bookkeeper/distributedlog
           stream storage: path = /stream, num_storage_containers = 32 (org.apache.bookkeeper.stream.cli.commands.cluster.InitClusterCommand)
   ```
   Full log here:
   https://gist.github.com/ca598880bb9e4e9b603404deda1ef36a
   

----------------------------------------------------------------
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