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

        // Get all info from config
        KuduSinkDTO kuduInfo = getKuduInfo(sinkInfo);
        List<KuduColumnInfo> columnInfoList = getColumnList(sinkInfo);
        if (CollectionUtils.isEmpty(columnInfoList)) {
            throw new IllegalArgumentException("no kudu columns specified");
        }
        KuduTableInfo tableInfo = KuduSinkDTO.getKuduTableInfo(kuduInfo, columnInfoList);

        String masters = kuduInfo.getMasters();
        String tableName = kuduInfo.getTableName();

        KuduResourceClient client = null;
        try {
            // 1. create client
            client = new KuduResourceClient(masters);

            // 2. check if the table exists
            boolean tableExists = client.tableExist(tableName);

            if (!tableExists) {
                // 3. create table
                client.createTable(tableName, tableInfo);
            } else {
                // 4. or update table columns
                List<KuduColumnInfo> existColumns = client.getColumns(tableName);
                Set<String> existColumnNameSet = existColumns.stream().map(SinkField::getFieldName)
                        .collect(Collectors.toSet());
                // Get columns need added according to column name.
                List<KuduColumnInfo> needAddColumns = tableInfo.getColumns().stream()
                        .filter(columnInfo -> !existColumnNameSet.contains(columnInfo.getFieldName()))
                        .collect(toList());
                if (CollectionUtils.isNotEmpty(needAddColumns)) {
                    client.addColumns(tableName, needAddColumns);
                    LOGGER.info("{} columns added for kudu table {}", needAddColumns.size(), tableName);
                }
            }
            String info = "success to create Kudu resource";
            sinkService.updateStatus(sinkInfo.getId(), SinkStatus.CONFIG_SUCCESSFUL.getCode(), info);
            LOGGER.info(info + " for sinkInfo = {}", info);
        } catch (Throwable e) {
            String errMsg = "create Kudu table failed: " + e.getMessage();
            LOGGER.error(errMsg, e);
            sinkService.updateStatus(sinkInfo.getId(), SinkStatus.CONFIG_FAILED.getCode(), errMsg);
            throw new WorkflowException(errMsg);
        } finally {
            if (client != null) {
                client.close();
            }
        }
    }
Create Kudu table according to the sink config
inlong-manager/manager-service/src/main/java/org/apache/inlong/manager/service/resource/sink/kudu/KuduResourceOperator.java