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.
Namespace: Amazon.ElasticMapReduce.Model
Assembly: AWSSDK.dll
Version: (assembly version)
public class BootstrapActions : Object
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 Framework:
Supported in: 4.5, 4.0, 3.5
.NET for Windows Store apps:
Supported in: Windows 8