Collecting diagnostics and logs
Anywhere Cloud collects the logs of the Cloudera Migration Assistant engines and packages them in a diagnostic bundle. Agents on Cloudera Base on premises clusters keep their logs on their hosts. Send the bundle, the agent logs, and the details of the problem to Cloudera Support.
Diagnostic bundle
The diagnostic bundle of an Anywhere Cloud cluster holds the logs and the configuration state of the platform and of the engines that run on it. Cloudera Support uses it to investigate problems.
The diagnostic bundle includes the following:
- System logs
- Configuration details
- Diagnostic information
To collect the bundle, see Collecting diagnostic bundles, and Downloading the diagnostic bundle in the Anywhere Cloud documentation.
Engine logs
The Cloudera Migration Assistant engine and the Cloudera Migration Assistant Agent engine write their logs to
standard output. Anywhere Cloud collects the logs and writes them to the
S3 bucket that you bound to the logs purpose, in these log streams:
| Log stream | Engine | What it holds |
|---|---|---|
cma-services |
Cloudera Migration Assistant | The logs of the Cloudera Migration Assistant server, the authorization service, and Code Migrator. |
cma-platform |
Cloudera Migration Assistant | The logs of the built-in Git server, the web interface server, the documentation search service, and jobs. |
cma-agent-services |
Cloudera Migration Assistant Agent | The logs of the agent service. |
awc-platform |
Both | The logs of the other pods in the namespace, such as the PostgreSQL database and the service mesh proxy. |
See Telemetry and audit logging.
If you have kubectl access to the namespace of an engine instance, you can also read the log of a pod directly:
kubectl -n [***NAMESPACE***] get pods
kubectl -n [***NAMESPACE***] logs [***POD-NAME***]
To read the log of the previous container after a pod restarts, add --previous to the kubectl logs command.
Logs of agents on Cloudera Base on premises clusters
An agent that runs on a Cloudera Base on premises cluster keeps its logs on the host where it runs. The diagnostic bundle of the Anywhere Cloud cluster does not include them. Collect them from the agent host:
| Item | Location |
|---|---|
| Agent server log | /var/log/cma-agent/cma-agent-server.log |
| Log directory | /var/log/cma-agent/ |
| Agent home directory, with its configuration and data | /var/lib/cma-agent/ |
| Custom service descriptor (CSD) of the agent, on the Cloudera Manager Server host | /opt/cloudera/csd/ |
You can also open the log of the agent role in Cloudera Manager, from the CMA Agent service.
What to send to Cloudera Support
Attach the diagnostic bundle of the Anywhere Cloud cluster to the support case. For an agent on a Cloudera Base on premises cluster, also attach the agent server log. Add these details of the problem:
- The names of the Cloudera Migration Assistant engine instance and of the agent instances that are involved
- The ID of the command, the execution, or the Code Migrator job that failed. The Commands and Executions pages and the Refactor page display the IDs.
- The time when the problem started, with the time zone
- The error message, as text or as a screenshot
