Installing and registering agents on Cloudera Base on premises clusters

Install the Cloudera Migration Assistant agent on a Cloudera Base on premises cluster by using a parcel and a CSD in Cloudera Manager, and register it with the Cloudera Migration Assistant engine by using a one-time token.

  • Cloudera Migration Assistant is running, and you have its landing page URL, https://[***INSTANCE***]-gateway.[***CLUSTER-DOMAIN***]. See Network requirements.
  • You have a registration token for the agent. See Generating registration tokens.
  • You have Cloudera Manager administrator access to the cluster, and shell access to the Cloudera Manager Server host.
  • You have the user name and password of a Cloudera Manager user with the Admin role, for the agent to use.
  • The host that runs the agent has JDK 17 or later.
  • The host that runs the agent can reach the landing page URL, the agent connection URL, the built-in Git server URL, the Anywhere Cloud Console, and the Anywhere Cloud authentication service over HTTPS. See Network requirements.
  • If a private certificate authority (CA) signed the certificates of Anywhere Cloud, the host that runs the agent has a PEM file with the full certificate chain of the CA.

The agent runs as the CMA Agent service of the cluster. You do not install the Cloudera Migration Assistant engine or a CMA Master service on the cluster, because the Cloudera Migration Assistant engine runs on Anywhere Cloud.

You deploy the agent with two Cloudera Manager artifacts:

  • CMA Agent CSD – A custom service descriptor (CSD) file that adds the CMA Agent service type to Cloudera Manager. You download it to the Cloudera Manager Server host and restart Cloudera Manager, so that you can add the service.
  • CMA parcel – The package that contains the agent software. A parcel is a packaging format that Cloudera Manager uses to install and upgrade software on the hosts of a cluster. You add the remote parcel repository of Cloudera Migration Assistant, and then download, distribute, and activate the parcel from the Parcels page. To upgrade the agent later, you repeat these steps with the parcel of the higher version.

For more information about parcels, see Introduction to Parcels in the Cloudera Base on premises documentation.

  1. On the Cloudera Manager Server host, download the CMA Agent CSD file for your Cloudera Migration Assistant version to /opt/cloudera/csd/:
    wget -P /opt/cloudera/csd/ https://archive.cloudera.com/cma/[***VERSION***]/csd/CMA_AGENT-[***VERSION***].jar
  2. Change the owner of the CSD file:
    chown cloudera-scm:cloudera-scm /opt/cloudera/csd/CMA_AGENT-*.jar
  3. Restart the Cloudera Manager Server:
    systemctl restart cloudera-scm-server
  4. In Cloudera Manager, restart the Cloudera Management Service.
  5. Go to Hosts > Parcels, and click Parcel Repositories & Network Settings.
  6. Add the remote parcel repository https://archive.cloudera.com/cma/[***VERSION***]/parcels/, and click Save & Verify Configuration.
  7. On the Parcels page, find the CMA parcel, and click Download.
  8. Click Distribute.
  9. Click Activate.
  10. From the host that runs the agent, check that it can reach Cloudera Migration Assistant:
    curl -s https://[***INSTANCE***]-gateway.[***CLUSTER-DOMAIN***]/api/agent/config

    If a private CA signed the certificates, add --cacert [***PATH-TO-CA-FILE***] to the command.

    The command returns the connection settings of Cloudera Migration Assistant in JSON format.
  11. On the Cloudera Manager home page, open the actions menu of the cluster, and click Add Service.
  12. Select CMA Agent, and click Continue.
    Do not add a CMA Master service.
  13. If the wizard asks for a dependency on a CMA Master service, select none.
  14. Assign the Agent Server role to the host that runs the agent.
  15. Enter the agent settings:
    1. In CMA Gateway URL, enter the landing page URL of Cloudera Migration Assistant, https://[***INSTANCE***]-gateway.[***CLUSTER-DOMAIN***].
    2. In CMA Agent Registration Token, enter the registration token.
    3. In CM User and CM User Password, enter the credentials of the Cloudera Manager user with the Admin role.
    4. In Database Password, enter the password of the database of the agent, whatever the database type. The agent uses an embedded H2 database by default. Use PostgreSQL whenever possible.
    5. If a private CA signed the certificates of Anywhere Cloud, in Agent CA Certificate File, enter the path to the PEM file of the CA on the agent host.
    6. If the default Java on the host is lower than JDK 17, in CMA Java Home, enter the path to a JDK 17 or later installation.
  16. Leave CMA Agent OAuth2 Client Secret (Deprecated) empty.
    Cloudera Migration Assistant on Anywhere Cloud does not accept the shared client secret.
  17. Click Continue, and complete the wizard.
    Cloudera Manager starts the CMA Agent service. On its first start, the agent registers with Cloudera Migration Assistant.
  18. In Cloudera Migration Assistant, go to Agents, and click the Registration tab.
    The status of the agent is Active.
  19. Click the Instances tab.
    The agent is listed with the status ONLINE.

The agent is registered and connected to Cloudera Migration Assistant. Cloudera Manager passes the registration token to the agent when the agent starts, and does not write it to a configuration file. After the first start, the agent uses the credentials that it stored.

If the agent does not connect, see Agent does not connect to master, Agent registration token is rejected or expired, Agent port conflict on Cloudera Base on premises hosts, CMA_AGENT service type is not available in Cloudera Manager, or Agent starts but cluster does not appear.

Register the source cluster in the web interface of the agent. See Registering source clusters.