Extracting historical data from a reporter database for cloud native analytics training
To learn about cloud native analytics, you can install a historical data set to train the system. Learn how to extract historical data from a reporter database, such as Oracle.
Before you begin
Note: For a production system, it is recommended to train the system with
live event data. The procedure of loading historical data to train the system is applicable to proof
of concept (PoC) or test systems only.
Before you complete these steps, complete the following
prerequisite items:- The ea-events-tooling container is installed
by the operator. It is not started as a pod, and contains scripts to install data on the system,
which can be run with the
kubectl run
command. - Find the values of image and
image_tag for the ea-events-tooling container, from the
output of the following
command:
Where <release_name> is the custom resource release name of your cloud deployment. For example, in the following output, image iskubectl get noi <release_name> -o yaml | grep ea-events-tooling
ea-events-tooling
, and image_tag is2.0.14-20200120143838GMT
.kubectl get noi <release_name> -o yaml | grep ea-events-tooling --env=CONTAINER_IMAGE=image-registry.openshift-image-registry.svc:5000/default/ea-events-tooling:2.0.14-20200120143838GMT \ --image=image-registry.openshift-image-registry.svc:5000/default/ea-events-tooling:2.0.14-20200120143838GMT \
Hybrid deployment: For a hybrid deployment, run the following command:
Where <release_name> is the custom resource release name of your hybrid deployment.kubectl get noihybrid <release_name> -o yaml | grep ea-events-tooling
IBM® Netcool® for AIOps deployment: For an online or offline deployment (airgap) of Netcool Operations Insight® with IBM Cloud Pak for AIOps, find the values of image and image_tag from the noi-operator CSV file. Run the following command:
Where <noi-operator> is the noi-operator CSV file name.oc get csv <noi-operator> -o yaml | grep olm.relatedImage.NOI_ea-events-tooling: | awk -F ': ' '{print $2}'
- If you created your own docker registry
secret, then patch your
service
account.
Where noi-registry-secret is the name of the secret for accessing the Docker repository.kubectl patch serviceaccount default -p '{"imagePullSecrets": [{"name": "noi-registry-secret"}]}'
Note: As an alternative to patching the default service account with image pull secrets, you can add the following option to each kubectl run command that you issue:--overrides='{ "apiVersion": "v1", "spec": { "imagePullSecrets": [{"name": "noi-registry-secret"}] } }'
About this task
Complete the following steps to extract data from an Oracle into a local file.