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.gzWherex,y,zare 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 usingtar, run the following command.
.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.Step 4: Stop the OpenMetadata Server
OpenMetadata ships with a few control scripts. One isopenmetadata.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
Thebootstrap/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 matchingopenmetadata-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:
x.y.z with your OpenMetadata server version and <plugins> with the connector plugins you use.
The constraints file targets Python 3.12, which is the recommended Python version.
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.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 The output looks similar to this:
cron-reindex CronJob. Replace <job_name> with a name of your choice.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 versionx.y.z, update your client with:
plugin parameter is a comma-separated list of the sources you want to ingest. For example:
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.
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 The output looks similar to this:
cron-deploy-pipelines CronJob. Replace <job_name> with a name of your choice.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: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 thebootstrap directory of your OpenMetadata installation. Its general form is: