IBM watsonx.data
6.3 and later
The IBM watsonx.data destination writes data to IBM watsonx.data. For information about supported versions, see Supported Systems and Versions in the Data Collector documentation. You can use the IBM watsonx.data destination with Data Collector 6.3 and later.
When you configure the IBM watsonx.data destination, you specify the host name, port number, and deployment details. In addition, you can enable the destination to use SSL. You can also use a connection to configure the destination.
You specify tables to load the data into and optionally configure the destination to create new tables when needed.
Before you use the IBM watsonx.data destination, you must complete some prerequisite tasks.
Prerequisites
Before you configure the IBM watsonx.data destination, complete the following prerequisite tasks.
Specifying tables
You can use the IBM watsonx.data destination 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 destination to create tables when they do not exist in IBM watsonx.data.
- Table
- The destination creates a table if the specified table does not exist. The destination names new tables from the first record processed.
- Table columns
- In the created tables, the destination determines the columns from the first record processed. The destination infers the data types from the data in the record.
- Primary key columns
- The destination creates tables without primary key columns.
Select the Auto Create Table property on the Tables tab to configure the destination to create tables.
watsonx.data data types
The IBM watsonx.data destination 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 destination
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 -X GET <HOST PREFIX>/tunneling/rest/<ENGINE ID>/rest/v1/flight/state -H "Content-Type:application/json" -H "X-Requested-By:curl" -H "X-SS-REST-CALL:true" -H "X-SS-App-Component-Id: <CRED_ID>" -H "X-SS-App-Auth-Token: <CRED_TOKEN>." -i |
| Restart IBM Connectivity Service |
curl -X GET <HOST PREFIX>/tunneling/rest/<ENGINE ID>/rest/v1/flight/restart -H "Content-Type:application/json" -H "X-Requested-By:curl" -H "X-SS-REST-CALL:true" -H "X-SS-App-Component-Id: <CRED_ID>" -H "X-SS-App-Auth-Token: <CRED_TOKEN>" -i |
| Get IBM Connectivity Service logs |
curl -X GET <HOST PREFIX>/tunneling/rest/<ENGINE ID>/rest/v1/flight/logs -H "Content-Type:application/json" -H "X-Requested-By:curl" -H "X-SS-REST-CALL:true" -H "X-SS-App-Component-Id: <CRED_ID>" -H "X-SS-App-Auth-Token: <CRED_TOKEN>" -i |
Configuring an IBM watsonx.data destination
Configure an IBM watsonx.data destination to write data to IBM watsonx.data.