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:
verticaSupported configuration mode (
ConnectionPropertiesMode):UrlMode(connection string mode only)
Connection string mode
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
address | JSON Array | Yes | The host and port of the Vertica instance. Specify exactly one host-port pair. | [{"host": "127.0.0.1", "port": 5432}] |
database | String | Yes | The name of the database. | my_database |
username | String | Yes | The username for authentication. | xxxxx |
password | String | Yes | The password for authentication. | xxxxx |
properties | JSON Object | No | Additional JDBC driver properties. | {"connectTimeout": "2000"} |
envType | String | Yes | The 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:
| Placeholder | Replace with |
|---|---|
127.0.0.1 | The IP address or hostname of your Vertica instance |
5432 | The port your Vertica instance listens on |
db | The name of your target database |
xxxxx (username) | Your Vertica username |
xxxxx (password) | Your Vertica password |
Dev | The environment: Dev for development, Prod for production |
Is this page helpful?