MariaDB Execute Action
The MariaDB Execute action plugin is available in the Hub.
The MariaDB action runs a MariaDB command.
Use this plugin when you want to run a MariaDB command before or after a data pipeline. For example, you might want to run an SQL update command on a database before the pipeline source pulls data from tables.
Configuration
Property | Macro Enabled? | Description |
---|---|---|
Host | Yes | Required. Host that MariaDB is running on. |
Port | Yes | Required. Port that MariaDB is running on. Default is 3306. |
Database | Yes | Required. MariaDB database name. |
Database Query | Yes | Required. Database query to execute. |
Username | Yes | Optional. User identity for connecting to the specified database. |
Password | Yes | Optional. Password to use to connect to the specified database. |
Use SSL | No | Optional. Turns on SSL encryption. The connection will fail if SSL is not available. Default is |
Keystore URL | No | Optional. URL to the client certificate KeyStore (if not specified, use defaults). Must be accessible at the same location on host where CDAP Master is running and all hosts on which at least one HDFS, MapReduce, or YARN daemon role is running. |
Keystore Password | No | Optional. Password for the client certificates KeyStore. |
Truststore URL | No | Optional. URL to the trusted root certificate KeyStore (if not specified, use defaults). Must be accessible at the same location on host where CDAP Master is running and all hosts on which at least one HDFS, MapReduce, or YARN daemon role is running. |
Truststore Password | No | Optional. Password for the trusted root certificates KeyStore. |
Driver Name | No | Required. Name of the JDBC driver to use. Default is mariadb. |
Use Compression | No | Optional. Use zlib compression when communicating with the server. Select this option for WAN connections. Default is No. |
Use ANSI Quotes | No | Optional. Treats “ as an identifier quote character and not as a string quote character. Default is No. |
Connection Arguments | Yes | Optional. A list of arbitrary string key/value pairs as connection arguments. These arguments will be passed to the JDBC driver as connection arguments for JDBC drivers that may need additional configurations. |
Auto Reconnect | No | Optional. Should the driver try to re-establish stale and/or dead connections. Default is No. |
Example
Suppose you want to execute a query against a MariaDB database named “prod” that is running on “localhost” port 3306, then configure the plugin with:
Property | Value |
---|---|
Host |
|
Port |
|
Database |
|
Database Query |
|
Driver Name |
|
Created in 2020 by Google Inc.