@Override
          public TSocket accept() throws TTransportException {
            TSocket ts = super.accept();
            // get the limit from the configuration for every new connection
            int maxThriftMessageSize = (int) MetastoreConf.getSizeVar(
                conf, MetastoreConf.ConfVars.THRIFT_METASTORE_CLIENT_MAX_MESSAGE_SIZE);
            HMSHandler.LOG.debug("Thrift maxMessageSize = {}", maxThriftMessageSize);
            if (maxThriftMessageSize > 0) {
              ts.getConfiguration().setMaxMessageSize(maxThriftMessageSize);
            }
            return ts;
          }
Start the metastore store.
@param port
@param bridge
@param conf
@throws Throwable
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java