private static FieldSchema param2Schema(@NotNull String param) {
    String colType = DEFAULT_TYPE;
    String name = param;
    if (param.contains(TYPE_SEPARATOR)) {
      String[] parts = param.split(TYPE_SEPARATOR);
      name = parts[0];
      colType = parts[1].toLowerCase();
    }
    return new FieldSchema(name, colType, "");
  }
Get server URI.<p>
HMS host is obtained from
<ol>
<li>Argument</li>
<li>HMS_HOST environment parameter</li>
<li>hms.host Java property</li>
<li>use 'localhost' if above fails</li>
</ol>
HMS Port is obtained from
<ol>
<li>Argument</li>
<li>host:port string</li>
<li>HMS_PORT environment variable</li>
<li>hms.port Java property</li>
<li>default port value</li>
</ol>

@param host       HMS host string.
@param portString HMS port
@return HMS URI
@throws URISyntaxException if URI is is invalid
standalone-metastore/metastore-tools/tools-common/src/main/java/org/apache/hadoop/hive/metastore/tools/Util.java