public static TTransport getSocketTransport(String host, int port, int loginTimeout) throws TTransportException {
    return getSocketTransport(host, port, loginTimeout, /* maxMessageSize */ -1);
  }
Create a TSocket for the provided host and port with specified loginTimeout. Thrift maxMessageSize
will default to Thrift library default.
@param host Host to connect to.
@param port Port to connect to.
@param loginTimeout Socket timeout (0 means no timeout).
@return TTransport TSocket for host/port.
common/src/java/org/apache/hadoop/hive/common/auth/HiveAuthUtils.java