Create a StarRocks cluster on E-MapReduce and configure its software, hardware, and basic settings.
Prerequisites
You have created a VPC and a vSwitch in the target region. For more information, see Create and manage a VPC and Create and manage a vSwitch.
Procedure
-
Go to the cluster creation page.
-
Log on to the E-MapReduce console.
-
Optional: In the top navigation bar, select a region and, optionally, a resource group.
-
Region: The cluster is created in the selected region. This setting cannot be changed after creation.
-
Resource group: By default, all resources within your account are displayed.
-
-
At the top of the page, click CREATE_CLUSTER.
-
-
Configure the cluster.
Configure the software, hardware, and basic settings for the cluster.
ImportantAfter a cluster is created, you can only change its name. Ensure all other configurations are correct before proceeding.
-
Configure software settings.
Parameter
Example
Description
Region
China (Hangzhou)
The region in which to create the cluster. This setting cannot be changed after creation.
Business Scenario
Data Analytics
Select Data Analytics.
Product Version
EMR-5.19.0
The E-MapReduce version. The latest version is selected by default.
High Service Availability
Off
When enabled, the cluster deploys three master nodes to provide high availability for ResourceManager and NameNode. You can adjust the number of nodes.
Optional Services
StarRocks 3
Select additional components based on your needs. The related service processes start automatically for selected components.
Collect Service Operational Logs
On
Enabled by default. Collects operational logs from all services for diagnostic purposes.
After the cluster is created, you can change the Collection Status of Service Operational Logs on the Basic Information page.
ImportantIf you disable log collection, health checks and technical support for E-MapReduce are limited. Other features are not affected. For more information about how to disable this feature and its effects, see How do I stop collecting service logs?.
StarRocks Architecture
Shared-nothing
This setting is available only for StarRocks 3.x.
StarRocks supports both shared-nothing and shared-data architectures.
-
Shared-nothing (Default): Compute and storage resources are tightly coupled. Data is stored on the local disks of compute nodes.
Suitable for OLAP scenarios that require real-time processing and fast queries, such as data analytics and BI report generation.
-
Shared-data architecture : Compute and storage resources are fully decoupled. Compute nodes execute query tasks, while data is stored in an external distributed storage system. This improves system flexibility and reliability.
Suitable for use cases that involve large-scale data storage and require elastic computing.
DLF Unified Metadata
Selected
Selected by default. When selected, metadata is stored in Data Lake Formation (DLF).
After you activate DLF, the system selects a default DLF Catalog for you, which is your user ID (UID). If you want to use different data catalogs for different clusters, create a new catalog:
-
Click Create Catalog. In the dialog box that appears, enter a catalog ID and click OK.
-
From the DLF Catalog drop-down list, select the catalog you created.
Advanced Settings
Off
Custom Software Configuration: Specify a JSON file to configure underlying software such as Hadoop, Spark, and Hive. Disabled by default.
-
-
Configure hardware settings.
Parameter
Example
Description
Billing Method
pay-as-you-go
Supported billing methods:
-
Pay-as-you-go: You pay for resources after using them, billed hourly based on actual usage. Ideal for short-term testing or dynamic tasks.
-
Subscription: You pay for resources upfront before using them.
NoteWe recommend using the Pay-as-you-go method for testing. After your tests are successful, create a new Subscription cluster for production use.
Zone
China (Hangzhou) Zone I
Zones are separate physical locations within a region, connected by a low-latency internal network. You can use the default zone in most cases.
VPC
starrocks_test/vpc-bp1f4epmkvncimpgs****
An existing VPC is selected by default.
To create a new VPC, go to the VPC console. For more information, see Create and manage a VPC.
vSwitch
vsw_test/vsw-bp1e2f5fhaplp0g6p****
Select a vSwitch in the selected zone and VPC. If no vSwitch is available in the zone, go to the VPC console to create one. For more information, see VPCs and vSwitches.
Default Security Group
sg-bp1ddw7sm2risw****/sg-bp1ddw7sm2risw****
An existing security group is selected by default. For more information, see Security group overview.
You can also click create a new security group. to create a security group in the ECS console. For more information, see Create a security group.
ImportantDo not use advanced security groups created in the ECS console.
Node Group
Use default values
Select instance types based on your requirements. For more information, see Instance families.
-
Master: Runs control-plane services such as ResourceManager and NameNode.
-
Core: Stores data in the cluster's distributed file system (HDFS). You can also scale out Core nodes on demand after the cluster is created.
-
Task: Provides additional compute capacity without storing data. This node group is optional and can be added to scale computing resources.
ImportantTask node groups support pay-as-you-go, preemptible instance, and subscription billing methods.
-
Add to Deployment Set: When high availability is enabled, Master nodes are added to a deployment set by default. A deployment set controls the distribution of instances. For more information, see Deployment sets.
-
System Disk: Select a standard SSD, enhanced SSD (ESSD), or ultra disk as needed. Adjust the system disk size as required.
-
Data Disk: Select a standard SSD, enhanced SSD (ESSD), or ultra disk as needed. Adjust the data disk size as required.
NoteWhen you select an enhanced SSD (ESSD), you can set different performance levels (PLs) based on the disk capacity to meet various cluster performance needs. The default performance level is PL1. Depending on the disk capacity, system disks support PL0, PL1, and PL2, while data disks support PL0, PL1, PL2, and PL3. For more information about cloud disks, see Cloud disk overview.
-
Instances: The Master node group has one instance by default. If high availability is enabled, you can have multiple Master instances.
The Core node group has two instances by default. You can adjust this number as needed.
-
Additional Security Group: Allow flexible access control between different external resources or applications. You can associate up to two additional security groups with this node group.
-
Assign Public Network IP: Controls whether to assign an Elastic IP (EIP) address to the cluster. Disabled by default. Only DataLake clusters support assigning public IPs at the node group level.
NoteIf you do not enable this feature but want to use a public IP address to access the cluster after it is created, you must apply for one on the ECS console. For more information, see Apply for an EIP.
-
-
Configure basic settings.
Configure the following parameters in the Basic Information section.
Parameter
Example
Description
Cluster Name
Emr-StarRocks
The name of the cluster. The name must be 1 to 64 characters in length and can contain only Chinese characters, letters, digits, hyphens (-), and underscores (_).
Identity Credentials
Password
Key Pair (Default): Uses an SSH key pair to log on to the master node.
For more information about key pairs, see SSH key pairs.
Password: Sets the logon password for the master node. The password must be 8 to 30 characters in length and contain uppercase letters, lowercase letters, digits, and special characters.
Special characters include:
! @ # $ % ^ & *.Special characters include the exclamation point (!), at sign (@), number sign (#), dollar sign ($), percent sign (%), caret (^), ampersand (&), and asterisk (*).
-
-
(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.
-
-
Click Confirm.
Refresh the page to view the creation progress. The cluster is ready when its Status changes to Running.