Upgrading the OpenShift Container Platform (OCP) version while Cloudera Data Engineering service is enabled, can cause database corruption in the
embedded MySQL database used for Cloudera Data Engineering. Follow the below steps
before starting the OCP version upgrade.
-
Identifying the CDE Namespace
-
Navigate to the Cloudera Data Engineering Overview page by
clicking the Data Engineering tile in the
Cloudera Data Platform (CDP) management
console.
-
In the CDE Services column, click Service Details for the CDE
service.
-
Note the Cluster ID shown in the page. For example, if the Cluster ID
is cluster-abcd1234, then the CDE Namespace is dex-base-abcd1234.
-
Use this CDE Namespace (in the above example, it is dex-base-abcd1234)
in the following instructions to run kubernetes commands.
-
Scale down Cloudera Data Engineering embedded database
Access the OpenShift cluster with OpenShift CLI or Kubernetes CLI, and scale
down the Cloudera Data Engineering embedded database statefulset
to 0 with the following command:
OpenShift
CLIoc scale statefulset/cdp-cde-embedded-db --namespace <CDE Namespace> --replicas 0
Kubernetes CLI
kubectl scale statefulset/cdp-cde-embedded-db --namespace <CDE Namespace> --replicas 0