private void startThriftServerThread(final String[] args) {
    LOG.info("Starting HBase Thrift server with command line: " + Joiner.on(" ").join(args));

    thriftServerException = null;
    thriftServerThread = new Thread(() -> {
      try {
        thriftServer.run(args);
      } catch (Exception e) {
        thriftServerException = e;
      }
    });
    thriftServerThread.setName(ThriftServer.class.getSimpleName());
    thriftServerThread.start();
  }
start thrift server
@param conf configuration
@param type the type of thrift server
@throws Exception When starting the thrift server fails.
hbase-thrift/src/test/java/org/apache/hadoop/hbase/thrift/HBaseThriftTestingUtility.java