Vertica

Updated at:

Connect a Vertica database to DataWorks as a data source to read from and write to Vertica in data integration tasks. Vertica data sources use connection string mode (UrlMode) for configuration.

Prerequisites

Before you begin, make sure you have:

  • A running Vertica database instance that DataWorks can reach over the network

  • A Vertica username and password with read or write permissions on the target database

  • The host address and port of the Vertica instance (default port: 5432)

Property definition

  • Data source type: vertica

  • Supported configuration mode (ConnectionPropertiesMode): UrlMode (connection string mode only)

Connection string mode

ParameterTypeRequiredDescriptionExample
addressJSON ArrayYesThe host and port of the Vertica instance. Specify exactly one host-port pair.[{"host": "127.0.0.1", "port": 5432}]
databaseStringYesThe name of the database.my_database
usernameStringYesThe username for authentication.xxxxx
passwordStringYesThe password for authentication.xxxxx
propertiesJSON ObjectNoAdditional JDBC driver properties.{"connectTimeout": "2000"}
envTypeStringYesThe environment for this data source. Valid values: Dev (development environment), Prod (production environment).Dev

Configuration examples

Connection string mode

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

Replace the placeholder values with your actual Vertica connection details:

PlaceholderReplace with
127.0.0.1The IP address or hostname of your Vertica instance
5432The port your Vertica instance listens on
dbThe name of your target database
xxxxx (username)Your Vertica username
xxxxx (password)Your Vertica password
DevThe environment: Dev for development, Prod for production