Getting started with Amazon EMR on EKS in Amazon SageMaker Unified Studio
Before you begin with Amazon EMR on EKS, you must have a compatible Amazon EKS cluster. If you do not have an existing Amazon EKS cluster, see Get started with Amazon EKS for more information regarding cost, installation and management of an Amazon EKS cluster.
Amazon EMR on EKS and Amazon SageMaker Unified Studio require additional Amazon EKS cluster configurations granting minimum access controls and connectivity. Review your Amazon EKS cluster configuration and ensure all requirements are fulfilled:
-
Install and configure the Load Balancer Controller for your Amazon EKS cluster
-
Tag exactly one security group for each Amazon EC2 node ENI with
kubernetes.io/cluster/.{eks-cluster-name}-
Amazon EMR on EKS routes the connection from Amazon SageMaker Unified Studio notebooks to Apache Livy on your Amazon EKS cluster through a Network Load Balancer, and the AWS Load Balancer Controller discovers the cluster security group by looking for a single security group that carries this tag on each node ENI. If the same ENI has more than one security group with this tag, the controller cannot reconcile the
TargetGroupBinding, no targets register in the load balancer target group, and notebook connections fail (for example, withRemoteDisconnectederrors). If you use Karpenter to provision nodes, confirm that yoursecurityGroupSelectorTermsconfiguration does not attach multiple cluster-tagged security groups to a node ENI.
-
-
Enable Amazon EKS cluster access for Amazon EMR on EKS and Amazon SageMaker Unified Studio
Additionally, Amazon EKS clusters in a different account or Amazon VPC network than your Amazon SageMaker Unified Studio domain require additional configuration. Review your Amazon EKS cluster configuration and ensure all requirements are fulfilled:
Configure project profiles in Amazon SageMaker Unified Studio for Amazon EMR on EKS
For data workers to use Amazon EMR on EKS in Amazon SageMaker Unified Studio, administrators must configure project profiles with Amazon EMR on EKS environment blueprint configurations.
Note
Administrators can configure multiple environment blueprint configurations using different Amazon EKS clusters in the same project profile. Data workers can view environment blueprint configurations and select a specific Amazon EKS cluster when creating Amazon EMR on EKS resources in a Amazon SageMaker Unified Studio project.
-
Navigate to the Amazon SageMaker Unified Studio management console
. -
From the navigation bar, select Domains. For cross-account Amazon EKS clusters, select Associated domains.
-
Select the name of the domain you want to configure Amazon EMR on EKS for.
-
In the domain management view, navigate to Project profiles.
-
Search for and select your target project profile.
-
In the project profile management view, navigate to the Blueprint deployment settings view and select Blueprint deployment settings.
-
In the Blueprint section, select EmrOnEks from the dropdown.
-
In the Account and region section, specify the same AWS account and AWS region as your Amazon EKS cluster.
-
In the Blueprint parameters section, specify the Amazon EKS cluster ARN as the
eksClusterArnuser parameter value. -
At the bottom of the page, select Add blueprint deployment settings to create your Amazon EMR on EKS environment blueprint configuration.