OceanBase logo

OceanBase

A unified distributed database ready for your transactional, analytical, and AI workloads.

DEPLOY YOUR WAY

OceanBase Cloud

The best way to deploy and scale OceanBase

OceanBase Enterprise

Run and manage OceanBase on your infra

TRY OPEN SOURCE

OceanBase Community Edition

The free, open-source distributed database

OceanBase seekdb

Open source AI native search database

Customer Stories

Real-world success stories from enterprises across diverse industries.

View All
BY USE CASES

Mission-Critical Transactions

Global & Multicloud Application

Elastic Scaling for Peak Traffic

Real-time Analytics

Active Geo-redundancy

Database Consolidation

Resources

Comprehensive knowledge hub for OceanBase.

Blog

Live Demos

Training & Certification

Documentation

Official technical guides, tutorials, API references, and manuals for all OceanBase products.

View All
PRODUCTS

OceanBase Cloud

OceanBase Database

Tools

Connectors and Middleware

QUICK START

OceanBase Cloud

OceanBase Database

BEST PRACTICES

Practical guides for utilizing OceanBase more effectively and conveniently

Company

Learn more about OceanBase – our company, partnerships, and trust and security initiatives.

About OceanBase

Partner

Trust Center

Contact Us

International - English
中国站 - 简体中文
日本 - 日本語
Sign In
Start on Cloud

A unified distributed database ready for your transactional, analytical, and AI workloads.

DEPLOY YOUR WAY

OceanBase Cloud

The best way to deploy and scale OceanBase

OceanBase Enterprise

Run and manage OceanBase on your infra

TRY OPEN SOURCE

OceanBase Community Edition

The free, open-source distributed database

OceanBase seekdb

Open source AI native search database

Customer Stories

Real-world success stories from enterprises across diverse industries.

View All
BY USE CASES

Mission-Critical Transactions

Global & Multicloud Application

Elastic Scaling for Peak Traffic

Real-time Analytics

Active Geo-redundancy

Database Consolidation

Comprehensive knowledge hub for OceanBase.

Blog

Live Demos

Training & Certification

Documentation

Official technical guides, tutorials, API references, and manuals for all OceanBase products.

View All
PRODUCTS
OceanBase CloudOceanBase Database
ToolsConnectors and Middleware
QUICK START
OceanBase CloudOceanBase Database
BEST PRACTICES

Practical guides for utilizing OceanBase more effectively and conveniently

Learn more about OceanBase – our company, partnerships, and trust and security initiatives.

About OceanBase

Partner

Trust Center

Contact Us

Start on Cloud
编组
All Products
    • Databases
    • iconOceanBase Database
    • iconOceanBase Cloud
    • iconOceanBase Tugraph
    • iconInteractive Tutorials
    • iconOceanBase Best Practices
    • Tools
    • iconOceanBase Cloud Platform
    • iconOceanBase Migration Service
    • iconOceanBase Developer Center
    • iconOceanBase Migration Assessment
    • iconOceanBase Admin Tool
    • iconOceanBase Loader and Dumper
    • iconOceanBase Deployer
    • iconKubernetes operator for OceanBase
    • iconOceanBase Diagnostic Tool
    • iconOceanBase Binlog Service
    • Connectors and Middleware
    • iconOceanBase Database Proxy
    • iconEmbedded SQL in C for OceanBase
    • iconOceanBase Call Interface
    • iconOceanBase Connector/C
    • iconOceanBase Connector/J
    • iconOceanBase Connector/ODBC
    • iconOceanBase Connector/NET
icon

OceanBase Migration Service

