public static int getCatalogServletPort() {
    return catalogServletPort;
  }
Gets the catalog servlet connector port.
<p>If configuration is 0, this port is allocated by the system.</p>
@return the connector port or -1 if not configured
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java