private static Connection createConnection(String url, String user, String password) throws Exception {
        Connection conn;
        try {
            Class.forName(HIVE_DRIVER_CLASS);
            conn = DriverManager.getConnection(url, user, password);
        } catch (Exception e) {
            String errorMsg = "Failed to get Hive connection, please check Hive JDBC URL, username, or password!";
            LOGGER.error(errorMsg, e);
            throw new Exception(errorMsg + " Other error message: " + e.getMessage());
        }

        if (conn == null) {
            throw new Exception("Failed to get Hive connection, please contact the administrator.");
        }

        LOGGER.info("Successfully obtained Hive connection for URL: {}", url);
        return conn;
    }
Creates a Hive JDBC connection using the provided URL, username, and password.

@param url      The Hive JDBC URL
@param user     The username
@param password The user's password
@return A {@link Connection} object representing the Hive database connection
@throws Exception If an error occurs while obtaining the connection
inlong-manager/manager-service/src/main/java/org/apache/inlong/manager/service/resource/sink/hive/HiveJdbcUtils.java