IBM DB2 Sink

The IBM DB2 sink plugin is available in the Hub.

Writes records to a DB2 table. Each record will be written to a row in the table.

Use this sink when you need to write to a DB2 table. For example, you periodically build a recommendation model for products on your online store. The model is stored in a FileSet and you want to export the contents of the FileSet to a DB2 table where it can be served to your users.

Column names would be autodetected from input schema.

Configuration

Property

Macro Enabled?

Description

Property

Macro Enabled?

Description

Reference Name

No

Required. Name used to uniquely identify this sink for lineage, annotating metadata, etc.

Driver Name

No

Required. Name of the JDBC driver to use.

Default is db211.

Host

Yes

Required. Host that DB2 is running on.

Default is localhost.

Port

Yes

Required. Port that DB2 is listening to.

Default is 50000.

Database

Yes

Required. DB2 database name.

Table Name

Yes

Required. Name of the table to export to.

Username

Yes

Optional. User identity for connecting to the specified database.

Password

Yes

Optional. Password to use to connect to the specified database.

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.

Example

You want to write output records to “users” table of DB2 database named “prod” that is running on “localhost”, port 50000, as “sa” user with “Test11” password (Ensure that the driver for DB2 is installed. You can also provide driver name for some specific driver, otherwise “db211” will be used.). Configure the plugin with:

Property

Value

Property

Value

Reference Name

snk1

Driver Name

db211

Host

localhost

Port

50000

Database

prod

Table Name

users

Username

sa

Password

Test11

 

Created in 2020 by Google Inc.