All Products
Search
Document Center

DataWorks:Doris

Last Updated:Mar 26, 2026

Configure an Apache Doris data source in DataWorks to read from and write to Doris clusters in data integration tasks.

Property definition

  • Data source type: doris

  • Supported configuration mode (ConnectionPropertiesMode): Connection string mode (UrlMode)

Connection string mode

ParameterTypeRequiredDefaultDescription
addressArrayYesThe address, which contains only a single pair of host and port.
loadAddressArrayYesThe FE endpoint, which can contain one or more pairs of host and port.
databaseStringYesThe name of the database.
usernameStringYesThe username.
passwordStringYesThe password.
propertiesJSON ObjectNoAdditional driver properties, such as useSSL and socketTimeout.
envTypeStringYesThe data source environment. Valid values: Dev (development environment), Prod (production environment).

Configuration examples

Minimal configuration

Use this configuration when no additional driver properties are needed:

{
    "envType": "Prod",
    "address": [
        {
            "host": "127.0.0.1",
            "port": "3306"
        }
    ],
    "loadAddress": [
        {
            "host": "127.0.0.2",
            "port": "8031"
        }
    ],
    "database": "my_database",
    "username": "my_username",
    "password": "my_password"
}

Configuration with driver properties

Add properties to customize driver behavior, such as disabling SSL or setting a socket timeout:

{
    "envType": "Prod",
    "address": [
        {
            "host": "127.0.0.1",
            "port": "3306"
        }
    ],
    "loadAddress": [
        {
            "host": "127.0.0.2",
            "port": "8031"
        }
    ],
    "database": "my_database",
    "username": "my_username",
    "password": "my_password",
    "properties": {
        "socketTimeout": "2000"
    }
}