AWS SDK for .NET Documentation
BootstrapActions Class
AmazonAmazon.ElasticMapReduce.ModelBootstrapActions Did this page help you?   Yes   No    Tell us about it...
Class that provides helper methods for constructing predefined bootstrap actions.
Declaration Syntax
C#
public class BootstrapActions
Members
All MembersConstructorsMethods



IconMemberDescription
BootstrapActions()()()()
Creates a new default BootstrapActions for us in us-east-1.

BootstrapActions(String)
Creates a new BootstrapActions.

Equals(Object)
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
GetHashCode()()()()
Serves as a hash function for a particular type.
(Inherited from Object.)
GetType()()()()
Gets the type of the current instance.
(Inherited from Object.)
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.

ToString()()()()
Returns a string that represents the current object.
(Inherited from Object.)
Examples
CopyC#
AmazonElasticMapReduce emr = AWSClientFactory.CreateAmazonElasticMapReduceClient(accessKey, secretKey);

BootstrapActions bootstrapActions = new BootstrapActions();

RunJobFlowRequest request = new RunJobFlowRequest()
    .WithName("Job Flow With Bootstrap Actions")
    .WithBootstrapActions(
        bootstrapActions.NewRunIf(
            "instance.isMaster=true",
            bootstrapActions.NewConfigureDaemons()
                .WithHeapSize(Daemon.JobTracker, 2048)
                .Build()))
    .WithLogUri("s3://log-bucket/")
    .WithInstances(new JobFlowInstancesConfig()
       .WithEc2KeyName("keypair")
        .WithHadoopVersion("0.20")
        .WithInstanceCount(5)
        .WithKeepJobFlowAliveWhenNoSteps(true)
        .WithMasterInstanceType("m1.small")
        .WithSlaveInstanceType("m1.small"));

RunJobFlowResponse response = emr.RunJobFlow(request);
Inheritance Hierarchy
Object
BootstrapActions

Assembly: AWSSDK (Module: AWSSDK) Version: 1.5.20.0 (1.5.20.0)