If the deployment package you import contains changes to global objects in the destination environment, these objects appear on the Global tab, where you can manage and deploy them.
Prerequisites
You have imported a deployment package from the source environment into the destination environment. For instructions, see Import a deployment package.
Access global objects
-
Log in to Dataphin with an account that has cross-tenant deployment permissions.
-
From the top navigation bar on the Dataphin homepage, choose Admin Center > Cross-tenant Deployment.
-
In the left-side navigation pane, choose Cross-tenant Deployment > Import Deployment Package.
-
In the Actions column for the target deployment package, click the Deploy icon
. -
Click the Global tab to view the global objects pending deployment.
View and manage global objects
After you import a deployment package, you can perform operations on the Global tab, such as filtering, deploying, viewing details, comparing versions, and viewing version details for scheduling cycles, global variables, common calendars, data domains, compute engines, projects, data sources, object attributes, and identification features. The available operations may vary slightly for different types of objects.
|
Actions |
Description |
|
Filter |
On the Global tab, you can filter each type of object. The available filter options vary by object type.
|
|
Deploy |
You can redeploy objects that failed deployment or are pending deployment. You can deploy objects individually or in batches. Successfully deployed objects do not need to be redeployed.
Note
|
|
Deployment details |
View the details of a single deployment, including the Deployment Status, the object's Basic Information, the Validation Process results, and any Warnings and Errors. The validation process for object attribute and identification feature objects includes a Permission Check, Duplicate Name Check, and Deployment Validation. For all other object types, the validation process only includes Deployment Validation.
Note
If an object's change type is Delete and its deployment status is Succeeded, the object no longer exists in the destination environment, and you cannot view its deployment details. |
|
Mapping |
You can map data sources individually or in batches. If data sources with the same name and type exist, you can configure batch mapping settings. For instructions, see Map an existing data source. Note
|
|
Version details |
View the version information for the current data source object, including its basic information, production data source, and development data source. Note
Only data source objects support viewing version details. |
|
Version comparison |
You can view a version comparison only when the change type is Update. This compares the imported object version (from the source environment's deployment package) with the latest version of the corresponding object in the destination environment. Note
Only data source, object attribute, and identification feature objects support viewing a version comparison. |
|
Set replacement rules |
You can set replacement rules for individual or multiple data sources. To batch-update data source properties, you must first set up replacement rules. After setting the rules, you can use them to batch-deploy the affected data sources. For instructions, see Set data source replacement rules. Note
|
Set data source replacement rules
Only data source objects support this feature.
The attribute configurations of the source and destination environments often differ. Before deployment, you can use replacement rules to batch-update the data source configurations to match the destination environment. When deploying a data source, the system applies the first matching rule to replace its attributes.
-
Below the list of data source objects, click Set Replacement Rules.
-
Edit an existing rule or create a new one.
-
To edit a rule: In the Actions column for the target rule, click the Edit icon to open the New Replacement Rule dialog box.
-
To create a new rule: Click + New Replacement Rule to open the New Replacement Rule dialog box.
Parameter
Description
Scope of data sources for replacement
-
Set data source type.
Select the data source type for which you want to replace attributes, such as MaxCompute.
-
Add scoping rules.
Click + Add Rule and configure the rule conditions. The conditions are joined by an AND operator.
-
Configure selection scope.
-
Set rule conditions.
The available conditions depend on the data source type. For example, a MaxCompute data source supports scoping by Data Source Name, Owner, Endpoint, Project Name, and Access ID.
-
Set match conditions.
Supported conditions include Exact Match, Does Not Match, Contains, Does Not Contain, Starts With, Ends With, Is Empty, Is Not Empty, Empty String, and Non-empty String.
NoteFor the Owner condition, the only supported match type is Is one of.
-
Set replacement attributes and values
-
Configure replacement attributes for the production and development environments.
The available attributes depend on the data source type. For example, a MaxCompute data source supports replacing Endpoint, Project Name, Access ID, and Access key.
-
Set matching rule.
Match rules include Full text, Text match, and Regular expression. The matching is case-sensitive.
NoteRegular expressions follow the Java language specification. For more information, see the Java regular expression guide.
-
Set replacement text.
Enter the text to use as the replacement.
After you complete the configuration, the rules are applied in order to perform the replacements.
-
-
Click Save.
After you save the rule, the system identifies the data source objects that match the rule and displays the count.
In the Actions column for the target rule, click the Deploy icon
to batch-deploy the data sources according to the rule. -
Click
to view the data sources that match the rule.In the Data Sources Matched by Rule dialog box, you can view details, deploy, and map data sources that have the same name and type.
Map an existing data source
Only data source objects support this feature.
If an imported data source has the same name and type as an existing one in the destination environment, you can configure a mapping. In the Map Existing Data Source dialog box, click View Details for Comparison to see the differences between the imported data source and the existing one.
You can choose to map with or without updating the configuration.
-
Map and Update Configuration: Maps the imported data source to the existing one and updates the destination data source's configuration to match.
NoteIf a replacement rule is matched, the data source configuration is updated according to that rule.
-
Map Only, Do Not Modify Configuration: Maps the imported data source to the existing one but does not update the configuration of the destination data source.
Single tenant with multiple engines
In a multi-engine environment, if a compute engine you deploy is configured to be Configure Separately, you can deploy it directly, even if the multi-engine tenant does not support this configuration method. If the configuration method is Reference Cluster but the destination tenant does not have the corresponding cluster, you can click Configure Cluster to go to the cluster management page and create the required cluster.