本文属于机器翻译版本。若本译文内容与英语原文存在差异,则一律以英文原文为准。
使用交互式端点指定自定义 Pod 模板
您可以创建交互式端点,在其中为驱动程序和执行程序指定自定义 Pod。Pod 模板是决定如何运行每个 Pod 的规范。您可以使用 Pod 模板文件定义 Spark 配置不支持的驱动程序或执行程序 Pod 的配置。Amazon EMR 发行版 6.3.0 及更高版本目前支持 Pod 模板。
有关 Pod 模板的更多信息,请参阅《Amazon EMR on EKS 开发指南》中的使用 Pod 模板。
以下示例展示如何使用 Pod 模板创建交互式端点:
aws emr-containers create-managed-endpoint \ --type JUPYTER_ENTERPRISE_GATEWAY \ --virtual-cluster-id
virtual-cluster-id
\ --nameexample-endpoint-name
\ --execution-role-arn arn:aws:iam::aws-account-id
:role/EKSClusterRole
\ --release-labelemr-6.9.0-latest
\ --configuration-overrides '{ "applicationConfiguration": [ { "classification": "spark-defaults", "properties": { "spark.kubernetes.driver.podTemplateFile": "path/to/driver/template.yaml
", "spark.kubernetes.executor.podTemplateFile": "path/to/executor/template.yaml
" } }] }'