[ 
https://issues.apache.org/jira/browse/TUBEMQ-190?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

netroby closed TUBEMQ-190.
--------------------------
    Resolution: Won't Fix

> Start a local dev environment with embedded zookeeper
> -----------------------------------------------------
>
>                 Key: TUBEMQ-190
>                 URL: https://issues.apache.org/jira/browse/TUBEMQ-190
>             Project: Apache TubeMQ
>          Issue Type: Wish
>            Reporter: netroby
>            Priority: Major
>
> TubeMQ require zookeeper , if you start local dev environment, you may not 
> want to set up zookeeper. so may we start embedded zookeeper?
>  
> for example code : start emmbedded zookeeper
> {code:java}
> Properties startupProperties = ...
> QuorumPeerConfig quorumConfiguration = new QuorumPeerConfig();
> try {
>     quorumConfiguration.parseProperties(startupProperties);
> } catch(Exception e) {
>     throw new RuntimeException(e);
> }
> zooKeeperServer = new ZooKeeperServerMain();
> final ServerConfig configuration = new ServerConfig();
> configuration.readFrom(quorumConfiguration);
> new Thread() {
>     public void run() {
>         try {
>             zooKeeperServer.runFromConfig(configuration);
>         } catch (IOException e) {
>             log.error("ZooKeeper Failed", e);
>         }
>     }
> }.start();{code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to