After you create an E-MapReduce (EMR) cluster, you can create a project on the Data
Platform tab. Then, you can edit jobs and schedule workflows in the project. You can
also associate a cluster with the project, add project members, and configure global
variables for the project.
Prerequisites
An EMR cluster is created. For more information, see Create a cluster.
Limits
You can use only an Alibaba Cloud account to create projects, add project members,
and associate clusters with projects. If you log on to the EMR console by using a
RAM user, the Create Project button and the Users and Cluster Settings pages are unavailable.
Create a project
- Go to the Data Platform tab.
- Log on to the Alibaba Cloud EMR console by using your Alibaba Cloud account.
- In the top navigation bar, select the region where your cluster resides and select a resource group based on your business requirements.
- Click the Data Platform tab.
If you use an Alibaba Cloud account, you can view all the projects within the account.
If you use a RAM user, you can view only the projects on which you have development
permissions. You can use your Alibaba Cloud account to grant development permissions
to a RAM user. For more information, see
Manage RAM users.
- In the upper-right corner of the Projects section, click Create Project.
- In the Create Project dialog box, configure Project Name and Project Description and select an existing resource group from the Select Resource Group drop-down list.
Note If you do not select a resource group, the project is added to the default resource
group. For more information about how to use resource groups, see
Use resource groups.
- Click Create.
In the Projects section, you can view and manage the project you created.
View the basic information about a project
- Go to the Data Platform tab.
- Log on to the Alibaba Cloud EMR console by using your Alibaba Cloud account.
- In the top navigation bar, select the region where your cluster resides and select a resource group based on your business requirements.
- Click the Data Platform tab.
- Go to the Projects tab.
- In the Projects section, click the ID of your project.
- Click the Projects tab.
- View the basic information about the project.
On the Basic Information page, you can view the following information about the project: project name, creation
time, description, and the user who created the project.
Configure general information
We recommend that you enable the security mode on the General Configuration page if
you want to manage permissions on jobs that are run in Data Platform of the EMR console.
After you enable the security mode, you must add the EMR user account that is used
to submit jobs on the Users page. For more information, see Manage user accounts. If you log on to the EMR console by using your Alibaba Cloud account and submit
a job in a project for which the security mode is enabled, the job is run by the hadoop
user by default. If you log on to the EMR console by using a RAM user and submit a
job in a project for which the security mode is enabled, the job is run by the EMR
user account that has the same name as the RAM user by default.
- Go to the Data Platform tab.
- Log on to the Alibaba Cloud EMR console by using your Alibaba Cloud account.
- In the top navigation bar, select the region where your cluster resides and select a resource group based on your business requirements.
- Click the Data Platform tab.
- Go to the Projects tab.
- In the Projects section, click the ID of your project.
- Click the Projects tab.
- Configure Security Mode.
- In the left-side navigation pane, click General Configuration.
- Turn on or off Security Mode based on your business requirements.
Notice After you enable the security mode, Shell and Hive jobs cannot be run in the project.
Manage RAM users
Perform the following steps to add or revoke project development permissions to or
from a RAM user:
- Go to the Data Platform tab.
- Log on to the Alibaba Cloud EMR console by using your Alibaba Cloud account.
- In the top navigation bar, select the region where your cluster resides and select a resource group based on your business requirements.
- Click the Data Platform tab.
- Go to the Projects tab.
- In the Projects section, click the ID of your project.
- Click the Projects tab.
- In the left-side navigation pane, click Users.
- On the Users page, add or remove users based on your business requirements.
Configure cluster resources
Perform the following steps to configure cluster resources for a project. This way,
jobs in the project can run in the cluster that is associated with the project:
- Go to the Data Platform tab.
- Log on to the Alibaba Cloud EMR console by using your Alibaba Cloud account.
- In the top navigation bar, select the region where your cluster resides and select a resource group based on your business requirements.
- Click the Data Platform tab.
- Go to the Projects tab.
- In the Projects section, click the ID of your project.
- Click the Projects tab.
- In the left-side navigation pane, click Cluster Settings.
- On the Cluster Settings page, perform the following operations:
Define variables
Perform the following steps to configure project-level custom variables, which can
be used as global variables for jobs in a project:
- Go to the Data Platform tab.
- Log on to the Alibaba Cloud EMR console by using your Alibaba Cloud account.
- In the top navigation bar, select the region where your cluster resides and select a resource group based on your business requirements.
- Click the Data Platform tab.
- Go to the Projects tab.
- In the Projects section, click the ID of your project.
- Click the Projects tab.
- In the left-side navigation pane, click Custom Variable.
- On the Custom Variable page, you can add or remove custom variables based on your business requirements.