ClickHouse

Updated at:

This reference defines the connection properties and provides configuration examples for the ClickHouse data source in DataWorks.

Property definition

  • Data source type: clickhouse

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

Connection string mode

Parameter Type Required Description
address JSON array Yes The host and port of the ClickHouse instance. Accepts a single host-port pair.
database String Yes The ClickHouse database name.
username String Yes The username used to connect to the database.
password String Yes The password for the specified username.
securityProtocol String No The authentication type. Valid values: authTypeNone (SSL disabled, default) and authTypeSsl (SSL enabled).
sslRootCertificateFile String No The ID of the SSL certificate. Required when securityProtocol is set to authTypeSsl.
properties JSON object No Additional driver properties, such as connection timeout settings.
envType String Yes The data source environment. Valid values: Dev (development) and Prod (production).

Configuration examples

Connection string mode

{
    "address": [
        {
            "host": "127.0.0.1",
            "port": 5432
        }
    ],
    "database": "db",
    "username": "aliyun",
    "password": "xxx",
    "securityProtocol": "AuthTypeNone",
    "properties": {
        "connectTimeout": "2000"
    },
    "envType": "Dev"
}