|
Did this page help you?Yes No Tell us about it... |
||||||
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
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.
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 | |
---|---|
boolean |
equals(Object obj)
|
String |
getAdditionalInfo()
A JSON string for selecting additional features. |
String |
getAmiVersion()
The version of the Amazon Machine Image (AMI) to use when launching Amazon EC2 instances in the job flow. |
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. |
List<String> |
getSupportedProducts()
A list of strings used by third-party software to tag the job flow. |
int |
hashCode()
|
void |
setAdditionalInfo(String additionalInfo)
A JSON string for selecting additional features. |
void |
setAmiVersion(String amiVersion)
The version of the Amazon Machine Image (AMI) to use when launching Amazon EC2 instances in the job flow. |
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. |
void |
setSupportedProducts(Collection<String> supportedProducts)
A list of strings used by third-party software to tag 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 |
withAmiVersion(String amiVersion)
The version of the Amazon Machine Image (AMI) to use when launching Amazon EC2 instances in the job flow. |
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. |
RunJobFlowRequest |
withSupportedProducts(Collection<String> supportedProducts)
A list of strings used by third-party software to tag the job flow. |
RunJobFlowRequest |
withSupportedProducts(String... supportedProducts)
A list of strings used by third-party software to tag the job flow. |
Methods inherited from class com.amazonaws.AmazonWebServiceRequest |
---|
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentials |
Methods inherited from class java.lang.Object |
---|
getClass, 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 String getAmiVersion()
If this value is not specified, the job flow uses the default of (AMI 1.0, Hadoop 0.18).
If the AMI
supports multiple verisons of Hadoop (for example, AMI 1.0 supports
both Hadoop 0.18 and 0.20) you can use the
JobFlowInstancesConfig HadoopVersion
parameter to
modify the version of Hadoop from the defaults shown above.
For details about the AMI versions currently supported by Amazon ElasticMapReduce, go to AMI Versions Supported in Elastic MapReduce in the Amazon Elastic MapReduce Developer's Guide.
Constraints:
Length: 0 - 256
Pattern: [ -??-??-?\r\n\t]*
If this value is not specified, the job flow uses the default of (AMI 1.0, Hadoop 0.18).
If the AMI
supports multiple verisons of Hadoop (for example, AMI 1.0 supports
both Hadoop 0.18 and 0.20) you can use the
JobFlowInstancesConfig HadoopVersion
parameter to
modify the version of Hadoop from the defaults shown above.
For details about the AMI versions currently supported by Amazon ElasticMapReduce, go to AMI Versions Supported in Elastic MapReduce in the Amazon Elastic MapReduce Developer's Guide.
public void setAmiVersion(String amiVersion)
If this value is not specified, the job flow uses the default of (AMI 1.0, Hadoop 0.18).
If the AMI
supports multiple verisons of Hadoop (for example, AMI 1.0 supports
both Hadoop 0.18 and 0.20) you can use the
JobFlowInstancesConfig HadoopVersion
parameter to
modify the version of Hadoop from the defaults shown above.
For details about the AMI versions currently supported by Amazon ElasticMapReduce, go to AMI Versions Supported in Elastic MapReduce in the Amazon Elastic MapReduce Developer's Guide.
Constraints:
Length: 0 - 256
Pattern: [ -??-??-?\r\n\t]*
amiVersion
- The version of the Amazon Machine Image (AMI) to use when launching
Amazon EC2 instances in the job flow. The following values ane valid:
If this value is not specified, the job flow uses the default of (AMI 1.0, Hadoop 0.18).
If the AMI
supports multiple verisons of Hadoop (for example, AMI 1.0 supports
both Hadoop 0.18 and 0.20) you can use the
JobFlowInstancesConfig HadoopVersion
parameter to
modify the version of Hadoop from the defaults shown above.
For details about the AMI versions currently supported by Amazon ElasticMapReduce, go to AMI Versions Supported in Elastic MapReduce in the Amazon Elastic MapReduce Developer's Guide.
public RunJobFlowRequest withAmiVersion(String amiVersion)
If this value is not specified, the job flow uses the default of (AMI 1.0, Hadoop 0.18).
If the AMI
supports multiple verisons of Hadoop (for example, AMI 1.0 supports
both Hadoop 0.18 and 0.20) you can use the
JobFlowInstancesConfig HadoopVersion
parameter to
modify the version of Hadoop from the defaults shown above.
For details about the AMI versions currently supported by Amazon ElasticMapReduce, go to AMI Versions Supported in Elastic MapReduce in the Amazon Elastic MapReduce Developer's Guide.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 256
Pattern: [ -??-??-?\r\n\t]*
amiVersion
- The version of the Amazon Machine Image (AMI) to use when launching
Amazon EC2 instances in the job flow. The following values ane valid:
If this value is not specified, the job flow uses the default of (AMI 1.0, Hadoop 0.18).
If the AMI
supports multiple verisons of Hadoop (for example, AMI 1.0 supports
both Hadoop 0.18 and 0.20) you can use the
JobFlowInstancesConfig HadoopVersion
parameter to
modify the version of Hadoop from the defaults shown above.
For details about the AMI versions currently supported by Amazon ElasticMapReduce, go to AMI Versions Supported in Elastic MapReduce in the Amazon Elastic MapReduce Developer's Guide.
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 List<String> getSupportedProducts()
public void setSupportedProducts(Collection<String> supportedProducts)
supportedProducts
- A list of strings used by third-party software to tag the job flow.
Currently the only valid value is "karmasphere-enterprise-utility",
which tags the job flow for management by Karmasphere.public RunJobFlowRequest withSupportedProducts(String... supportedProducts)
Returns a reference to this object so that method calls can be chained together.
supportedProducts
- A list of strings used by third-party software to tag the job flow.
Currently the only valid value is "karmasphere-enterprise-utility",
which tags the job flow for management by Karmasphere.
public RunJobFlowRequest withSupportedProducts(Collection<String> supportedProducts)
Returns a reference to this object so that method calls can be chained together.
supportedProducts
- A list of strings used by third-party software to tag the job flow.
Currently the only valid value is "karmasphere-enterprise-utility",
which tags the job flow for management by Karmasphere.
public String toString()
toString
in class Object
Object.toString()
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |