Class that provides helper methods for constructing predefined bootstrap actions.
| C# |
public class BootstrapActions
| All Members | Constructors | Methods | |||
| Icon | Member | Description |
|---|---|---|
| BootstrapActions()()()() |
Creates a new default BootstrapActions for us in us-east-1.
| |
| BootstrapActions(String) |
Creates a new BootstrapActions.
| |
| Equals(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.) |
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);
| Object | |
| BootstrapActions | |