|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.AmazonWebServiceRequest
com.amazonaws.services.elasticmapreduce.model.RunJobFlowRequest
public class 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 JobFlowInstancesDetail : KeepJobFlowAliveWhenNoSteps
parameter is set to TRUE
, the job flow will transition
to the WAITING state rather than shutting down once the steps have
completed.
A maximum of 256 steps are allowed in each job flow.
For long running job flows, we recommended that you periodically store your results.
AmazonElasticMapReduce.runJobFlow(RunJobFlowRequest)
Constructor Summary | |
---|---|
RunJobFlowRequest()
Default constructor for a new RunJobFlowRequest object. |
|
RunJobFlowRequest(String name,
JobFlowInstancesConfig instances)
Constructs a new RunJobFlowRequest object. |
Method Summary | |
---|---|
String |
getAdditionalInfo()
A JSON string for selecting additional features. |
List<BootstrapActionConfig> |
getBootstrapActions()
A list of bootstrap actions that will be run before Hadoop is started on the cluster nodes. |
JobFlowInstancesConfig |
getInstances()
A specification of the number and type of Amazon EC2 instances on which to run the job flow. |
String |
getLogUri()
Specifies the location in Amazon S3 to write the log files of the job flow. |
String |
getName()
The name of the job flow. |
List<StepConfig> |
getSteps()
A list of steps to be executed by the job flow. |
void |
setAdditionalInfo(String additionalInfo)
A JSON string for selecting additional features. |
void |
setBootstrapActions(Collection<BootstrapActionConfig> bootstrapActions)
A list of bootstrap actions that will be run before Hadoop is started on the cluster nodes. |
void |
setInstances(JobFlowInstancesConfig instances)
A specification of the number and type of Amazon EC2 instances on which to run the job flow. |
void |
setLogUri(String logUri)
Specifies the location in Amazon S3 to write the log files of the job flow. |
void |
setName(String name)
The name of the job flow. |
void |
setSteps(Collection<StepConfig> steps)
A list of steps to be executed by the job flow. |
String |
toString()
Returns a string representation of this object; useful for testing and debugging. |
RunJobFlowRequest |
withAdditionalInfo(String additionalInfo)
A JSON string for selecting additional features. |
RunJobFlowRequest |
withBootstrapActions(BootstrapActionConfig... bootstrapActions)
A list of bootstrap actions that will be run before Hadoop is started on the cluster nodes. |
RunJobFlowRequest |
withBootstrapActions(Collection<BootstrapActionConfig> bootstrapActions)
A list of bootstrap actions that will be run before Hadoop is started on the cluster nodes. |
RunJobFlowRequest |
withInstances(JobFlowInstancesConfig instances)
A specification of the number and type of Amazon EC2 instances on which to run the job flow. |
RunJobFlowRequest |
withLogUri(String logUri)
Specifies the location in Amazon S3 to write the log files of the job flow. |
RunJobFlowRequest |
withName(String name)
The name of the job flow. |
RunJobFlowRequest |
withSteps(Collection<StepConfig> steps)
A list of steps to be executed by the job flow. |
RunJobFlowRequest |
withSteps(StepConfig... steps)
A list of steps to be executed by the job flow. |
Methods inherited from class com.amazonaws.AmazonWebServiceRequest |
---|
copyPrivateRequestParameters |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public RunJobFlowRequest()
public RunJobFlowRequest(String name, JobFlowInstancesConfig instances)
name
- The name of the job flow.instances
- A specification of the number and type of Amazon EC2
instances on which to run the job flow.Method Detail |
---|
public String getName()
Constraints:
Length: 0 - 256
Pattern: [ -??-??-?\r\n\t]*
public void setName(String name)
Constraints:
Length: 0 - 256
Pattern: [ -??-??-?\r\n\t]*
name
- The name of the job flow.public RunJobFlowRequest withName(String name)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 256
Pattern: [ -??-??-?\r\n\t]*
name
- The name of the job flow.
public String getLogUri()
Constraints:
Length: 0 - 10280
Pattern: [ -??-??-?\r\n\t]*
public void setLogUri(String logUri)
Constraints:
Length: 0 - 10280
Pattern: [ -??-??-?\r\n\t]*
logUri
- Specifies the location in Amazon S3 to write the log files of the job
flow. If a value is not provided, logs are not created.public RunJobFlowRequest withLogUri(String logUri)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 10280
Pattern: [ -??-??-?\r\n\t]*
logUri
- Specifies the location in Amazon S3 to write the log files of the job
flow. If a value is not provided, logs are not created.
public String getAdditionalInfo()
Constraints:
Length: 0 - 10280
Pattern: [ -??-??-?\r\n\t]*
public void setAdditionalInfo(String additionalInfo)
Constraints:
Length: 0 - 10280
Pattern: [ -??-??-?\r\n\t]*
additionalInfo
- A JSON string for selecting additional features.public RunJobFlowRequest withAdditionalInfo(String additionalInfo)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 10280
Pattern: [ -??-??-?\r\n\t]*
additionalInfo
- A JSON string for selecting additional features.
public JobFlowInstancesConfig getInstances()
public void setInstances(JobFlowInstancesConfig instances)
instances
- A specification of the number and type of Amazon EC2 instances on
which to run the job flow.public RunJobFlowRequest withInstances(JobFlowInstancesConfig instances)
Returns a reference to this object so that method calls can be chained together.
instances
- A specification of the number and type of Amazon EC2 instances on
which to run the job flow.
public List<StepConfig> getSteps()
public void setSteps(Collection<StepConfig> steps)
steps
- A list of steps to be executed by the job flow.public RunJobFlowRequest withSteps(StepConfig... steps)
Returns a reference to this object so that method calls can be chained together.
steps
- A list of steps to be executed by the job flow.
public RunJobFlowRequest withSteps(Collection<StepConfig> steps)
Returns a reference to this object so that method calls can be chained together.
steps
- A list of steps to be executed by the job flow.
public List<BootstrapActionConfig> getBootstrapActions()
public void setBootstrapActions(Collection<BootstrapActionConfig> bootstrapActions)
bootstrapActions
- A list of bootstrap actions that will be run before Hadoop is started
on the cluster nodes.public RunJobFlowRequest withBootstrapActions(BootstrapActionConfig... bootstrapActions)
Returns a reference to this object so that method calls can be chained together.
bootstrapActions
- A list of bootstrap actions that will be run before Hadoop is started
on the cluster nodes.
public RunJobFlowRequest withBootstrapActions(Collection<BootstrapActionConfig> bootstrapActions)
Returns a reference to this object so that method calls can be chained together.
bootstrapActions
- A list of bootstrap actions that will be run before Hadoop is started
on the cluster nodes.
public String toString()
toString
in class Object
Object.toString()
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |