Types

            
 All Types  Classes   Interfaces  Enumerations 
 NameDescription
AddInstanceGroup
Class representing creating a new instance group.
AddInstanceGroupsRequest
Container for the parameters to the AddInstanceGroups operation.

AddInstanceGroups adds an instance group to a running cluster.

AddInstanceGroupsResponse
Returns information about the AddInstanceGroupsResult response and response metadata.
AddInstanceGroupsResult

Output from an AddInstanceGroups call.

AddJobFlowStepsRequest
Container for the parameters to the AddJobFlowSteps operation.

AddJobFlowSteps adds new steps to a running job flow. A maximum of 256 steps are allowed in each job flow.

If your job flow is long-running (such as a Hive data warehouse) or complex, you may require more than 256 steps to process your data. You can bypass the 256-step limitation in various ways, including using the SSH shell to connect to the master node and submitting queries directly to the software running on the master node, such as Hive and Hadoop. For more information on how to do this, go to Add More than 256 Steps to a Job Flow in the Amazon Elastic MapReduce Developer's Guide .

A step specifies the location of a JAR file stored either on the master node of the job flow or in Amazon S3. Each step is performed by the main function of the main class of the JAR file. The main class can be specified either in the manifest of the JAR or by using the MainFunction parameter of the step.

Elastic MapReduce executes each step in the order listed. For a step to be considered complete, the main function must exit with a zero exit code and all Hadoop jobs started while the step was running must have completed and run successfully.

You can only add steps to a job flow that is in one of the following states: STARTING, BOOTSTRAPPING, RUNNING, or WAITING.

AddJobFlowStepsResponse
Returns information about the AddJobFlowSteps response metadata. The AddJobFlowSteps operation has a void result type.
BootstrapActionConfig

Configuration of a bootstrap action.

BootstrapActionDetail

Reports the configuration of a bootstrap action in a job flow.

BootstrapActions
Class that provides helper methods for constructing predefined bootstrap actions.
ConfigFile
Valid config files.
ConfigureDaemons
ConfigureHadoop
Daemon
List of Hadoop daemons which can be configured.
DescribeJobFlowsRequest
Container for the parameters to the DescribeJobFlows operation.

DescribeJobFlows returns a list of job flows that match all of the supplied parameters. The parameters can include a list of job flow IDs, job flow states, and restrictions on job flow creation date and time.

Regardless of supplied parameters, only job flows created within the last two months are returned.

If no parameters are supplied, then job flows matching either of the following criteria are returned:

  • Job flows created and completed in the last two weeks
  • Job flows created within the last two months that are in one of the following states: RUNNING , WAITING , SHUTTING_DOWN , STARTING

Amazon Elastic MapReduce can return a maximum of 512 job flow descriptions.

DescribeJobFlowsResponse
Returns information about the DescribeJobFlowsResult response and response metadata.
DescribeJobFlowsResult

The output for the DescribeJobFlows operation.

HadoopJarStepConfig

A job flow step consisting of a JAR file whose main function will be executed. The main function submits a job for Hadoop to execute and waits for the job to finish or fail.

StepFactory..::..HiveVersion
The available Hive versions. These are only available on Hadoop 0.20 Hive_0_5 Hive 0.5 Hive_0_7 Hive 0.7
InstanceGroupConfig

Configuration defining a new instance group.

InstanceGroupDetail

Detailed information about an instance group.

InstanceGroupModifyConfig

Modify an instance group size.

InternalServerErrorException
AmazonElasticMapReduce exception
JobFlowDetail

A description of a job flow.

JobFlowExecutionStatusDetail

Describes the status of the job flow.

JobFlowInstancesConfig

A description of the Amazon EC2 instance running the job flow.

JobFlowInstancesDetail

Specify the type of Amazon EC2 instances to run the job flow on.

KeyValue

A key value pair.

ModifyInstanceGroup
ModifyInstanceGroupsRequest
Container for the parameters to the ModifyInstanceGroups operation.

ModifyInstanceGroups modifies the number of nodes and configuration settings of an instance group. The input parameters include the new target instance count for the group and the instance group ID. The call will either succeed or fail atomically.

ModifyInstanceGroupsResponse
Returns information about the ModifyInstanceGroups response metadata. The ModifyInstanceGroups operation has a void result type.
OnArrested
The action to take if your step is waiting for the instance group to start and it enters the Arrested state.

Fail - Fail the step. Wait - Continue waiting until the instance group is no longer arrested (requires manual intervention). Continue - Proceed onto the next step.

OnFailure
Action to take if there is a failure modifying your cluster composition. Fail - Fail the step. Continue - Proceed on to the next step.
PlacementType

Specifies the Amazon EC2 location for the job flow.

ResizeAction
ResizeJobFlowStep
This class provides some helper methods for creating a Resize Job Flow step as part of your job flow. The resize step can be used to automatically adjust the composition of your cluster while it is running. For example, if you have a large workflow with different compute requirements, you can use this step to automatically add a task instance group before your most compute intensive step.
CopyC#
AWSCredentials credentials = new BasicAWSCredentials(accessKey, secretKey);
AmazonElasticMapReduce emr = new AmazonElasticMapReduceClient(credentials);

HadoopJarStepConfig config = new ResizeJobFlowStep()
    .WithResizeAction(new ModifyInstanceGroup()
        .WithInstanceGroup("core")
        .WithInstanceCount(10))
    .WithResizeAction(new AddInstanceGroup()
        .WithInstanceGroup("task")
        .WithInstanceCount(10)
        .WithInstanceType("m1.small"))
    .WithOnArrested(OnArrested.Continue)
    .WithOnFailure(OnFailure.Continue)
    .ToHadoopJarStepConfig();

