Built-in Git server

Cloudera Migration Assistant deploys a Gitea Git server with the Cloudera Migration Assistant engine. Cloudera Data Engineering migrations and Code Migrator store code and resources in it. Cloudera Migration Assistant creates and manages its organizations, repositories, and users.

Gitea is an internal component that Cloudera Migration Assistant uses, and you use it only for troubleshooting. It is not intended for end users. Source agents push data to it with dedicated Gitea bot users.

The built-in Git server has the following purposes:

  • Cloudera Data Engineering migrations – During a Cloudera Data Engineering migration, the agent on the source side pushes the Spark resources and the Airflow DAGs of the workloads to the cde-deployments repository. The agent on the target side reads them from there. At the end of each execution, Cloudera Migration Assistant merges the plan branch of the execution into the base branch, so the repository keeps both the original files and the migrated files. For the folder layout, see About Spark job migration.
  • Code Migrator – When a refactor job uses a repository outside the built-in Git server, Code Migrator copies the repository into the CMA-Workspace organization, and writes its changes to a new branch of the copy. It reads only from your own repository. When you turn on Use local git server in a job, Code Migrator works on a repository that is already in the built-in Git server. Code Migrator also records what it learns from refactor jobs in the migration-rules repository, and uses these rules in later jobs.

Cloudera Migration Assistant connects its own services to the built-in Git server, so you do not set up a connection for it. To use your own Git repositories, see Managing user connections.

Organizations and repositories

Table 1. Organizations and repositories of built-in Git server
Organization Repository What it holds
CMA cde-deployments The Spark resources and Airflow DAGs that move between agents during Cloudera Data Engineering migrations
CMA migration-rules The rules that Code Migrator learns from refactor jobs
CMA-Workspace One repository for each repository that Code Migrator imports Copies of your repositories, with the branches that Code Migrator creates. The organization is private.

Cloudera Migration Assistant creates these organizations and repositories when you deploy the engine. Their names are fixed. Do not rename or delete them.

Users

Table 2. Users of built-in Git server
User Purpose Password
cmaadmin The user for troubleshooting the built-in Git server. It owns the CMA and CMA-Workspace organizations, and can read and change every repository in them. It is not a site administrator. Gitea CMA User Password in the engine configuration. If you leave the field empty, Cloudera Migration Assistant generates it.
gitea-admin The site administrator. Use it only for emergency access. Cloudera Migration Assistant generates it and stores it in the [***INSTANCE***]-gitea-admin Secret.
Service users The Cloudera Migration Assistant server, the agents, and Code Migrator each have their own user, with an access token that reaches only the repositories that the service needs. These users have no password, and cannot sign in to the Gitea web interface. None. Cloudera Migration Assistant manages their access tokens.

The services read their access tokens each time they use them, so a new token takes effect without a restart. To change the cmaadmin password, see Rotating LLM API key and Gitea password.

Opening built-in Git server

The built-in Git server is at https://[***INSTANCE***]-gitea.[***CLUSTER-DOMAIN***], where [***INSTANCE***] is the name of the Cloudera Migration Assistant engine instance and [***CLUSTER-DOMAIN***] is the domain name of the cluster.

  1. Open https://[***INSTANCE***]-gitea.[***CLUSTER-DOMAIN***] in a browser.

    The Gitea web interface is behind the Anywhere Cloud sign-in. Anywhere Cloud asks you to sign in, if you have not signed in yet.

  2. On the Gitea sign-in page, sign in as cmaadmin with the Gitea CMA User Password.

    The Gitea web interface opens and displays the CMA and CMA-Workspace organizations.

The Gitea sign-in page is separate from the Anywhere Cloud sign-in. You cannot sign in to Gitea with your Anywhere Cloud account, and you cannot register a new Gitea account. Git clients connect over HTTPS only, with the cmaadmin user and its password. SSH access is not available.

Limitations

The built-in Git server has the following limitations:

  • Large files – Cloudera Migration Assistant does not store files larger than 50 MB in the built-in Git server. It keeps them on the Cloudera Migration Assistant engine, and puts a small pointer file named [***FILE***].cmablob in the repository instead.
  • Storage – The repositories are on a 10 GiB volume, and their records are in the gitea database. See Backing up and restoring Cloudera Migration Assistant database.
  • Network access – Only the Cloudera Migration Assistant services, the agents, and the Anywhere Cloud ingress gateway can reach the built-in Git server. See Security overview for Cloudera Migration Assistant.