Installs a package from another MaxCompute project into the current project, granting access to the shared resources and permissions bundled in the package.
Prerequisites
Before you begin, make sure you have:
An Alibaba Cloud account that owns the target project, or a user with the necessary permissions
The package name and the source project name from the package creator
Limits
| Limit | Value |
|---|---|
| Resources per package | 1,000 |
| Projects a single package can be installed for | 100,000 |
| Packages from another project installed in a single project | 100 |
| Packages created for a project | 100,000 |
| Packages installed for a project | 100,000 |
Syntax
install package <project_name>.<package_name>;Parameters
| Parameter | Required | Description |
|---|---|---|
project_name | Yes | The name of the MaxCompute project that owns the package. To find the project name, log on to the MaxCompute console, select a region in the top navigation bar, and check the Project management tab. |
package_name | Yes | The name of the package to install. Run show packages; on the MaxCompute client in the source project to get the package name. |
Examples
Install the datashare package from test_project_a into test_project_b. The Alibaba Cloud account Amy@aliyun.com owns test_project_b.
-- Switch to the target project.
use test_project_b;
-- Install the package.
install package test_project_a.datashare;Usage notes
After installing a package, verify the installation with the following statements:
show packages;— lists all packages installed in the current projectdescribe package <package_name>;— shows the resources and permissions included in a specific package
What's next
DESCRIBE PACKAGE — view package details
GRANT — authorize a user or role to access an installed package
UNINSTALL PACKAGE — remove an installed package from a project
SHOW — list packages created or installed in a project
Related statements
CREATE PACKAGE — create a package in a project
ADD TO PACKAGE — add resources to a package
REMOVE FROM PACKAGE — remove resources from a package
ALLOW PROJECT — authorize another project to install a package
DISALLOW PROJECT — revoke a project's access to a package
DROP PACKAGE — delete a package from a project
REVOKE — revoke a user's or role's access to a package