You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@storm.apache.org by "Xin Wang (JIRA)" <ji...@apache.org> on 2015/07/21 06:24:05 UTC

[jira] [Closed] (STORM-906) Flux "--local --zookeeper" dose not work

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

Xin Wang closed STORM-906.
--------------------------
    Resolution: Not A Problem

> Flux "--local --zookeeper" dose not work
> ----------------------------------------
>
>                 Key: STORM-906
>                 URL: https://issues.apache.org/jira/browse/STORM-906
>             Project: Apache Storm
>          Issue Type: Bug
>          Components: Flux
>    Affects Versions: 0.10.0
>            Reporter: Xin Wang
>            Priority: Minor
>
> [description]
> -z,--zookeeper <host:port>
> When running in local mode, use the ZooKeeper at the specified <host>:<port>  instead of the in-process ZooKeeper.
> But when using zookeeper string like 'host-A:2181,host-B:2181,host-C:2181', Flux dose not work well.
> [command]
> {code}
> storm jar topo.jar org.apache.storm.flux.Flux --local --zookeeper host-A:2181,host-B:2181,host-C:2181 topo.yaml
> {code}
> [code]
> Flux.java:
> {code}
> ...
> if(zkStr.contains(":")){
>                         String[] hostPort = zkStr.split(":");
>                         zkHost = hostPort[0];
>                         zkPort = hostPort.length > 1 ? Long.parseLong(hostPort[1]) : DEFAULT_ZK_PORT;
>  }
> ...
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)