Provisioning an instance of Master Data Connect
Before you can use the IBM® Master Data Connect service, you must provision an instance using the command line interface.
Before you begin
- Ensure that the prerequisites are in place, the cluster has been configured, and the service has been installed.
- Create a Secret for the passwords used by Master Data Connect internal services by running the following
command:
oc create secret generic mdc-core-init-secret --from-literal=keystore.password=<myKeystorePassword> --from-literal=cassandra.password=<myCassandraPassword> --from-literal=elasticsearch.password=<myElasticsearchPassword> --from-literal=couchdb.password=<myCouchdbPassword> --from-literal=couchdb.cookie.password=<myCouchdbPassword> -n <namespace_to_deploy_to>
Replace the placeholder values with the appropriate passwords.
- Get a bearer token for the user, typically a Cloud Pak for Data administrator user, who has rights to provision a
new Master Data Connect instance. Run the following
command:
curl -k -X GET https://CPD-ROUTE-NAME/v1/preauth/validateAuth -H 'content-type: application/json' -H 'password: password' -H 'username: admin'
Replace the following values:Take note of the bearer token returned in the response. You will need to provide it in the provisioning command.Variable Replace with CPD-ROUTE-NAME The route URL of the Cloud Pak for Data server. password The password of the Cloud Pak for Data administrator user. user The user ID of the Cloud Pak for Data administrator user. - Get the current version of the Master Data Connect
service add-on. The add-on version number must be included as part of your provisioning request. Run
the following command:
curl -k -X POST \ https://CPD-ROUTE-NAME/zen-data/v1/addOn/query?show_all=true \ -H 'Authorization: Bearer BEARER-TOKEN' \ -H 'Content-Type: application/json' \ -d ' { "type": "mdc-app" }'
Replace the following values:Take note of theVariable Replace with CPD-ROUTE-NAME The route URL of the Cloud Pak for Data server. BEARER-TOKEN The bearer token value that you got for the current user in the previous prerequisite step. Version
value returned in the response. You will need to provide it in the provisioning command.