Administering Code Migrator
Code Migrator refactors Spark and Airflow code for a target version by using a large language model (LLM). It is available when the LLM connection of Cloudera Migration Assistant is on. As an administrator, you make it available, give users a role that can run it, and check its resources and logs.
Code Migrator writes the refactored code to a new branch named code-agent-branch-[***JOB-ID***], and never merges it. The
branch is always in the built-in Git server. When Use local git
server is turned on in a job, the branch is in the repository that you select
there. Otherwise, Code Migrator copies your repository into the CMA-Workspace organization, writes the branch to the copy, and never pushes to
your own repository. See Built-in Git server and Reviewing output on Git branches.
The following resources, data, and logs belong to Code Migrator:
- Resources – Code Migrator and the documentation search service run on the CMA Nodes node group. Their requests are part of the resource requests of each hardware tier. See Cluster sizing.
- Data – Cloudera Migration Assistant stores Code Migrator jobs,
their iterations, their plans, and their conversation history in the
cma-masterdatabase. See Cloudera Migration Assistant database. - Logs – Code Migrator writes its logs to the
cma-serviceslog stream. See Telemetry and audit logging. - Token use – Cloudera Migration Assistant records the LLM tokens of each refactor job, but the web interface does not display them, and Cloudera Migration Assistant does not report cost. Check token use and cost with your LLM provider.
To turn Code Migrator off, turn off Enable LLM.
You are an Anywhere Cloud administrator.
cma-migrator or cma-admin role can
create and run refactor jobs. Users with the cma-viewer role can view refactor
jobs, but cannot create or run them. For the steps, see Creating refactor jobs.