You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tubemq.apache.org by "Guocheng Zhang (Jira)" <ji...@apache.org> on 2020/06/03 05:16:00 UTC
[jira] [Commented] (TUBEMQ-190) Start a local dev environment with
embedded zookeeper
[ https://issues.apache.org/jira/browse/TUBEMQ-190?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17124604#comment-17124604 ]
Guocheng Zhang commented on TUBEMQ-190:
---------------------------------------
Can this problem be solved now with docker?
We plan to remove the zk piece later, so we can temporarily maintain the status quo.
> 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)
Re: [jira] [Commented] (TUBEMQ-190) Start a local dev environment
with embedded zookeeper
Posted by Netroby <hu...@gmail.com>.
No, i refuse to using docker. docker make things more complicated.
TubeMQ should self contained.
No external dependencies with other tools.
Appreciate your time.
----------------------------
Netroby
Guocheng Zhang (Jira) <ji...@apache.org> 于2020年6月3日周三 下午1:16写道:
>
>
> [ https://issues.apache.org/jira/browse/TUBEMQ-190?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17124604#comment-17124604 ]
>
> Guocheng Zhang commented on TUBEMQ-190:
> ---------------------------------------
>
> Can this problem be solved now with docker?
>
> We plan to remove the zk piece later, so we can temporarily maintain the status quo.
>
> > 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)