code: public static String buildQuorum(List<HostAndPort> hostAndPorts, int defaultPort) {
      List<String> entries = new ArrayList<String>(hostAndPorts.size());
      for (HostAndPort hostAndPort : hostAndPorts) {
        entries.add(buildQuorumEntry(hostAndPort, defaultPort));
      }
      return JstormYarnUtils.join(entries, ",", false);
    }
docs: Build a quorum list, injecting a ":defaultPort" ref if needed on
  any entry without one
  @param hostAndPorts
  @param defaultPort
  @return