Integrating NPSaaS with watsonx.data
You can integrate your IBM® Netezza® Performance Server for IBM Cloud Pak® for Data as a Service instance with watsonx.data.
Before you begin
Ensure that you obtained the IBM API key by following the steps:
-
Login to the IBM SaaS Console.
-
Select the account that is associated with your subscription. The Subscriptions page opens.
-
From the Subscriptions page, find the subscription for the instance that you want to add a service ID to. Then, click View subscription details.
-
Click the instance where you want to add a service ID. The Instance details tab opens.
-
Select the Service IDs tab and click Create service ID. The Create service ID window opens.
-
In the window, enter a name and choose a role for your service ID.
- The Service admin role can view, create, update, and delete users, roles, and groups for an instance.
- The Service owner role can take the same actions as the Service admin.
- The Service user role can view the instance, but this role doesn't include permissions that are related to user management like adding more users.
- Service level roles:
- MetastoreAccess - External users with read access to the metadata through HMS REST APIs in watsonx.data.
- DataAccess - Only supports IKC-watsonx.data service-to-service authorization to profile data in watsonx.data.
-
Click Create. The service ID is created and appears in the table on the Service IDs tab.
-
Click Options for the service ID and click View service ID details.
-
From the Service ID page, click Generate key.
-
In the Generate API key window, enter an API key name and the expiration date and click Generate key.
You must name the API key as
ibmlhapikey_Serviceid-<ID_OF_THE_NEW_SERVICE_ID_CREATED>. TheID_OF_THE_NEW_SERVICE_ID_CREATEDcan be obtained from the MCSP SaaS console. For example:ibmlhapikey_Serviceid-b8fd5bbf-a95e-4664-85f7-282047433195 -
Copy the API key from the window.
Integrating NPSaaS instance or remote client with watsonx.data by using nzcli
-
Download
nztool.curl -o nz -k <name of the API server URL from namespace provisioning page>/v2/download/nz-linux-amd64 -
Set up the environment variables.
export APISERVER_URL=<name of the API server URL from namespace provisioning page> export NZ_USER=<admin user name> export NZ_PASSWORD=<admin user password> -
Change the permissions on
nzcliexecutable.chmod +x nz -
Set up HMS with
nztool../nz setup-ms create -connection-name <your connection name> -hms-token <your API key obtained in the `Before you begin` section> -hms-user `ibmlhapikey_Serviceid-<ID_OF_THE_NEW_SERVICE_ID_CREATED>` -url <thrift endpoint URL retrieved from watsonx.data instance>
Where:
urlis the thrift endpoint URL, which you retrieve from watsonx.data instance. For more information, see Getting the HMS endpoint. Ensure that theurlis in the followingthrift://<host>:<port>format when you runnz setup-hmscommand.hms-useris by defaultibmlhapikey_Serviceid-<ID_OF_THE_NEW_SERVICE_ID_CREATED>.hms-tokenis your API key obtained in the Before you begin section.
After you registered to watsonx.data, you can create a remote database.
- Log in to your NPSaaS web console or download
nzsqlcommand-line tool from here. - Query your data from watsonx.data. For more information, see Querying data from watsonx.data.