Skip to main content

Bare Metal Upgrade Steps

Follow the steps below to upgrade your OpenMetadata bare-metal deployment. Before proceeding, make sure you have completed the prerequisites.

Upgrade Process

Complete the following steps in order to upgrade.

Step 1: Download the Binaries for the Release You Want to Install

OpenMetadata release binaries are maintained as GitHub releases. To download a specific release binary:
  • Visit github.com/open-metadata/OpenMetadata/releases. The latest release will be at the top of this page.
  • Locate the Assets’ section for the release you want to upgrade to.
  • Download the release binaries. The release binaries will be in a compressed tar file named using the following convention, openmetadata-x.y.z.tar.gz Where x, y, z are the major, minor, and patch release numbers, respectively.

Step 2: Extract the Release Binaries From the Download File

Using the command-line tool or application of your choice, extract the release binaries. For example, to extract using tar, run the following command.
This will create a directory with the same name as the download file minus the .tar and .gz extensions.

Step 3: Navigate Into the Directory Created by Extracting the Release Binaries

Change into the new directory by issuing a command similar to the following.
For example, to navigate into the directory created by issuing the tar command above, you would run the following command.

Step 4: Stop the OpenMetadata Server

OpenMetadata ships with a few control scripts. One is openmetadata.sh. This script enables you to start, stop, and perform other deployment operations on the OpenMetadata server. Most OpenMetadata releases will require you to migrate your data to updated schemas. Before you migrate your data to the new release you are upgrading to, stop the OpenMetadata server from the directory of your current installation by running the following command:

Step 5: Migrate the Database Schemas and Elasticsearch Indexes

The bootstrap/openmetadata-ops.sh script enables you to perform a number of operations on the OpenMetadata database (in MySQL) and index (in Elasticsearch).

Step 6: Restart the OpenMetadata Server

Once you’ve dropped and recreated your data in the new version, restart the OpenMetadata server using the new release binaries. You may restart the server by running the following command.

Step 7: Upgrade Airflow and the Ingestion Packages

If you run Airflow on the same host for metadata ingestion, upgrade it to the version that matches your new OpenMetadata release. See the Airflow and Python version table for the supported versions. Install Airflow together with the matching openmetadata-managed-apis and openmetadata-ingestion packages in a single pip command, using the airflow-constraints-<airflow-version>.txt constraints file from the release. Download it from the ingestion directory of the OpenMetadata repository at your release tag (x.y.z-release). For example, use https://raw.githubusercontent.com/open-metadata/OpenMetadata/x.y.z-release/ingestion/airflow-constraints-<airflow-version>.txt. Run the following command:
Replace x.y.z with your OpenMetadata server version and <plugins> with the connector plugins you use.
Always pin apache-airflow to the exact version for your release. openmetadata-managed-apis only requires a minimum Airflow version, so without the pin pip can keep your existing Airflow installation.
The constraints file targets Python 3.12, which is the recommended Python version.
After the packages are installed, run the Airflow database migration, then restart the Airflow Scheduler and the Airflow API Server:

Post-Upgrade Steps

Complete these steps after the upgrade finishes.

Reindex

Reindex all the entities after the upgrade.

With UI

Follow these steps to reindex using the UI.
1

Open the Search Indexing Application

Click the Profile icon and go to Settings > Applications. Then click Search Indexing.
2

Run the Application

Select the Schedule tab and click Run now. Every reindex rebuilds the search indexes from scratch, so the application has no Recreate Indexes option. The Entities field defaults to All, which is the setting you need after an upgrade.
For more information, see Reindexing Search. If you use the Resource Description Framework (RDF), run the RDF Index application from Settings > Applications after the search reindex finishes.

With Kubernetes

Follow these steps to reindex using the command-line interface (CLI).
1

List the CronJobs

Check the available CronJobs:
The output looks similar to this:
2

Create a Job from the CronJob

Create a one-time job from the cron-reindex CronJob. Replace <job_name> with a name of your choice.
The output looks similar to this:
3

Check the Job Status

Verify that the job completed:
The output looks similar to this:
4

View the Logs

Replace <job_name> with the name of the job you created:

(Optional) Update Your OpenMetadata Ingestion Client

If you run the ingestion workflows externally or use a custom Airflow installation, make sure the Python client you use matches the OpenMetadata server version. For example, if you upgrade the server to the version x.y.z, update your client with:
The plugin parameter is a comma-separated list of the sources you want to ingest. For example:
You can find specific instructions for each connector in the Connectors section. If you work with your own Airflow deployment, and not the openmetadata-ingestion image, also upgrade openmetadata-managed-apis:

Re-Deploy Ingestion Pipelines

Re-deploy your ingestion pipelines so that they run with the upgraded server. Ingestion pipelines appear as agents in the UI.

With UI

Follow these steps to re-deploy the agents using the UI.
1

Open the Service

Go to Connections > Databases and open the service. Repeat these steps for every service that has agents, including the other service types, such as Dashboards or Messaging.
2

Open the Metadata Agents

Click the Agents tab.
3

Re-Deploy the Agent

Click the ⋮ menu next to the agent and select Re-deploy. You need edit permission on the service.
To re-deploy every service pipeline at once, run sh openmetadata-ops.sh deploy-pipelines. For more information, see The openmetadata-ops Script.

With Kubernetes

Follow these steps to deploy the pipelines using the CLI.
1

List the CronJobs

Check the available CronJobs:
The output looks similar to this:
2

Create a Job from the CronJob

Create a one-time job from the cron-deploy-pipelines CronJob. Replace <job_name> with a name of your choice.
The output looks similar to this:
3

Check the Job Status

Verify that the job completed:
The output looks similar to this:
4

View the Logs

Replace <job_name> with the name of the job you created:
If you see broken directed acyclic graphs (DAGs), select all the pipelines from all the services and re-deploy them.

The openmetadata-ops Script

The openmetadata-ops script manages and migrates the database and the search indexes, reindexes existing data into Elasticsearch or OpenSearch, and re-deploys service pipelines.

Usage

The script is in the bootstrap directory of your OpenMetadata installation. Its general form is:

Commands

The table lists the most common commands.
drop-create permanently deletes all tables and metadata in the configured database. Never run it as part of a normal upgrade. drop-indexes removes all search indexes, and db-tune with --apply changes the database. Back up your database before you run any of these commands.

Examples

Display the help message:
Migrate the database schema and search index mappings:
Reindex data into the search engine: