public static String createZookeeperQuorumString(List<String> zookeeperIps){
  StringBuilder sb=new StringBuilder();
  for (int i=0; i < zookeeperIps.size(); i++) {
    sb.append(zookeeperIps.get(i) + ":" + ClusterManagerConstants.Mesos.ZOOKEEPER_PORT);
    if (i != zookeeperIps.size() - 1) {
      sb.append(",");
    }
  }
  return sb.toString();
}

public static String createZookeeperQuorumString ( List < String > zookeeperIps ) { StringBuilder sb = new StringBuilder ( ) ; for ( int i = 0 ; i < zookeeperIps . size ( ) ; i ++ ) { sb . append ( zookeeperIps . get ( i ) + ":" + ClusterManagerConstants . Mesos . ZOOKEEPER_PORT ) ; if ( i != zookeeperIps . size ( ) - 1 ) { sb . append ( "," ) ; } } return sb . toString ( ) ; }
creates the zookeeper node quorum string .
