private void createTable(SinkInfo sinkInfo) {
        LOGGER.info("begin to create hbase table for sinkInfo={}", sinkInfo);

        // Get all info from config
        HBaseSinkDTO hbaseInfo = HBaseSinkDTO.getFromJson(sinkInfo.getExtParams());
        List<HBaseColumnFamilyInfo> columnFamilies = getColumnFamilies(sinkInfo);
        if (CollectionUtils.isEmpty(columnFamilies)) {
            throw new IllegalArgumentException("no hbase column families specified");
        }
        HBaseTableInfo tableInfo = HBaseSinkDTO.getHbaseTableInfo(hbaseInfo, columnFamilies);

        String zkAddress = hbaseInfo.getZkQuorum();
        String zkNode = hbaseInfo.getZkNodeParent();
        String namespace = hbaseInfo.getNamespace();
        String tableName = hbaseInfo.getTableName();

        try {
            // 1. create database if not exists
            HBaseApiUtils.createNamespace(zkAddress, zkNode, namespace);

            // 2. check if the table exists
            boolean tableExists = HBaseApiUtils.tableExists(zkAddress, zkNode, namespace, tableName);

            if (!tableExists) {
                // 3. create table
                HBaseApiUtils.createTable(zkAddress, zkNode, tableInfo);
            } else {
                // 4. or update table columns
                List<HBaseColumnFamilyInfo> existColumnFamilies = HBaseApiUtils.getColumnFamilies(zkAddress, zkNode,
                        namespace, tableName).stream()
                        .sorted(Comparator.comparing(HBaseColumnFamilyInfo::getCfName)).collect(toList());
                List<HBaseColumnFamilyInfo> requestColumnFamilies = tableInfo.getColumnFamilies().stream()
                        .sorted(Comparator.comparing(HBaseColumnFamilyInfo::getCfName)).collect(toList());
                List<HBaseColumnFamilyInfo> newColumnFamilies = requestColumnFamilies.stream()
                        .skip(existColumnFamilies.size()).collect(toList());

                if (CollectionUtils.isNotEmpty(newColumnFamilies)) {
                    HBaseApiUtils.addColumnFamilies(zkAddress, zkNode, namespace, tableName, newColumnFamilies);
                    LOGGER.info("{} column families added for table {}", newColumnFamilies.size(), tableName);
                }
            }
            String info = "success to create hbase resource";
            sinkService.updateStatus(sinkInfo.getId(), SinkStatus.CONFIG_SUCCESSFUL.getCode(), info);
            LOGGER.info(info + " for sinkInfo = {}", info);
        } catch (Throwable e) {
            String errMsg = "create hbase table failed: " + e.getMessage();
            LOGGER.error(errMsg, e);
            sinkService.updateStatus(sinkInfo.getId(), SinkStatus.CONFIG_FAILED.getCode(), errMsg);
            throw new WorkflowException(errMsg);
        }
    }
Create hbase table according to the sink config
inlong-manager/manager-service/src/main/java/org/apache/inlong/manager/service/resource/sink/hbase/HBaseResourceOperator.java