CMA_AGENT service type is not available in Cloudera Manager

When the custom service descriptor (CSD) of the agent is not installed, Cloudera Manager does not offer the CMA Agent service, and you cannot add the agent to a Cloudera Base on premises cluster. Install the CSD and restart the Cloudera Manager Server.

Symptoms

This topic applies only to agents that run on a Cloudera Base on premises cluster. The Cloudera Migration Assistant engine runs on Anywhere Cloud, so you install only the agent CSD.

In Cloudera Manager, the Add Service wizard does not list the CMA Agent service, whose service type is CMA_AGENT.

Cause

One of the following:

  • The agent CSD file is not in the /opt/cloudera/csd/ directory of the Cloudera Manager Server host.
  • The cloudera-scm user cannot read the CSD file.
  • You did not restart the Cloudera Manager Server after you added the CSD file.

Solution

  1. On the Cloudera Manager Server host, list the CSD files:
    ls -l /opt/cloudera/csd/
  2. Look for a file whose name starts with CMA_AGENT-.
  3. If the file is missing, copy the agent CSD file of your Cloudera Migration Assistant version to /opt/cloudera/csd/.
    For the download location, see Installing and registering agents on Cloudera Base on premises clusters.
  4. Set the owner and the permissions of the file:
    sudo chown cloudera-scm:cloudera-scm /opt/cloudera/csd/CMA_AGENT-[***VERSION***].jar
    sudo chmod 644 /opt/cloudera/csd/CMA_AGENT-[***VERSION***].jar
  5. Restart the Cloudera Manager Server:
    sudo systemctl restart cloudera-scm-server
  6. Wait about two minutes until Cloudera Manager is available again, and sign in.
  7. Open the Add Service wizard for the cluster.
    The wizard lists the CMA Agent service. To add the service, you must also distribute and activate the agent parcel on the cluster. See Installing and registering agents on Cloudera Base on premises clusters.