AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.
Class that provides helper methods for constructing predefined bootstrap actions.
Namespace: Amazon.ElasticMapReduce.Model
Assembly: AWSSDK.ElasticMapReduce.dll
Version: 3.x.y.z
public class BootstrapActions
The BootstrapActions type exposes the following members
Name | Description | |
---|---|---|
BootstrapActions() |
Creates a new default BootstrapActions for us in us-east-1. |
|
BootstrapActions(string) |
Creates a new BootstrapActions. |
Name | Description | |
---|---|---|
NewConfigureDaemons() |
Create a new bootstrap action which lets you configure Hadoop's daemons. The options are written to the hadoop-user-env.sh file. |
|
NewConfigureHadoop() |
Create a new bootstrap action which lets you configure Hadoop's XML files. |
|
NewRunIf(string, BootstrapActionConfig) |
Create a new run-if bootstrap action which lets you conditionally run bootstrap actions. |
IAmazonElasticMapReduce emr = TestUtil.EMRClient; BootstrapActions bootstrapActions = new BootstrapActions(); var daemons = bootstrapActions.NewConfigureDaemons(); daemons.AddHeapSize(Daemon.JobTracker, 2048); RunJobFlowRequest request = new RunJobFlowRequest { Name = "Job Flow With Bootstrap Actions", BootstrapActions = new List<BootstrapActionConfig> { bootstrapActions.NewRunIf("instance.isMaster=true", daemons.Build()) }, LogUri = "s3://log-bucket/", Instances = new JobFlowInstancesConfig { Ec2KeyName = "keypair", HadoopVersion = "0.20", InstanceCount = 5, KeepJobFlowAliveWhenNoSteps = true, MasterInstanceType = "m1.small", SlaveInstanceType = "m1.small" } }; RunJobFlowResponse response = emr.RunJobFlow(request);
.NET Core App:
Supported in: 3.1
.NET Standard:
Supported in: 2.0
.NET Framework:
Supported in: 4.5, 4.0, 3.5