Overview
Review the information in this section before downgrading. Perform any recommended actions.Downgrade paths
Follow the approved Enterprise Edition version pair and component order. Community Edition version paths do not establish Enterprise Edition compatibility.Downgrade procedure
Follow the component order approved for the target Enterprise Edition release. Before changing any node, confirm rolling-operation support, the allowed mixed-version window, and the validation and rollback conditions for each stage.Before you begin
During preparation, you must perform the compatibility configuration if you are up for a minor or major version downgrade. You also need to perform the downgrade availability test on one of the FEs or BEs before downgrading all nodes in the cluster.Perform compatibility configuration
Verify compatibility settings against the source and target Enterprise Edition delivery instructions and release notes. For changes to metadata, transaction logs, or storage formats, confirm rollback restrictions and verify backup recovery first.Downgrade FE
Note To downgrade a cluster from v3.3.0 or later to v3.2, follow these steps before downgrading:- Ensure that all ALTER TABLE SCHEMA CHANGE transactions initiated in the v3.3 cluster are either completed or canceled before downgrading.
-
Clear all transaction history by executing the following command:
-
Verify that there are no remaining historical records by running the following command:
- Create a metadata snapshot. a. Run ALTER SYSTEM CREATE IMAGE to create a metadata snapshot. b. You can check whether the image file has been synchronized by viewing the log file fe.log of the Leader FE. A record of log like “push image.* from subdir [] to other nodes. totally xx nodes, push succeeded xx nodes” suggests that the image file has been successfully synchronized.
-
Navigate to the working directory of the FE node and stop the node.
-
Replace the original deployment files under bin, lib, and spark-dpp with the ones of the earlier version.
-
Start the FE node.
-
Check if the FE node is started successfully.
-
Repeat the above Step 2 to Step 5 to downgrade other Follower FE nodes, and finally the Leader FE node.
CAUTION Suppose you have downgraded your cluster after a failed upgrade and you want to upgrade the cluster again, for example, 3.5->4.0->3.5->4.0. To prevent metadata upgrade failure for some Follower FEs, repeat Step 1 to trigger a new snapshot before upgrading.
Downgrade BE
Having downgraded the FE nodes, you can then downgrade the BE nodes in the cluster.-
Navigate to the working directory of the BE node and stop the node.
-
Replace the original deployment files under bin and lib with the ones of the earlier version.
-
Start the BE node.
-
Check if the BE node is started successfully.
- Repeat the above procedures to downgrade other BE nodes.
Downgrade CN
-
Navigate to the working directory of the CN node and stop the node gracefully.
-
Replace the original deployment files under bin and lib with the ones of the earlier version.
-
Start the CN node.
-
Check if the CN node is started successfully.
- Repeat the above procedures to downgrade other CN nodes.