To use Kerberos authentication in your cluster you must configure an external

To use kerberos authentication in your cluster you

This preview shows page 65 - 67 out of 395 pages.

To use Kerberos authentication in your cluster, you must configure an external KDC. For more information, see Configuring Kerberos on Amazon EMR . Launch an EMR Cluster with Multiple Master Nodes You must specify an instance count value of three for the master node instance group when you launch an EMR cluster with multiple master nodes. The following examples demonstrate how to launch the cluster using the default AMI or a custom AMI. Note You must specify the subnet ID when you launch an EMR cluster with multiple master nodes using the AWS CLI. Replace 22XXXX01 with your subnet ID in the following examples. Example –Launching an EMR cluster with multiple master nodes using a default AMI aws emr create-cluster \ --name "ha-cluster" \ --release-label emr-5.28.1 \ --instance-groups InstanceGroupType=MASTER,InstanceCount=3,InstanceType=m5.xlarge InstanceGroupType=CORE,InstanceCount=4,InstanceType=m5.xlarge \ --ec2-attributes KeyName=ec2_key_pair_name,InstanceProfile=EMR_EC2_DefaultRole,SubnetId=subnet- 22XXXX01 \ --service-role EMR_DefaultRole \ --applications Name=Hadoop Name=Spark Example –Launching an EMR cluster with multiple master nodes using a custom AMI aws emr create-cluster \ --name "custom-ami-ha-cluster" \ --release-label emr-5.28.1 \ --instance-groups InstanceGroupType=MASTER,InstanceCount=3,InstanceType=m5.xlarge InstanceGroupType=CORE,InstanceCount=4,InstanceType=m5.xlarge \ --ec2-attributes KeyName=ec2_key_pair_name,InstanceProfile=EMR_EC2_DefaultRole,SubnetId=subnet- 22XXXX01 \ --service-role EMR_DefaultRole \ --applications Name=Hadoop Name=Spark \ --custom-ami-id ami- MyAmiID 59
Image of page 65
Amazon EMR Management Guide Considerations and Best Practices Example –Launching an EMR cluster with multiple master nodes with an external Hive Metastore To run Hive on an EMR cluster with multiple master nodes, you must specify an external metastore for Hive, as the following example demonstrates, 1. Create a temporary hiveConfiguration.json file that contains credentials for your Hive metastore. [ { "Classification": "hive-site", "Properties": { "javax.jdo.option.ConnectionURL": "jdbc:mysql:\/\/hostname:3306\/hive? createDatabaseIfNotExist=true", "javax.jdo.option.ConnectionDriverName": "org.mariadb.jdbc.Driver", "javax.jdo.option.ConnectionUserName": "username", "javax.jdo.option.ConnectionPassword": "password" } } ] 2. Launch the cluster with the Hive metastore. aws emr create-cluster \ --name "ha-cluster-with-hive-metastore" \ --release-label emr-5.28.1 \ --instance-groups InstanceGroupType=MASTER,InstanceCount=3,InstanceType=m5.xlarge InstanceGroupType=CORE,InstanceCount=4,InstanceType=m5.xlarge \ --ec2-attributes KeyName=ec2_key_pair_name,InstanceProfile=EMR_EC2_DefaultRole,SubnetId=subnet- 22XXXX01 \ --service-role EMR_DefaultRole \ --applications Name=Hadoop Name= Spark Name=Hive \ --configurations ./hiveConfiguration.json Terminate an EMR Cluster with Multiple Master Nodes To terminate an EMR cluster with multiple master nodes, you must disable termination protection before terminating the cluster, as the following example demonstrates. Replace j-3KVTXXXXXX7UG with your cluster ID.
Image of page 66
Image of page 67

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

Stuck? We have tutors online 24/7 who can help you get unstuck.
A+ icon
Ask Expert Tutors You can ask You can ask ( soon) You can ask (will expire )
Answers in as fast as 15 minutes
A+ icon
Ask Expert Tutors