Class that provides helper methods for constructing predefined bootstrap actions.
Namespace: Amazon.ElasticMapReduce.ModelAssembly: AWSSDK (in AWSSDK.dll) Version: 1.4.10.0 (1.4.10.0)
Syntax
| C# | Visual Basic | Visual C++ |
public class BootstrapActions
Public Class BootstrapActions
public ref class BootstrapActions
Members
| All Members | Constructors | Methods |
| 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()()()() | (Inherited from Object.) |
Examples
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);