IBM watsonx.data
If you’re new to Unstructured, read this note first.
Before you can create a destination connector, you must first sign up for Unstructured. After you sign up, the Unstructured user interface (UI) appears, which you use to create the destination connector.
After you create the destination connector, add it along with a source connector to a workflow. Then run the worklow as a job. To learn how, try out the hands-on UI quickstart or watch the 4-minute video tutorial.
You can also create destination connectors with the Unstructured API. Learn how.
If you need help, reach out to the community on Slack, or contact us directly.
You are now ready to start creating a destination connector! Keep reading to learn how.
Send processed data from Unstructured to IBM watsonx.data.
The requirements are as follows.
-
An IBM Cloud account. Create an IBM Cloud account if you do not already have one.
-
An API key for the IBM Cloud account. If you do not have one already, create one as follows:
- Log in to your IBM Cloud account.
- In the top navigation bar, click Manage and then, under Security and access, click Access (IAM).
- On the sidebar, under Manage identities, click API keys.
- With the View list showing My IBM Cloud API keys, click Create.
- Enter some Name and an optional Description for the API key.
- Leave Leaked action set to Disable the leaked key and Session creation set to No.
- Click Create.
- Click Copy or Download to copy or save the API key to a secure location. You won’t be able to access this API key from this screen again.
-
An IBM Cloud Object Storage (COS) instance in the account, and a bucket within that instance. If you do not have them already, create them as follows:
- Log in to your IBM Cloud account.
- On the sidebar, click the Resource list icon. If the sidebar is not visible, click the Navigation Menu icon to the far left of the top navigation bar.
- Click Create resource.
- With IBM Cloud catalog selected, search for and select Object Storage.
- Complete the on-screen instructions to finish creating the COS instance.
- With the COS instance’s settings page shown, on the Buckets tab, click Create bucket.
- Complete the on-screen instructions to finish creating the bucket.
-
The name, region, and public endpoint for the target bucket within the target Cloud Object Storage (COS) instance. To get these:
-
On the sidebar, click the Resource list icon. If the sidebar is not visible, click the Navigation Menu icon to the far left of the top navigation bar.
-
In the list of resources, expand Storage, and then click the target COS instance.
-
On the Buckets tab, click the target bucket.
-
On the Configuration tab, note the following:
- Under Bucket details, note the Bucket name. This is the bucket’s name.
- Under Bucket details section, note the value inside of the parentheses inside Location, for example
us-east
. This is the bucket’s region. - Under Endpoints, note the value of Public, for example
s3.us-east.cloud-object-storage.appdomain.cloud
. (Ignore the values of Private and Direct). This is the bucket’s public endpoint.
-
An HMAC access key ID and secret access key for the target Cloud Object Storage (COS) instance. If you do not have them already, get or create them as follows:
-
On the sidebar, click the Resource list icon. If the sidebar is not visible, click the Navigation Menu icon to the far left of the top navigation bar.
-
In the list of resources, expand Storage, and then click the target COS instance.
-
On the Service credentials tab, if there is a credential that you want to use in the list, expand the credential, and copy the following values to a secure location:
access_key_id
undercos_hmac_keys
, which represents the HMAC access key ID.secret_access_key
undercos_hmac_keys
, which represents the HMAC secret access key.
After you have copied the preceding values, you have completed this procedure.
-
If there is not a credential that you want to use, or there are no credentials at all, click New Credential.
-
Enter some Name for the credential.
-
For Role, select at least Writer, leave Select Service ID set to Auto Generated, switch on Include HMAC Credential, and then click Add.
-
In the list of credentials, expand the credential, and copy the following values to a secure location:
access_key_id
undercos_hmac_keys
, which represents the HMAC access key ID.secret_access_key
undercos_hmac_keys
, which represents the HMAC secret access key.
-
An IBM watsonx.data data store instance in the IBM Cloud account. If you do not have one already, create one as follows:
- Log in to your IBM Cloud account.
- On the sidebar, click the Resource list icon. If the sidebar is not visible, click the Navigation Menu icon to the far left of the top navigation bar.
- Click Create resource.
- With IBM Cloud catalog selected, search for and select watsonx.data.
- Complete the on-screen instructions to finish creating the watsonx.data data store instance.
-
An Apache Iceberg-based catalog within the watsonx.data data store instance. If you do not have one already, create one as follows:
-
On the sidebar, click the Resource list icon. If the sidebar is not visible, click the Navigation Menu icon to the far left of the top navigation bar.
-
In the list of resources, expand Databases, and then click the target watsonx.data data store instance.
-
Click Open web console.
-
If prompted, log in to the web console.
-
On the sidebar, click Infrastructure manager. If the sidebar is not visible, click the Global navigation icon to the far left of the top navigation bar.
-
Click Add component.
-
Under Storage, click IBM Cloud Object Storage, and then click Next.
-
Complete the on-screen instructions to finish creating the Iceberg catalog. This includes providing the following settings:
- Some display name for the component.
- The name of the target bucket within the target Cloud Object Storage (COS) instance that you noted earlier.
- The region for the target bucket, which you noted earlier.
- The public endpoint for the target bucket, which you noted earlier. For this screen only, be sure to prefix the public endpoint with
https://
. - The HMAC access key ID for the target COS instance, which you noted earlier.
- The HMAC secret access key for the target COS instance, which you noted earlier.
-
Next to Connection status, click Test connection to test the connection. Do not proceed until Successful is shown. If the connection is not successful, check the values you entered for the target bucket name, region, endpoint, access key, and secret access key, and try again.
-
Check the box labelled Associate Catalog.
-
Check the box labelled Activate now.
-
Under Associated catalog, for Catalog type, select Apache Iceberg.
-
Enter some Catalog name.
-
Click Associate.
-
On the sidebar, click Infrastructure manager. Make sure the catalog is associated with the appropriate engines. If it is not, rest your mouse on an unassociated target engine, click the Manage associations icon, check the box next to the target catalog’s name, and then click Save and restart engine.
To create an engine if one is not already shown, click Add component, and follow the on-screen to add an appropriate engine from the list of available Engines (for example, an IBM Presto engine).
-
The catalog name and metastore REST endpoint for the target Iceberg catalog. To get this:
- Log in to your IBM Cloud account.
- On the sidebar, click the Resource list icon. If the sidebar is not visible, click the Navigation Menu icon to the far left of the top navigation bar.
- In the list of resources, expand Databases, and then click the target watsonx.data data store instance.
- Click Open web console.
- If prompted, log in to the web console.
- On the sidebar, click Infrastructure manager. If the sidebar is not visible, click the Global navigation icon to the far left of the top navigation bar.
- In the Catalogs section, click the target Iceberg catalog.
- On the Details tab, note the value of Name representing the catalog name, and Metastore REST endpoint representing the metastore REST endpoint. (Ignore the Metastore Thrift endpoint value.)
-
A namespace (also known as a schema) and a table in the target catalog. If you do not have these already, create them as follows:
-
On the sidebar, click the Resource list icon. If the sidebar is not visible, click the Navigation Menu icon to the far left of the top navigation bar.
-
In the list of resources, expand Databases, and then click the target watsonx.data data store instance.
-
Click Open web console.
-
If prompted, log in to the web console.
-
On the sidebar, click Data manager. If the sidebar is not visible, click the Global navigation icon to the far left of the top navigation bar.
-
On the Browse data tab, under Catalogs associated, click the target catalog.
-
Click the ellipses, and then click Create schema.
-
Enter some Name for the schema, and then click Create.
-
On the sidebar, click Query workspace.
-
In the SQL editor, enter and run a table creation statement such as the following, replacing
<catalog-name>
with the name of the target catalog and<schema-name>
with the name of the target schema:Note that incoming elements that do not have matching column names will be dropped upon record insertion. For example, if the incoming data has an element named
sent_from
and there is no column namedsent_from
in the table, thesent_from
element will be dropped upon record insertion. You should modify the preceding sample table creation statement to add columns for any additional elements that you want to be included upon record insertion.
-
The name of the target namespace (also known as a schema) within the target catalog, and name of the target table within that schema. To get these:
- Log in to your IBM Cloud account.
- On the sidebar, click the Resource list icon. If the sidebar is not visible, click the Navigation Menu icon to the far left of the top navigation bar.
- In the list of resources, expand Databases, and then click the target watsonx.data data store instance.
- Click Open web console.
- If prompted, log in to the web console.
- On the sidebar, click Data manager. If the sidebar is not visible, click the Global navigation icon to the far left of the top navigation bar.
- On the Browse data tab, expand the name of the target catalog, and note the names of the target schema and target table.
-
The name of the column in the target table that uniquely identifies each of the records in the table.
To create the destination connector:
- On the sidebar, click Connectors.
- Click Destinations.
- Cick New or Create Connector.
- Give the connector some unique Name.
- In the Provider area, click IBM watsonx.data.
- Click Continue.
- Follow the on-screen instructions to fill in the fields as described later on this page.
- Click Save and Test.
Fill in the following fields:
- Name (required): A unique name for this connector.
- Iceberg Endpoint (required): The metastore REST endpoint for the target Apache Iceberg-based catalog within the IBM watsonx.data data store instance. Do not include
https://
in this value. - Object Storage Endpoint (required): The public endpoint for the target bucket within the IBM Cloud Object Storage (COS) instance that is associated with the catalog. Do not include
https://
in this value. - Object Storage Region (required): The region short ID (such as us-east) for the bucket.
- IAM API Key (required): A valid API key value for the IBM Cloud account.
- Access Key ID (required): A valid hash-based message authentication code (HMAC) access key ID for the COS instance.
- Secret Access Key (required): The HMAC secret access key for the access key ID.
- Catalog (required): The name of the target Apache Iceberg-based catalog within the IBM watsonx.data data store instance.
- Namespace (required): The name of the target namespace (also known as a schema) within the catalog.
- Table (required): The name of the target table within the namespace (schema).
- Max Retries: The maximum number of retries for the upload process. The default is
5
. - Record ID Key: The name of the column that uniquely identifies each record in the target table. The default is
record_id
.
Was this page helpful?