2 Type a Name for the security configuration You use this name to specify the

2 type a name for the security configuration you use

This preview shows page 259 - 261 out of 395 pages.

2. Type a Name for the security configuration. You use this name to specify the security configuration when you create a cluster. 3. Under AWS Lake Formation integration , select Enable fine-grained access control managed by AWS Lake Formation . 4. Select an IAM role for AWS Lake Formation to apply. Note For more information, see Overview of the IAM Roles for Lake Formation (p. 247) . 5. Select an IAM role for other AWS services to apply. 6. Upload your identify provider (IdP) metadata by specifying the S3 path where the metadata is located. Note For more information, see Configure Trust Relationship Between your IdP and Lake Formation (p. 249) . 7. Set up other security configuration options as appropriate and choose Create . You must enable Kerberos authentication using the cluster-dedicated KDC. For more information, see Configure EMR Security Features (p. 252) . 2. Launch a cluster with the security configuration that you specified in the previous step. For more information, see Specify a Security Configuration for a Cluster . Launch an Amazon EMR cluster integrated with Lake Formation using the CLI The following procedure demonstrates how to launch an Amazon EMR cluster with Zeppelin integrated with AWS Lake Formation. 1. Create an security-configuration.json file for security configuration with the following content. Specify the whole path to the IdP metadata file uploaded in S3. • Replace account-id with your AWS account ID. Specify a value for TicketLifetimeInHours to determine the period for which a Kerberos ticket issued by the KDC is valid. { "LakeFormationConfiguration": { "IdpMetadataS3Path": "s3:// mybucket/myfolder/idpmetadata.xml ", "EmrRoleForUsersARN": "arn:aws:iam:: account-id :role/ IAM_Role_For_AWS_Services ", 253
Image of page 259
Amazon EMR Management Guide Launch an Amazon EMR Cluster with Lake Formation "LakeFormationRoleForSAMLPrincipalARN": "arn:aws:iam:: account- id :role/ IAM_Role_For_Lake_Formation " }, "AuthenticationConfiguration": { "KerberosConfiguration": { "Provider": "ClusterDedicatedKdc", "ClusterDedicatedKdcConfiguration": { "TicketLifetimeInHours": 24 } } } } 2. Run the following command to create a security configuration. aws emr create-security-configuration \ --security-configuration \ --name security-configuration 3. Create a configurations.json file that configures the Hive Metastore. [ { "Classification": "spark-hive-site", "Properties": { "hive.metastore.glue.catalogid": " account-id " } } ] 4. Run the following command to launch an Amazon EMR cluster. • Replace subnet-00xxxxxxxxxxxxx11 with your subnet ID. Replace the EC2_KEY_PAIR with the name of your EC2 key pair for this cluster. EC2 key pair is optional and only required if you want to use SSH to access your cluster. • Replace cluster-name with the name of your cluster. aws emr create-cluster --region us-east-1 \ --release-label emr-5.26.0 \ --use-default-roles \ --instance-groups InstanceGroupType=MASTER,InstanceCount=1,InstanceType=m4.xlarge \ InstanceGroupType=CORE,InstanceCount=1,InstanceType=m4.xlarge \ --applications Name=Zeppelin Name=Livy \ --kerberos-attributes Realm=EC2.INTERNAL,KdcAdminPassword= MyClusterKDCAdminPassword
Image of page 260
Image of page 261

You've reached the end of your free preview.

Want to read all 395 pages?

  • Spring '12
  • LauraParker
  • Amazon Web Services, Amazon Elastic Compute Cloud

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern

Ask Expert Tutors You can ask You can ask ( soon) You can ask (will expire )
Answers in as fast as 15 minutes