StepConfig resizeJobFlow = new StepConfig()
    .WithName("Resize job flow")
    .WithActionOnFailure("TERMINATE_JOB_FLOW")
    .WithHadoopJarStep(config);

RunJobFlowRequest request = new RunJobFlowRequest()
    .WithName("Resize job flow")
    .WithSteps(resizeJobFlow)
    .WithLogUri("s3://log-bucket/")
    .WithInstances(new JobFlowInstancesConfig()
        .WithEc2KeyName("keypair")
        .WithHadoopVersion("0.20")
        .WithInstanceCount(5)
        .WithKeepJobFlowAliveWhenNoSteps(true)
        .WithMasterInstanceType("m1.small")
        .WithSlaveInstanceType("m1.small"));

RunJobFlowResult result = emr.RunJobFlow(request).RunJobFlowResult;
RunJobFlowRequest
Container for the parameters to the RunJobFlow operation.

RunJobFlow creates and starts running a new job flow. The job flow will run the steps specified. Once the job flow completes, the cluster is stopped and the HDFS partition is lost. To prevent loss of data, configure the last step of the job flow to store results in Amazon S3. If the JobFlowInstancesConfig KeepJobFlowAliveWhenNoSteps parameter is set to TRUE , the job flow will transition to the WAITING state rather than shutting down once the steps have completed.

For additional protection, you can set the JobFlowInstancesConfig TerminationProtected parameter to TRUE to lock the job flow and prevent it from being terminated by API call, user intervention, or in the event of a job flow error.

A maximum of 256 steps are allowed in each job flow.

If your job flow is long-running (such as a Hive data warehouse) or complex, you may require more than 256 steps to process your data. You can bypass the 256-step limitation in various ways, including using the SSH shell to connect to the master node and submitting queries directly to the software running on the master node, such as Hive and Hadoop. For more information on how to do this, go to Add More than 256 Steps to a Job Flow in the Amazon Elastic MapReduce Developer's Guide .

For long running job flows, we recommend that you periodically store your results.

RunJobFlowResponse
Returns information about the RunJobFlowResult response and response metadata.
RunJobFlowResult

The result of the RunJobFlow operation.

ScriptBootstrapActionConfig

Configuration of the script to run during a bootstrap action.

SetTerminationProtectionRequest
Container for the parameters to the SetTerminationProtection operation.

SetTerminationProtection locks a job flow so the Amazon EC2 instances in the cluster cannot be terminated by user intervention, an API call, or in the event of a job-flow error. The cluster still terminates upon successful completion of the job flow. Calling SetTerminationProtection on a job flow is analogous to calling the Amazon EC2 DisableAPITermination API on all of the EC2 instances in a cluster.

SetTerminationProtection is used to prevent accidental termination of a job flow and to ensure that in the event of an error, the instances will persist so you can recover any data stored in their ephemeral instance storage.

To terminate a job flow that has been locked by setting SetTerminationProtection to true , you must first unlock the job flow by a subsequent call to SetTerminationProtection in which you set the value to false .

For more information, go to Protecting a Job Flow from Termination in the Amazon Elastic MapReduce Developer's Guide.

SetTerminationProtectionResponse
Returns information about the SetTerminationProtection response metadata. The SetTerminationProtection operation has a void result type.
StepConfig

Specification of a job flow step.

StepDetail

Combines the execution state and configuration of a step.

StepExecutionStatusDetail

Specifies the execution state of a step.

StepFactory
This class provides helper methods for creating common Elastic MapReduce step types. To use StepFactory, you should construct it with the appropriate bucket for your region. The official bucket format is "<region>.elasticmapreduce", so us-east-1 would use the bucket "us-east-1.elasticmapreduce".
StreamingStep
Class that makes it easy to define Hadoop Streaming steps.

See also: Hadoop Streaming

CopyC#
AWSCredentials credentials = new BasicAWSCredentials(accessKey, secretKey);
AmazonElasticMapReduce emr = new AmazonElasticMapReduceClient(credentials);

HadoopJarStepConfig config = new StreamingStep()
    .WithInputs("s3://elasticmapreduce/samples/wordcount/input")
    .WithOutput("s3://my-bucket/output/")
    .WithMapper("s3://elasticmapreduce/samples/wordcount/wordSplitter.py")
    .WithReducer("aggregate")
    .ToHadoopJarStepConfig();

StepConfig wordCount = new StepConfig()
    .WithName("Word Count")
    .WithActionOnFailure("TERMINATE_JOB_FLOW")
    .WithHadoopJarStep(config);

RunJobFlowRequest request = new RunJobFlowRequest()
    .WithName("Word Count")
    .WithSteps(wordCount)
    .WithLogUri("s3://log-bucket/")
    .WithInstances(new JobFlowInstancesConfig()
        .WithEc2KeyName("keypairt")
        .WithHadoopVersion("0.20")
        .WithInstanceCount(5)
        .WithKeepJobFlowAliveWhenNoSteps(true)
        .WithMasterInstanceType("m1.small")
        .WithSlaveInstanceType("m1.small"));

RunJobFlowResult result = emr.RunJobFlow(request).RunJobFlowResult;
TerminateJobFlowsRequest
Container for the parameters to the TerminateJobFlows operation.

TerminateJobFlows shuts a list of job flows down. When a job flow is shut down, any step not yet completed is canceled and the EC2 instances on which the job flow is running are stopped. Any log files not already saved are uploaded to Amazon S3 if a LogUri was specified when the job flow was created.

TerminateJobFlowsResponse
Returns information about the TerminateJobFlows response metadata. The TerminateJobFlows operation has a void result type.