Last active
January 17, 2023 21:06
-
-
Save garystafford/590c049cb6b9a930bf24beea10e8c030 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Name": "demo-cluster-airflow", | |
"ReleaseLabel": "{{ var.value.release_label }}", | |
"LogUri": "s3n://{{ var.value.logs_bucket }}", | |
"Applications": [ | |
{ | |
"Name": "Spark" | |
} | |
], | |
"Instances": { | |
"InstanceFleets": [ | |
{ | |
"Name": "MASTER", | |
"InstanceFleetType": "MASTER", | |
"TargetSpotCapacity": 1, | |
"InstanceTypeConfigs": [ | |
{ | |
"InstanceType": "m5.xlarge" | |
} | |
] | |
}, | |
{ | |
"Name": "CORE", | |
"InstanceFleetType": "CORE", | |
"TargetSpotCapacity": 2, | |
"InstanceTypeConfigs": [ | |
{ | |
"InstanceType": "r5.2xlarge" | |
} | |
] | |
} | |
], | |
"Ec2SubnetId": "{{ var.value.ec2_subnet_id }}", | |
"KeepJobFlowAliveWhenNoSteps": false, | |
"TerminationProtected": false, | |
"Ec2KeyName": "{{ var.value.emr_ec2_key_pair }}" | |
}, | |
"BootstrapActions": [ | |
{ | |
"Name": "string", | |
"ScriptBootstrapAction": { | |
"Path": "s3://{{ var.value.bootstrap_bucket }}/bootstrap_actions.sh" | |
} | |
} | |
], | |
"Configurations": [ | |
{ | |
"Classification": "spark-hive-site", | |
"Properties": { | |
"hive.metastore.client.factory.class": "com.amazonaws.glue.catalog.metastore.AWSGlueDataCatalogHiveClientFactory" | |
} | |
} | |
], | |
"VisibleToAllUsers": true, | |
"JobFlowRole": "{{ var.value.job_flow_role }}", | |
"ServiceRole": "{{ var.value.service_role }}", | |
"EbsRootVolumeSize": 32, | |
"StepConcurrencyLevel": 5, | |
"Tags": [ | |
{ | |
"Key": "Environment", | |
"Value": "Development" | |
}, | |
{ | |
"Key": "Name", | |
"Value": "Airflow EMR Demo Project" | |
}, | |
{ | |
"Key": "Owner", | |
"Value": "Data Analytics Team" | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment