A gateway cluster is composed of Elastic Compute Service (ECS) instances that reside in the same internal network as the E-MapReduce (EMR) cluster associated with the gateway cluster. You can use a gateway cluster to achieve load balancing and security isolation and to submit jobs to the EMR cluster.

Prerequisites

An EMR gateway cluster only supports Hadoop and Kafka clusters. Before you create a gateway cluster, make sure that you have created an EMR Hadoop or Kafka cluster.
  1. Log on to the Alibaba Cloud E-MapReduce console.
  2. Click the Cluster Management tab.
  3. Click Create Gateway in the upper-right corner.
  4. On the Create Gateway page that appears, specify the required parameters.
    Parameter Description
    Cluster Name The name of the gateway cluster. The name must be 1 to 64 characters in length and can contain only letters, digits, hyphens (-), and underscores (_).
    Assign Public Network IP Specifies whether an EIP address is associated with a gateway cluster.
    Password/Key Pair
    • Password: the password used to log on to the gateway cluster. The password must be 8 to 30 characters in length and contain uppercase letters, lowercase letters, digits, and special characters. The following special characters are supported:

      ! @ # $ % ^ & *

    • Key Pair: the name of the key pair used to log on to the gateway cluster. If no key pair is created, click Create Key Pair next to this field to go to the SSH Key Pairs page of the ECS console and create a key pair.

      Keep the .pem private key file safe. After a gateway cluster is created, the public key is automatically bound to the ECS instance. When you log on to the gateway cluster by using SSH, you must enter the private key in the private key file.

    Billing Method
    • Subscription: The system charges you for a cluster only once per subscription period. The unit price of a subscription cluster is lower than that of a pay-as-you-go cluster of the same specification. Subscription clusters are offered discounts, and longer subscription periods offer larger discounts.
    • Pay-As-You-Go: The system charges you for a cluster based on the time the cluster is actually used in hours.
    Associated Cluster The Hadoop cluster associated with the gateway cluster. The gateway cluster submits jobs to this Hadoop cluster. The gateway cluster is automatically configured with the same Hadoop environment as the Hadoop cluster.
    Zone The zone where the associated cluster resides.
    Network Type The network type of the associated cluster.
    VPC The Virtual Private Cloud (VPC) to which the associated cluster belongs.
    VSwitch The VSwitch you want the gateway cluster to use. Select the VSwitch that corresponds to the zone and VPC.
    Security Group Name The name of the security group to which the associated cluster belongs.
    Gateway Instance The available instance types in the current zone. For more information, see Instance families.
    • System Disk Type: the type of the system disk you want the gateway cluster to use. System disk types include ultra disk, standard SSD, and ESSD. The system disk types that are available for you to create a gateway cluster depend on the selected region and instance type. The system disk is released when the relevant cluster is released.
    • Disk Size: the size of the system disk. Unit: GB. Valid values: 40 to 2048. Default value: 300.
    • Data Disk Type: the type of data disks you want the gateway cluster to use. Data disk types include ultra disk, standard SSD, and ESSD. The data disk types that are available for you to create a gateway cluster depend on the selected region and instance type. Data disks are released when the relevant cluster is released.
    • Disk Size: the size of a data disk. Unit: GB. Valid values: 200 to 4000. Default value: 300.
    • Count: the number of data disks. Valid values: 1 to 10.
  5. Select E-MapReduce Service Terms and click Create.
    The created gateway cluster appears in the cluster list and its state changes from Initializing to Idle a few minutes later.