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:
-
Go to https://cloud.ibm.com/.
-
At the top of the page, from the Manage sub-menu, select Access (IAM).
-
Click Service IDs and Create.
-
Provide Create service ID details.
-
On the Access tab, perform the following actions:
a. Click Assign access.
b. In the Service search field, type watsonx.data and click it. Click Next.
c. In the Resources section, ensure that All resources is selected. Click Next.
d. In the Roles and actions section, select MetastoreAccess and Administrator, and click Next.
e. Click Add and Assign.
-
Click the API keys tab and click Create.
-
Provide Create API key details. You must name the API key as ibmlhapikey.
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-hms create -connection-name <your connection name> -hms-token <your API key obtained in the `Before you begin` section> -hms-user "ibmlhapikey" -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. You also must ensure that theurlis in the followingthrift://<host>:<port>format when you runnz setup-hmscommand.hms-useris by defaultibmlhapikey.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.