public Table getEmptyTable(String databaseName, String tableName) {
        StorageDescriptor sd = new StorageDescriptor();
        {
            sd.setSerdeInfo(new SerDeInfo());
            sd.setNumBuckets(-1);
            sd.setBucketCols(new ArrayList<String>());
            sd.setCols(new ArrayList<FieldSchema>());
            sd.setParameters(new HashMap<String, String>());
            sd.setSortCols(new ArrayList<Order>());
            sd.getSerdeInfo().setParameters(new HashMap<String, String>());
            // We have to use MetadataTypedColumnsetSerDe because LazySimpleSerDe does
            // not support a table with no columns.
            sd.getSerdeInfo().setSerializationLib(MetadataTypedColumnsetSerDe.class.getName());
            sd.getSerdeInfo().getParameters().put(serdeConstants.SERIALIZATION_FORMAT, "1");
            sd.setInputFormat(SequenceFileInputFormat.class.getName());
            SkewedInfo skewInfo = new SkewedInfo();
            skewInfo.setSkewedColNames(new ArrayList<String>());
            skewInfo.setSkewedColValues(new ArrayList<List<String>>());
            skewInfo.setSkewedColValueLocationMaps(new HashMap<List<String>, String>());
            sd.setSkewedInfo(skewInfo);
        }

        org.apache.hadoop.hive.metastore.api.Table t = new org.apache.hadoop.hive.metastore.api.Table();
        {
            t.setSd(sd);
            t.setPartitionKeys(new ArrayList<FieldSchema>());
            t.setParameters(new HashMap<String, String>());
            t.setTableType(TableType.MANAGED_TABLE.toString());
            t.setDbName(databaseName);
            t.setTableName(tableName);
            // set create time
            t.setCreateTime((int) (System.currentTimeMillis() / 1000));
        }
        // Explictly set the bucketing version
        t.getParameters().put(hive_metastoreConstants.TABLE_BUCKETING_VERSION,
                "2");
        return t;
    }
Close the connection of hive metastore
inlong-manager/manager-service/src/main/java/org/apache/inlong/manager/service/resource/sink/hudi/HudiCatalogClient.java