Uploaded image for project: 'Apache Storm'
  1. Apache Storm
  2. STORM-906

Flux "--local --zookeeper" dose not work

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Not A Problem
    • 0.10.0
    • None
    • Flux
    • None

    Description

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

      storm jar topo.jar org.apache.storm.flux.Flux --local --zookeeper host-A:2181,host-B:2181,host-C:2181 topo.yaml
      

      [code]
      Flux.java:

      ...
      if(zkStr.contains(":")){
                              String[] hostPort = zkStr.split(":");
                              zkHost = hostPort[0];
                              zkPort = hostPort.length > 1 ? Long.parseLong(hostPort[1]) : DEFAULT_ZK_PORT;
      
       }
      ...
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            vesense Xin Wang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: