IBM watsonx.data
The IBM watsonx.data target writes data to IBM watsonx.data. For information about supported versions, see Supported systems and versions.
When you configure the IBM watsonx.data target, you specify the host name, port number, and deployment details. In addition, you can enable the target to use SSL. You can also use a connection to configure the target.
You specify tables to load the data into and optionally configure the target to create new tables when needed.
Before you use the IBM watsonx.data target, you must complete some prerequisite tasks.
Prerequisite
About this task
Before you configure the IBM watsonx.data target, complete the following prerequisite task.
Procedure
auto or true.Specifying tables
You can use the IBM watsonx.data target to write to one or more tables.
- Single table
- To write data to a single table, simply enter the table name and schema name for the table.
- Multiple tables in a single schema
- To write data to multiple tables in a single schema, specify a record field or record header attribute in the record that defines the table names as follows.
- Multiple tables in multiple schemas
- To write data to multiple tables in multiple schemas, specify record fields or record header attributes in the record that define the table and schema names as follows.
Use the Table Name and Schema Name properties on the Table tab to specify the tables to write to.
Creating tables
You can configure the IBM watsonx.data target to create tables when they do not exist in IBM watsonx.data.
- Table
- The target creates a table if the specified table does not exist. The target names new tables from the first record processed.
- Table columns
- In the created tables, the target determines the columns from the first record processed. The target infers the data types from the data in the record.
- Primary key columns
- The target creates tables without primary key columns.
Select the Auto Create Table property on the Tables tab to configure the target to create tables.
watsonx.data data types
The IBM watsonx.data target converts Data Collector data types into IBM watsonx.data data types.
- Date
- Datetime
- Time
- Zoned Datetime
| Data Collector data type | IBM watsonx.data data type |
|---|---|
| Boolean | Boolean |
| Byte | Integer |
| Char | Varchar |
| Date | Date |
| Datetime | Timestamp |
| Decimal | Decimal |
| Double | Double |
| Float | Real |
| Integer | Integer |
| Long | Bigint |
| Short | Integer |
| String | Varchar |
| Time | Time |
| Zoned Datetime | Timestamp |
Troubleshooting IBM Connectivity Service
The IBM watsonx.data target
connects to the database through IBM Connectivity Service. IBM Connectivity Service and all stages that use the service are bundled into
the IBM Connectivity Service stage library,
streamsets-datacollector-ibm-connectivity-service-lib. By default, Data Collector runs IBM Connectivity Service when the IBM
Connectivity Service stage library is installed.
| Call | CURL request |
|---|---|
| Get IBM Connectivity Service state |
curl --location 'https://<engine url>/rest/v1/flight/state' --header 'Authorization: Bearer <IBM Cloud API key> |
| Restart IBM Connectivity Service |
curl --location 'https://<engine url>//rest/v1/flight/restart' --header 'Authorization: Bearer <IBM Cloud API key> |
| Get IBM Connectivity Service logs |
curl --location 'https://<engine url>//rest/v1/flight/state' --header 'Authorization: Bearer <IBM Cloud API key> |
Configuring an IBM watsonx.data target
About this task
Configure an IBM watsonx.data target to write data to IBM watsonx.data.