private int getMaxMessageSize() throws SQLException {
    String maxMessageSize = sessConfMap.get(JdbcConnectionParams.THRIFT_CLIENT_MAX_MESSAGE_SIZE);
    if (maxMessageSize == null) {
      return -1;
    }

    try {
      return Integer.parseInt(maxMessageSize);
    } catch (Exception e) {
      String errFormat = "Invalid {} configuration of '{}'. Expected an integer specifying number of bytes. " +
          "A configuration of <= 0 uses default max message size.";
      String errMsg = String.format(errFormat, JdbcConnectionParams.THRIFT_CLIENT_MAX_MESSAGE_SIZE, maxMessageSize);
      throw new SQLException(errMsg, "42000", e);
    }
  }
Create underlying SSL or non-SSL transport

@return TTransport
@throws TTransportException
@throws SQLException
jdbc/src/java/org/apache/hive/jdbc/HiveConnection.java