IBM Cloud Object Storage
The IBM Cloud Object Storage destination writes data to IBM Cloud Object Storage. For information about supported versions, see Supported Systems and Versions in the Data Collector documentation.
When you configure the IBM Cloud Object Storage destination, you specify the endpoint to connect to. In addition, you can enable the destination to use SSL. You can also use a connection to configure the destination.
You specify the file name, file suffix, and file type to write to, and optionally specify file and object prefixes. You also specify the table and table type to load the data into.
Before you use the IBM Cloud Object Storage destination, you must complete some prerequisite tasks.
Prerequisites
Before you configure the IBM Cloud Object Storage destination, complete the following prerequisite tasks.
Bucket
When you configure the bucket where records should be written, you can specify an exact bucket name or you can use an expression that evaluates to a bucket name.
For example, to write to buckets based on data in the Type field, you can use the following
expression to define the bucket: ${record:value('/Type')}.
With this expression, the destination writes records to buckets based on the data in the Type field.
Troubleshooting IBM Connectivity Service
The IBM Cloud Object Storage 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 Cloud Object Storage destination
Configure an IBM Cloud Object Storage destination to write data to IBM Cloud Object Storage.