Engine fails to deploy: out of memory

An engine instance of Cloudera Migration Assistant that does not have enough memory, node capacity, or temporary storage does not start, or it restarts. Add capacity to the cluster.

Symptoms

One or more of the following:

  • On the Engine instances tab of the Apps page in the Anywhere Cloud Console, the Cloudera Migration Assistant or Cloudera Migration Assistant Agent engine instance does not reach Running.
  • Pods of the instance stay in the Pending state.
  • Pods of the instance restart repeatedly, or are displayed as OOMKilled or Evicted.

To find the state of the pods and the reason, run these commands in the namespace of the instance:

kubectl -n [***NAMESPACE***] get pods
kubectl -n [***NAMESPACE***] describe pod [***POD-NAME***]

Look at the Events section and at Last State in the output of kubectl describe pod.

Pods stay Pending because nodes are full

Each component of Cloudera Migration Assistant requests a fixed amount of CPU and memory. If no node has enough free CPU or memory, Kubernetes cannot schedule the pod, and the events show Insufficient memory or Insufficient cpu.

Solution

  1. Compare the size of the CMA Nodes node group with the requirements in Cluster sizing.
  2. Add nodes to the node group, or use nodes with more CPU and memory.
    Add capacity for each agent that you run on the Anywhere Cloud cluster. You cannot change the memory of a single Cloudera Migration Assistant component.
  3. Wait until the pods are scheduled and the status of the instance is Running on the Engine instances tab of the Apps page.

Pods stay Pending because their volumes are not bound

When you turn on Use Shared Storage, Cloudera Migration Assistant requests its volumes from the shared-fs storage class. If the cluster has no shared-fs storage class, the volumes stay Pending, and the pods that use them do not start.

Solution

  1. Check the storage classes of the cluster:
    kubectl get storageclass
  2. If shared-fs is not listed, ask your Anywhere Cloud administrator to set up shared storage.
    You cannot turn off Use Shared Storage after you create the instance. To deploy without shared storage, deploy a new instance with Use Shared Storage turned off. See Engine configuration settings.

Agent pod is evicted during large migration

When an agent migrates large Cloudera Data Engineering files, it uses up to 26 GiB of temporary space on its node. If the node has less free ephemeral storage, Kubernetes evicts the agent pod, and the migration command fails.

Solution

  1. Check the events of the agent pod for an eviction because of ephemeral storage.
  2. Free disk space on the nodes, or add nodes with larger disks.
    See Cluster sizing.
  3. Run the failed migration again.