Alibaba Cloud E-MapReduce (EMR) allows you to build and run open-source big data frameworks such as Hadoop, Spark, Hive, and Presto for large-scale data processing and analysis. This topic describes the steps and configuration options for creating an EMR on ECS cluster to help you quickly set up and manage your big data clusters.
If you are creating an EMR cluster for the first time after 17:00 (UTC+8) on December 19, 2022, you cannot select the Hadoop, Data Science, Presto, or ZooKeeper cluster types.
Prerequisites
You have completed RAM authorization. For more information, see Authorize roles for an Alibaba Cloud account.
Usage notes
For DataLake, DataFlow, DataServing, and Custom clusters of EMR V5.12.1, EMR V3.46.1, or later, if the selected services do not require Core nodes, you can click Remove Node Group in the Actions column of the Node Group section.
Steps
-
Log on to the E-MapReduce console.
-
In the top navigation bar, select a region and resource group based on your requirements.
-
Region: The cluster is created in the selected region. You cannot change the region after the cluster is created.
-
Resource Group: By default, all resources in your account are displayed.
-
-
Click Create Cluster.
-
Configure the cluster based on the on-screen instructions.
When you create a cluster, you must configure its software, hardware, and basic settings, and then confirm the order.
NoteAfter a cluster is created, you cannot change its configuration settings, except for the cluster name. Carefully review all settings before you create the cluster.
-
After you verify that all settings are correct, click Confirm.
Important-
Pay-as-you-go cluster: Creation starts immediately. After the cluster is created, its status changes to Running.
-
Subscription cluster: An order is generated first. The cluster is created after you complete the payment.
-
Parameters
Software configuration
|
Parameter |
Description |
|
Region |
A region is the geographical area where a data center is located. Selecting a region closer to your location can reduce network latency. You cannot change the region after the cluster is created. |
|
Business Scenario |
Select a scenario based on your business needs:
|
|
Product Version |
The release version of the EMR product. For more information, see Release versions. |
|
High Service Availability |
This feature is disabled by default. When you enable high availability, EMR creates multiple Master nodes to support high availability for ResourceManager and NameNode. These nodes are distributed across different underlying hardware to reduce the risk of failure. |
|
Optional Services (Select One At Least) |
Select other services based on your business requirements. The selected services automatically start their related processes. Important
|
|
Collect Service Operational Logs |
This setting, enabled by default, controls log collection for all services. These logs are used only for cluster diagnostics. After the cluster is created, you can go to the Basic Information page to change the Collection Status of Service Operational Logs. Important
If you disable log collection, EMR health checks and technical support will be limited, but other features will continue to function normally. For details on how to disable this feature and its impact, see How do I stop collecting service logs?. |
|
Metadata |
The following methods are supported for storing and managing metadata:
|
|
Root Storage Directory of Cluster |
This parameter is required only when you select the OSS-HDFS service. It is not needed if you select the HDFS service. Important
Buckets created by clicking the Create OSS-HDFS Bucket button in the EMR console support read and write operations only through EMR. Operations from the console or an API are not supported. When you use the OSS-HDFS service for the first time, your Alibaba Cloud account (main account) must click here and follow the prompts to complete the authorization. If you are a RAM user, your Alibaba Cloud account must authorize you to activate the service and grant the AliyunEMRDlsFullAccess policy and the AliyunOSSDlsDefaultRole and AliyunEMRDlsDefaultRole roles. For more information, see Grant permissions to a RAM user. Select a bucket in the same region where the OSS-HDFS service is already enabled, or click Create OSS-HDFS Bucket to create a new OSS-HDFS instance as the root storage path for the cluster. Note
|
More scenarios
Hardware configuration
|
Parameter |
Description |
|
Billing Method |
Subscription is selected by default. The following billing methods are supported:
|
|
Zone |
An availability zone is a distinct physical location within a region, interconnected by a low-latency private network. You can typically use the default availability zone. |
|
VPC |
A VPC is a logically isolated network environment on Alibaba Cloud that gives you full control over your network configuration. Select an existing VPC, or click Create VPC to create one instantly in the VPC console. For more information, see Create and manage a VPC. Note
You cannot change the private IP address after a cluster is created because the private IP address is bound to the Virtual Private Cloud (VPC). |
|
vSwitch |
A vSwitch is a basic network subdivision of a VPC used to connect different cloud resources. Select an existing vSwitch, or click . Create vSwitch to create one instantly in the VPC console. For more information, see Create and manage a vSwitch. The CIDR block size of the vSwitch determines the number of available IPv4 addresses. For example, a /24 CIDR block provides about 250 available IP addresses, a /20 block provides about 4,090, and a /17 block provides about 32,764. If your cluster requires a large number of nodes, select a vSwitch with a larger CIDR block to ensure enough IP addresses can be allocated to all cluster nodes. You cannot change the CIDR block of a vSwitch after it is created. If you need a larger IP address range, you must create a new vSwitch with a larger CIDR block and then create a new cluster based on that vSwitch. When you create a vSwitch, the console displays the number of available IP addresses for the selected CIDR block, which helps you assess whether it meets your cluster size requirements. |
|
Default Security Group |
A security group is a virtual firewall that controls inbound and outbound traffic for instances within the group. For more information, see Security group overview. Select an existing security group, or click create a new security group. to create one in the ECS console. For more information, see Create a security group. Important
Do not use enterprise security groups created on ECS. |
|
Node Group |
You can select instance types based on your requirements. For more information, see Instance families.
|
|
Cluster Scaling |
You can select an auto scaling rule as needed:
Note
|
Basic configuration
|
Parameter |
Description |
|
Cluster Name |
The name of the cluster. The name must be 1 to 64 characters long and can contain only Chinese characters, letters, digits, hyphens (-), and underscores (_). |
|
Identity Credentials |
Identity Credentials provide secure access to the cluster's Master node. For logon instructions, see Log on to a cluster. The following credential types are supported:
|
Confirm order
(Optional) Save as Cluster Template: If you select Key Pair for logon credentials, you can click Save as Cluster Template to save the current cluster configuration as a cluster template.
-
In the Save as Cluster Template dialog box, enter a Cluster Template Name and select a Cluster Template Resource Group.
Parameter
Description
Cluster Template Name
Enter a name for the cluster template to facilitate management. The name must be 1 to 64 characters long and can contain only Chinese characters, letters, digits, hyphens (-), and underscores (_).
Cluster Template Resource Group
Select an existing resource group to organize your templates.
If you need to create a new resource group, you can click Create Resource Group. below. For more information, see Create a resource group.
-
Click OK.
A new cluster template is added to the Manage Cluster Templates panel. For more information about cluster templates, see Create a cluster template.
FAQ
Related documentation
-
For questions related to cluster creation, see Cluster management FAQ.
-
To add services to a cluster after creation, see Add a service.
-
For information about how to log on to a cluster, see Log on to a cluster.
-
For information about how to select an instance type, see ECS instance overview.
-
For questions related to the use of various components, see FAQ.
-
To create a cluster programmatically, see CreateCluster.