public static String concatHostPort(String host, String port) {
    return concatHostPort(host, Integer.parseInt(port));
  }
Concatenates the host and port with a colon. 
If the host is an IPv6 address, it is enclosed in square brackets.
@param host the host
@param port the port
@return the concatenated host and port
standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/common/IPStackUtils.java