

本文為英文版的機器翻譯版本，如內容有任何歧義或不一致之處，概以英文版為準。

# AWS Local Zones 上的 EMR 叢集
<a name="emr-plan-localzones"></a>

從 Amazon EMR 5.28.0 版開始，您可以在 AWS Local Zones 子網路上建立和執行 Amazon EMR 叢集，做為支援 Local Zones 之 AWS 區域的邏輯延伸。本機區域可讓 Amazon EMR 功能和運算和儲存 AWS 服務等服務子集更接近使用者，以提供非常低的本機執行應用程式的延遲存取。如需可用的 Local Zones 清單，請參閱 [AWS Local Zones](https://aws.amazon.com/about-aws/global-infrastructure/localzones/)。如需存取可用 AWS 本機區域的資訊，請參閱[區域、可用區域和本機區域](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-regions-availability-zones.html)。

## 支援的執行個體類型
<a name="emr-localzones-supported"></a>

 下列執行個體類型適用於 Local Zones 上的 Amazon EMR 叢集。執行個體類型的可用性會因區域而異。


| 執行個體類別 | 執行個體類型 | 
| --- | --- | 
| 一般用途 | m5.xlarge \$1 m5.2xlarge \$1 m5.4xlarge \$1 m5.12xlarge \$1 m5.24xlarge \$1 m5d.xlarge \$1 m5d.2xlarge \$1 m5d.4xlarge \$1 m5d.12xlarge \$1 m5d.24xlarge  | 
| 運算最佳化 | c5.xlarge \$1 c5.2xlarge \$1 c5.4xlarge \$1 c5.9xlarge \$1 c5.18xlarge \$1 c5d.xlarge \$1 c5d.2xlarge \$1 c5d.4xlarge\$1 c5d.9xlarge \$1 c5d.18xlarge  | 
| 記憶體最佳化 | r5.xlarge \$1 r5.2xlarge \$1 r5.4xlarge \$1 r5.12xlarge \$1 r5d.xlarge \$1 r5d.2xlarge \$1 r5d.4xlarge \$1 r5d.12xlarge \$1 r5d.24xlarge  | 
| 儲存最佳化 | i3en.xlarge \$1 i3en.2xlarge \$1 i3en.3xlarge \$1 i3en.6xlarge \$1 i3en.12xlarge \$1 i3en.24xlarge | 

## 在 Local Zones 上建立 Amazon EMR 叢集
<a name="emr-localzones-createconsole"></a>

在 AWS 與 Local Zone 關聯的 Amazon VPC 子網路中啟動 Amazon EMR 叢集，以在 Local Zones 上建立 Amazon EMR 叢集。您可以使用 Local Zone 名稱存取叢集，例如美國西部 (奧勒岡) 主控台中的 us-west-2-lax-1a。

Local Zones 目前不支援 Amazon EMR Notebooks 或使用介面 VPC 端點 (AWS PrivateLink) 直接連線至 Amazon EMR。

------
#### [ Console ]

**使用主控台在本機區域建立叢集**

1. 登入 AWS 管理主控台，並在 https：//[https://console.aws.amazon.com/emr](https://console.aws.amazon.com/emr) 開啟 Amazon EMR 主控台。

1. 在左側導覽窗格中的 **EC2 上的 EMR** 下，選擇**叢集**，然後選擇**建立叢集**。

1. 在**聯網**下，選取 Local Zone ID 為以下格式的 EC2 子網路：subnet 123abc \$1 us-west-2-lax-1a。

1. 為統一執行個體群組或執行個體機群，選擇執行個體類型或新增 Amazon EBS 儲存磁碟區。

1. 選擇適用於您的叢集的任何其他選項。

1. 若要啟動您的叢集，請選擇**建立叢集**。

------
#### [ CLI ]

**使用 在本機區域建立叢集 AWS CLI**
+ 針對 Local Zone 使用 create-cluster 命令搭配 SubnetId，如下列範例所示。將 subnet-22XXXX1234567 取代為 Local Zone SubnetId，並視需要取代其他選項。如需詳細資訊，請參閱[https://docs.aws.amazon.com/cli/latest/reference/emr/create-cluster.html](https://docs.aws.amazon.com/cli/latest/reference/emr/create-cluster.html)。

  ```
  aws emr create-cluster \
  --name "Local Zones cluster" \
  --release-label emr-5.29.0 \
  --applications Name=Spark \
  --ec2-attributes KeyName=myKey,SubnetId=subnet-22XXXX1234567 \
  --instance-type m5.xlarge --instance-count 3 --use-default-roles
  ```

------