V4.0.2Enterprise Edition

    Download PDF

    OceanBase logo

    The Unified Distributed Database for the AI Era.

    Follow Us
    Products
    OceanBase CloudOceanBase EnterpriseOceanBase Community EditionOceanBase seekdb
    Resources
    DocsBlogLive DemosTraining & Certification
    Company
    About OceanBaseTrust CenterLegalPartnerContact Us
    Follow Us

    © OceanBase 2026. All rights reserved

    Cloud Service AgreementPrivacy PolicySecurity
    Contact Us
    Document Feedback
    1. Documentation Center
    2. OceanBase Migration Service
    3. V4.0.2
    iconOceanBase Migration Service
    V 4.0.2Enterprise Edition
    Enterprise Edition
    • V 4.3.2
    • V 4.3.1
    • V 4.3.0
    • V 4.2.5
    • V 4.2.4
    • V 4.2.3
    • V 4.0.2
    • V 3.4.0
    Community Edition
    • V 4.2.13
    • V 4.2.12
    • V 4.2.11
    • V 4.2.10
    • V 4.2.9
    • V 4.2.8
    • V 4.2.7
    • V 4.2.6
    • V 4.2.5
    • V 4.2.4
    • V 4.2.3
    • V 4.2.1
    • V 4.2.0
    • V 4.0.0
    • V 3.3.1

    KafkaSink

    Last Updated:2026-04-14 07:36:47  Updated
    share
    What is on this page
    Starter class
    [Metadata] servers
    [Metadata] enableAsync
    [Distribution] partition
    [Distribution] partitionMode
    [Writing threads] workerNum
    [Kafka parameters] batchSize
    [Kafka parameters] lingerMs
    [Kafka parameters] properties
    [Authentication] securityProtocol
    [Authentication] sslTruststoreLocation
    [Authentication] saslConfig
    [Serialization] serializerType
    isTopicMandatory
    consumerGroup

    folded

    share

    Starter class

    connector-kafka.jar

    com.oceanbase.oms.connector.kafka.sink.KafkaSinkBooster

    [Metadata] servers

    • Description: specifies information about Kafka servers.

    • Default value: None. This parameter is required.

    • Value type: String.

    • Supported version: OMS V3.3.1 and later.

    [Metadata] enableAsync

    • Description: specifies whether to enable asynchronous writing.

    • Default value: true.

    • Value type: Boolean.

    • Supported version: OMS V3.3.1 and later.

    [Distribution] partition

    • Description: specifies the name of the partition into which data is written when partitionMode is set to ONE.

    • Default value: 0.

    • Value type: int.

    • Supported version: OMS V3.3.1 and later.

    [Distribution] partitionMode

    • Description: specifies the distribution logic that determines the partition into which a data record is to be written.

    • Default value: HASH.

    • Valid values: HASH (hash value of the primary key), ONE (fixed to one partition), and TABLE (hash value of the table name)

    • Supported version: OMS V3.3.1 and later.

    • Note: In the ONE mode, workerNum must be set to 1 for serial execution. Otherwise, data may be concurrently written.

    [Writing threads] workerNum

    • Description: specifies the number of data writing threads.

    • Default value: 4.

    • Value type: int.

    • Supported version: OMS V3.3.1 and later.

    [Kafka parameters] batchSize

    • Description: specifies the batch size of the Kafka instance, which is the same as the buffer size, in bytes.

    • Default value: 16M.

    • Value type: int.

    • Supported version: OMS V3.3.1 and later.

    [Kafka parameters] lingerMs

    • Description: specifies the time to wait before sending a batch in Kafka.

    • Default value: 100 ms.

    • Value type: int.

    • Supported version: OMS V3.3.1 and later.

    [Kafka parameters] properties

    • Description: specifies the transparent transmission parameters of Kafka.

    • Default values:

        {
          "max.request.size": "1024 * 1024 * 1024", // 1 GB
          "buffer.memory": "128 * 1024 * 1024", // 128 MB
          "retries": "1000",
          "max.block.ms": "30 * 60 * 1000", // 30 minutes
          "request.timeout.ms": "30 * 60 * 1000", // 30 minutes
          "acks": "1",
          "max.in.flight.requests.per.connection": "1",
          "compression.type": "lz4",
          "receive.buffer.bytes": "16 * 1024 * 1024",
          "send.buffer.bytes": "16 * 1024 * 1024"
        }
      
    • Valid values: Producer config parameters of Kafka.

    • Supported version: OMS V3.3.1 and later.

    [Authentication] securityProtocol

    • Description: specifies the authentication protocol.

    • Default value: Null.

    • Valid values: SASL_PLAINTEXT, SASL_SSL, PLAINTEXTSASL, and SSLSASL.

    • Supported version: OMS V3.3.1 and later.

    [Authentication] sslTruststoreLocation

    • Description: specifies the address of the SSL authentication files.

    • Default value: Null.

    • Valid values: Path.

    • Supported version: OMS V3.3.1 and later.

    [Authentication] saslConfig

    • Description: specifies the SASL parameters.

    • Default value: None.

    • Value range:

        {
          "mechanism": "The authentication mechanism. Valid values: GSSAPI, PLAIN, SCRAM-SHA-256, and SCRAM-SHA-512",
          "username": "The username and password are required for the PLAIN, SCRAM-SHA-256, and SCRAM-SHA-512 mechanisms.",
          "password": "The username and password are required for the PLAIN, SCRAM-SHA-256, and SCRAM-SHA-512mechanisms.",
          "kerberosPrincipal": "",
          "kerberosKeyTabFileLocation": "An authentication configuration file, which is required for the GSSAPI mechanism.",
          "jaasConfFileLocation": "An authentication configuration file, which is required for the GSSAPI mechanism.",
          "kerberosConfFileLocation": "The address of the Kerberos configuration file, which is required for the GSSAPI mechanism."
        }
      
    • Supported version: OMS V3.3.1 and later.

    [Serialization] serializerType

    • Description: specifies the serialization format.

    • Default value: DEFAULT.

    • Valid values: DEFAULT, DEFAULT_WITH_SCHEMA, SHAREPLEX, CANAL, DATAWORKS_V2, and DATAWORKS_V1.

    • Supported version: OMS V3.3.1 and later.

    isTopicMandatory

    • Description: specifies the whether to enable force existence check for topics.

    • Default value: true.

    • Valid values: true and false.

    • Supported version: OMS V4.0.1 and later.

    consumerGroup

    • Description: specifies to check whether a topic has a consumerGroup.

    • Default value: test.

    • Value type: String.

    • Supported version: OMS V4.0.1 and later.

    Previous topic

    JDBC-Sink
    Last

    Next topic

    DatahubSink
    Next
    What is on this page
    Starter class
    [Metadata] servers
    [Metadata] enableAsync
    [Distribution] partition
    [Distribution] partitionMode
    [Writing threads] workerNum
    [Kafka parameters] batchSize
    [Kafka parameters] lingerMs
    [Kafka parameters] properties
    [Authentication] securityProtocol
    [Authentication] sslTruststoreLocation
    [Authentication] saslConfig
    [Serialization] serializerType
    isTopicMandatory
    consumerGroup