Class RunJobFlowRequest
- All Implemented Interfaces:
ReadLimitInfo
,Serializable
,Cloneable
Input to the RunJobFlow operation.
- See Also:
-
Field Summary
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for RunJobFlowRequest object.RunJobFlowRequest
(String name, JobFlowInstancesConfig instances) Constructs a new RunJobFlowRequest object. -
Method Summary
Modifier and TypeMethodDescriptionclone()
Creates a shallow clone of this request.boolean
A JSON string for selecting additional features.A list of bootstrap actions that will be run before Hadoop is started on the cluster nodes.A specification of the number and type of Amazon EC2 instances on which to run the job flow.Also called instance profile and EC2 role.The location in Amazon S3 to write the log files of the job flow.getName()
The name of the job flow.The IAM role that will be assumed by the Amazon EMR service to access AWS resources on your behalf.getSteps()
A list of steps to be executed by the job flow.getTags()
A list of tags to associate with a cluster and propagate to Amazon EC2 instances.Whether the job flow is visible to all IAM users of the AWS account associated with the job flow.int
hashCode()
Whether the job flow is visible to all IAM users of the AWS account associated with the job flow.void
setAdditionalInfo
(String additionalInfo) A JSON string for selecting additional features.void
setAmiVersion
(String amiVersion) void
setApplications
(Collection<Application> applications) void
setBootstrapActions
(Collection<BootstrapActionConfig> bootstrapActions) A list of bootstrap actions that will be run before Hadoop is started on the cluster nodes.void
setConfigurations
(Collection<Configuration> configurations) void
setInstances
(JobFlowInstancesConfig instances) A specification of the number and type of Amazon EC2 instances on which to run the job flow.void
setJobFlowRole
(String jobFlowRole) Also called instance profile and EC2 role.void
The location in Amazon S3 to write the log files of the job flow.void
The name of the job flow.void
setNewSupportedProducts
(Collection<SupportedProductConfig> newSupportedProducts) void
setReleaseLabel
(String releaseLabel) void
setServiceRole
(String serviceRole) The IAM role that will be assumed by the Amazon EMR service to access AWS resources on your behalf.void
setSteps
(Collection<StepConfig> steps) A list of steps to be executed by the job flow.void
setSupportedProducts
(Collection<String> supportedProducts) void
setTags
(Collection<Tag> tags) A list of tags to associate with a cluster and propagate to Amazon EC2 instances.void
setVisibleToAllUsers
(Boolean visibleToAllUsers) Whether the job flow is visible to all IAM users of the AWS account associated with the job flow.toString()
Returns a string representation of this object; useful for testing and debugging.withAdditionalInfo
(String additionalInfo) A JSON string for selecting additional features.withAmiVersion
(String amiVersion) withApplications
(Application... applications) withApplications
(Collection<Application> applications) withBootstrapActions
(BootstrapActionConfig... bootstrapActions) A list of bootstrap actions that will be run before Hadoop is started on the cluster nodes.withBootstrapActions
(Collection<BootstrapActionConfig> bootstrapActions) A list of bootstrap actions that will be run before Hadoop is started on the cluster nodes.withConfigurations
(Configuration... configurations) withConfigurations
(Collection<Configuration> configurations) withInstances
(JobFlowInstancesConfig instances) A specification of the number and type of Amazon EC2 instances on which to run the job flow.withJobFlowRole
(String jobFlowRole) Also called instance profile and EC2 role.withLogUri
(String logUri) The location in Amazon S3 to write the log files of the job flow.The name of the job flow.withNewSupportedProducts
(SupportedProductConfig... newSupportedProducts) withNewSupportedProducts
(Collection<SupportedProductConfig> newSupportedProducts) withReleaseLabel
(String releaseLabel) withServiceRole
(String serviceRole) The IAM role that will be assumed by the Amazon EMR service to access AWS resources on your behalf.withSteps
(StepConfig... steps) A list of steps to be executed by the job flow.withSteps
(Collection<StepConfig> steps) A list of steps to be executed by the job flow.withSupportedProducts
(String... supportedProducts) withSupportedProducts
(Collection<String> supportedProducts) A list of tags to associate with a cluster and propagate to Amazon EC2 instances.withTags
(Collection<Tag> tags) A list of tags to associate with a cluster and propagate to Amazon EC2 instances.withVisibleToAllUsers
(Boolean visibleToAllUsers) Whether the job flow is visible to all IAM users of the AWS account associated with the job flow.Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
-
Constructor Details
-
RunJobFlowRequest
public RunJobFlowRequest()Default constructor for RunJobFlowRequest object. Callers should use the setter or fluent setter (with...) methods to initialize the object after creating it. -
RunJobFlowRequest
Constructs a new RunJobFlowRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.- Parameters:
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 Details
-
setName
The name of the job flow.
- Parameters:
name
- The name of the job flow.
-
getName
The name of the job flow.
- Returns:
- The name of the job flow.
-
withName
The name of the job flow.
- Parameters:
name
- The name of the job flow.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setLogUri
The location in Amazon S3 to write the log files of the job flow. If a value is not provided, logs are not created.
- Parameters:
logUri
- The location in Amazon S3 to write the log files of the job flow. If a value is not provided, logs are not created.
-
getLogUri
The location in Amazon S3 to write the log files of the job flow. If a value is not provided, logs are not created.
- Returns:
- The location in Amazon S3 to write the log files of the job flow. If a value is not provided, logs are not created.
-
withLogUri
The location in Amazon S3 to write the log files of the job flow. If a value is not provided, logs are not created.
- Parameters:
logUri
- The location in Amazon S3 to write the log files of the job flow. If a value is not provided, logs are not created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setAdditionalInfo
A JSON string for selecting additional features.
- Parameters:
additionalInfo
- A JSON string for selecting additional features.
-
getAdditionalInfo
A JSON string for selecting additional features.
- Returns:
- A JSON string for selecting additional features.
-
withAdditionalInfo
A JSON string for selecting additional features.
- Parameters:
additionalInfo
- A JSON string for selecting additional features.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setAmiVersion
For Amazon EMR releases 3.x and 2.x. For Amazon EMR releases 4.x and greater, use ReleaseLabel.
The version of the Amazon Machine Image (AMI) to use when launching Amazon EC2 instances in the job flow. The following values are valid:
- The version number of the AMI to use, for example, "2.0."
If the AMI supports multiple versions 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 Elastic MapReduce, go to AMI Versions Supported in Elastic MapReduce in the Amazon Elastic MapReduce Developer's Guide.
- Parameters:
amiVersion
- For Amazon EMR releases 3.x and 2.x. For Amazon EMR releases 4.x and greater, use ReleaseLabel.The version of the Amazon Machine Image (AMI) to use when launching Amazon EC2 instances in the job flow. The following values are valid:
- The version number of the AMI to use, for example, "2.0."
If the AMI supports multiple versions 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 Elastic MapReduce, go to AMI Versions Supported in Elastic MapReduce in the Amazon Elastic MapReduce Developer's Guide.
-
getAmiVersion
For Amazon EMR releases 3.x and 2.x. For Amazon EMR releases 4.x and greater, use ReleaseLabel.
The version of the Amazon Machine Image (AMI) to use when launching Amazon EC2 instances in the job flow. The following values are valid:
- The version number of the AMI to use, for example, "2.0."
If the AMI supports multiple versions 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 Elastic MapReduce, go to AMI Versions Supported in Elastic MapReduce in the Amazon Elastic MapReduce Developer's Guide.
- Returns:
- For Amazon EMR releases 3.x and 2.x. For Amazon EMR releases 4.x
and greater, use ReleaseLabel.
The version of the Amazon Machine Image (AMI) to use when launching Amazon EC2 instances in the job flow. The following values are valid:
- The version number of the AMI to use, for example, "2.0."
If the AMI supports multiple versions 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 Elastic MapReduce, go to AMI Versions Supported in Elastic MapReduce in the Amazon Elastic MapReduce Developer's Guide.
-
withAmiVersion
For Amazon EMR releases 3.x and 2.x. For Amazon EMR releases 4.x and greater, use ReleaseLabel.
The version of the Amazon Machine Image (AMI) to use when launching Amazon EC2 instances in the job flow. The following values are valid:
- The version number of the AMI to use, for example, "2.0."
If the AMI supports multiple versions 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 Elastic MapReduce, go to AMI Versions Supported in Elastic MapReduce in the Amazon Elastic MapReduce Developer's Guide.
- Parameters:
amiVersion
- For Amazon EMR releases 3.x and 2.x. For Amazon EMR releases 4.x and greater, use ReleaseLabel.The version of the Amazon Machine Image (AMI) to use when launching Amazon EC2 instances in the job flow. The following values are valid:
- The version number of the AMI to use, for example, "2.0."
If the AMI supports multiple versions 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 Elastic MapReduce, go to AMI Versions Supported in Elastic MapReduce in the Amazon Elastic MapReduce Developer's Guide.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setReleaseLabel
Amazon EMR releases 4.x or later.
The release label for the Amazon EMR release. For Amazon EMR 3.x and 2.x AMIs, use amiVersion instead instead of ReleaseLabel.
- Parameters:
releaseLabel
- Amazon EMR releases 4.x or later.
-
getReleaseLabel
Amazon EMR releases 4.x or later.
The release label for the Amazon EMR release. For Amazon EMR 3.x and 2.x AMIs, use amiVersion instead instead of ReleaseLabel.
- Returns:
- Amazon EMR releases 4.x or later.
-
withReleaseLabel
Amazon EMR releases 4.x or later.
The release label for the Amazon EMR release. For Amazon EMR 3.x and 2.x AMIs, use amiVersion instead instead of ReleaseLabel.
- Parameters:
releaseLabel
- Amazon EMR releases 4.x or later.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setInstances
A specification of the number and type of Amazon EC2 instances on which to run the job flow.
- Parameters:
instances
- A specification of the number and type of Amazon EC2 instances on which to run the job flow.
-
getInstances
A specification of the number and type of Amazon EC2 instances on which to run the job flow.
- Returns:
- A specification of the number and type of Amazon EC2 instances on which to run the job flow.
-
withInstances
A specification of the number and type of Amazon EC2 instances on which to run the job flow.
- Parameters:
instances
- A specification of the number and type of Amazon EC2 instances on which to run the job flow.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getSteps
A list of steps to be executed by the job flow.
- Returns:
- A list of steps to be executed by the job flow.
-
setSteps
A list of steps to be executed by the job flow.
- Parameters:
steps
- A list of steps to be executed by the job flow.
-
withSteps
A list of steps to be executed by the job flow.
NOTE: This method appends the values to the existing list (if any). Use
setSteps(java.util.Collection)
orwithSteps(java.util.Collection)
if you want to override the existing values.- Parameters:
steps
- A list of steps to be executed by the job flow.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withSteps
A list of steps to be executed by the job flow.
- Parameters:
steps
- A list of steps to be executed by the job flow.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getBootstrapActions
A list of bootstrap actions that will be run before Hadoop is started on the cluster nodes.
- Returns:
- A list of bootstrap actions that will be run before Hadoop is started on the cluster nodes.
-
setBootstrapActions
A list of bootstrap actions that will be run before Hadoop is started on the cluster nodes.
- Parameters:
bootstrapActions
- A list of bootstrap actions that will be run before Hadoop is started on the cluster nodes.
-
withBootstrapActions
A list of bootstrap actions that will be run before Hadoop is started on the cluster nodes.
NOTE: This method appends the values to the existing list (if any). Use
setBootstrapActions(java.util.Collection)
orwithBootstrapActions(java.util.Collection)
if you want to override the existing values.- Parameters:
bootstrapActions
- A list of bootstrap actions that will be run before Hadoop is started on the cluster nodes.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withBootstrapActions
A list of bootstrap actions that will be run before Hadoop is started on the cluster nodes.
- Parameters:
bootstrapActions
- A list of bootstrap actions that will be run before Hadoop is started on the cluster nodes.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getSupportedProducts
For Amazon EMR releases 3.x and 2.x. For Amazon EMR releases 4.x and greater, use Applications.
A list of strings that indicates third-party software to use with the job flow. For more information, go to Use Third Party Applications with Amazon EMR. Currently supported values are:
- "mapr-m3" - launch the job flow using MapR M3 Edition.
- "mapr-m5" - launch the job flow using MapR M5 Edition.
- Returns:
- For Amazon EMR releases 3.x and 2.x. For Amazon EMR releases 4.x
and greater, use Applications.
A list of strings that indicates third-party software to use with the job flow. For more information, go to Use Third Party Applications with Amazon EMR. Currently supported values are:
- "mapr-m3" - launch the job flow using MapR M3 Edition.
- "mapr-m5" - launch the job flow using MapR M5 Edition.
-
setSupportedProducts
For Amazon EMR releases 3.x and 2.x. For Amazon EMR releases 4.x and greater, use Applications.
A list of strings that indicates third-party software to use with the job flow. For more information, go to Use Third Party Applications with Amazon EMR. Currently supported values are:
- "mapr-m3" - launch the job flow using MapR M3 Edition.
- "mapr-m5" - launch the job flow using MapR M5 Edition.
- Parameters:
supportedProducts
- For Amazon EMR releases 3.x and 2.x. For Amazon EMR releases 4.x and greater, use Applications.A list of strings that indicates third-party software to use with the job flow. For more information, go to Use Third Party Applications with Amazon EMR. Currently supported values are:
- "mapr-m3" - launch the job flow using MapR M3 Edition.
- "mapr-m5" - launch the job flow using MapR M5 Edition.
-
withSupportedProducts
For Amazon EMR releases 3.x and 2.x. For Amazon EMR releases 4.x and greater, use Applications.
A list of strings that indicates third-party software to use with the job flow. For more information, go to Use Third Party Applications with Amazon EMR. Currently supported values are:
- "mapr-m3" - launch the job flow using MapR M3 Edition.
- "mapr-m5" - launch the job flow using MapR M5 Edition.
NOTE: This method appends the values to the existing list (if any). Use
setSupportedProducts(java.util.Collection)
orwithSupportedProducts(java.util.Collection)
if you want to override the existing values.- Parameters:
supportedProducts
- For Amazon EMR releases 3.x and 2.x. For Amazon EMR releases 4.x and greater, use Applications.A list of strings that indicates third-party software to use with the job flow. For more information, go to Use Third Party Applications with Amazon EMR. Currently supported values are:
- "mapr-m3" - launch the job flow using MapR M3 Edition.
- "mapr-m5" - launch the job flow using MapR M5 Edition.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withSupportedProducts
For Amazon EMR releases 3.x and 2.x. For Amazon EMR releases 4.x and greater, use Applications.
A list of strings that indicates third-party software to use with the job flow. For more information, go to Use Third Party Applications with Amazon EMR. Currently supported values are:
- "mapr-m3" - launch the job flow using MapR M3 Edition.
- "mapr-m5" - launch the job flow using MapR M5 Edition.
- Parameters:
supportedProducts
- For Amazon EMR releases 3.x and 2.x. For Amazon EMR releases 4.x and greater, use Applications.A list of strings that indicates third-party software to use with the job flow. For more information, go to Use Third Party Applications with Amazon EMR. Currently supported values are:
- "mapr-m3" - launch the job flow using MapR M3 Edition.
- "mapr-m5" - launch the job flow using MapR M5 Edition.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getNewSupportedProducts
For Amazon EMR releases 3.x and 2.x. For Amazon EMR releases 4.x and greater, use Applications.
A list of strings that indicates third-party software to use with the job flow that accepts a user argument list. EMR accepts and forwards the argument list to the corresponding installation script as bootstrap action arguments. For more information, see Launch a Job Flow on the MapR Distribution for Hadoop. Currently supported values are:
- "mapr-m3" - launch the cluster using MapR M3 Edition.
- "mapr-m5" - launch the cluster using MapR M5 Edition.
- "mapr" with the user arguments specifying "--edition,m3" or "--edition,m5" - launch the job flow using MapR M3 or M5 Edition respectively.
- "mapr-m7" - launch the cluster using MapR M7 Edition.
- "hunk" - launch the cluster with the Hunk Big Data Analtics Platform.
- "hue"- launch the cluster with Hue installed.
- "spark" - launch the cluster with Apache Spark installed.
- "ganglia" - launch the cluster with the Ganglia Monitoring System installed.
- Returns:
- For Amazon EMR releases 3.x and 2.x. For Amazon EMR releases 4.x
and greater, use Applications.
A list of strings that indicates third-party software to use with the job flow that accepts a user argument list. EMR accepts and forwards the argument list to the corresponding installation script as bootstrap action arguments. For more information, see Launch a Job Flow on the MapR Distribution for Hadoop. Currently supported values are:
- "mapr-m3" - launch the cluster using MapR M3 Edition.
- "mapr-m5" - launch the cluster using MapR M5 Edition.
- "mapr" with the user arguments specifying "--edition,m3" or "--edition,m5" - launch the job flow using MapR M3 or M5 Edition respectively.
- "mapr-m7" - launch the cluster using MapR M7 Edition.
- "hunk" - launch the cluster with the Hunk Big Data Analtics Platform.
- "hue"- launch the cluster with Hue installed.
- "spark" - launch the cluster with Apache Spark installed.
- "ganglia" - launch the cluster with the Ganglia Monitoring System installed.
-
setNewSupportedProducts
For Amazon EMR releases 3.x and 2.x. For Amazon EMR releases 4.x and greater, use Applications.
A list of strings that indicates third-party software to use with the job flow that accepts a user argument list. EMR accepts and forwards the argument list to the corresponding installation script as bootstrap action arguments. For more information, see Launch a Job Flow on the MapR Distribution for Hadoop. Currently supported values are:
- "mapr-m3" - launch the cluster using MapR M3 Edition.
- "mapr-m5" - launch the cluster using MapR M5 Edition.
- "mapr" with the user arguments specifying "--edition,m3" or "--edition,m5" - launch the job flow using MapR M3 or M5 Edition respectively.
- "mapr-m7" - launch the cluster using MapR M7 Edition.
- "hunk" - launch the cluster with the Hunk Big Data Analtics Platform.
- "hue"- launch the cluster with Hue installed.
- "spark" - launch the cluster with Apache Spark installed.
- "ganglia" - launch the cluster with the Ganglia Monitoring System installed.
- Parameters:
newSupportedProducts
- For Amazon EMR releases 3.x and 2.x. For Amazon EMR releases 4.x and greater, use Applications.A list of strings that indicates third-party software to use with the job flow that accepts a user argument list. EMR accepts and forwards the argument list to the corresponding installation script as bootstrap action arguments. For more information, see Launch a Job Flow on the MapR Distribution for Hadoop. Currently supported values are:
- "mapr-m3" - launch the cluster using MapR M3 Edition.
- "mapr-m5" - launch the cluster using MapR M5 Edition.
- "mapr" with the user arguments specifying "--edition,m3" or "--edition,m5" - launch the job flow using MapR M3 or M5 Edition respectively.
- "mapr-m7" - launch the cluster using MapR M7 Edition.
- "hunk" - launch the cluster with the Hunk Big Data Analtics Platform.
- "hue"- launch the cluster with Hue installed.
- "spark" - launch the cluster with Apache Spark installed.
- "ganglia" - launch the cluster with the Ganglia Monitoring System installed.
-
withNewSupportedProducts
For Amazon EMR releases 3.x and 2.x. For Amazon EMR releases 4.x and greater, use Applications.
A list of strings that indicates third-party software to use with the job flow that accepts a user argument list. EMR accepts and forwards the argument list to the corresponding installation script as bootstrap action arguments. For more information, see Launch a Job Flow on the MapR Distribution for Hadoop. Currently supported values are:
- "mapr-m3" - launch the cluster using MapR M3 Edition.
- "mapr-m5" - launch the cluster using MapR M5 Edition.
- "mapr" with the user arguments specifying "--edition,m3" or "--edition,m5" - launch the job flow using MapR M3 or M5 Edition respectively.
- "mapr-m7" - launch the cluster using MapR M7 Edition.
- "hunk" - launch the cluster with the Hunk Big Data Analtics Platform.
- "hue"- launch the cluster with Hue installed.
- "spark" - launch the cluster with Apache Spark installed.
- "ganglia" - launch the cluster with the Ganglia Monitoring System installed.
NOTE: This method appends the values to the existing list (if any). Use
setNewSupportedProducts(java.util.Collection)
orwithNewSupportedProducts(java.util.Collection)
if you want to override the existing values.- Parameters:
newSupportedProducts
- For Amazon EMR releases 3.x and 2.x. For Amazon EMR releases 4.x and greater, use Applications.A list of strings that indicates third-party software to use with the job flow that accepts a user argument list. EMR accepts and forwards the argument list to the corresponding installation script as bootstrap action arguments. For more information, see Launch a Job Flow on the MapR Distribution for Hadoop. Currently supported values are:
- "mapr-m3" - launch the cluster using MapR M3 Edition.
- "mapr-m5" - launch the cluster using MapR M5 Edition.
- "mapr" with the user arguments specifying "--edition,m3" or "--edition,m5" - launch the job flow using MapR M3 or M5 Edition respectively.
- "mapr-m7" - launch the cluster using MapR M7 Edition.
- "hunk" - launch the cluster with the Hunk Big Data Analtics Platform.
- "hue"- launch the cluster with Hue installed.
- "spark" - launch the cluster with Apache Spark installed.
- "ganglia" - launch the cluster with the Ganglia Monitoring System installed.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withNewSupportedProducts
public RunJobFlowRequest withNewSupportedProducts(Collection<SupportedProductConfig> newSupportedProducts) For Amazon EMR releases 3.x and 2.x. For Amazon EMR releases 4.x and greater, use Applications.
A list of strings that indicates third-party software to use with the job flow that accepts a user argument list. EMR accepts and forwards the argument list to the corresponding installation script as bootstrap action arguments. For more information, see Launch a Job Flow on the MapR Distribution for Hadoop. Currently supported values are:
- "mapr-m3" - launch the cluster using MapR M3 Edition.
- "mapr-m5" - launch the cluster using MapR M5 Edition.
- "mapr" with the user arguments specifying "--edition,m3" or "--edition,m5" - launch the job flow using MapR M3 or M5 Edition respectively.
- "mapr-m7" - launch the cluster using MapR M7 Edition.
- "hunk" - launch the cluster with the Hunk Big Data Analtics Platform.
- "hue"- launch the cluster with Hue installed.
- "spark" - launch the cluster with Apache Spark installed.
- "ganglia" - launch the cluster with the Ganglia Monitoring System installed.
- Parameters:
newSupportedProducts
- For Amazon EMR releases 3.x and 2.x. For Amazon EMR releases 4.x and greater, use Applications.A list of strings that indicates third-party software to use with the job flow that accepts a user argument list. EMR accepts and forwards the argument list to the corresponding installation script as bootstrap action arguments. For more information, see Launch a Job Flow on the MapR Distribution for Hadoop. Currently supported values are:
- "mapr-m3" - launch the cluster using MapR M3 Edition.
- "mapr-m5" - launch the cluster using MapR M5 Edition.
- "mapr" with the user arguments specifying "--edition,m3" or "--edition,m5" - launch the job flow using MapR M3 or M5 Edition respectively.
- "mapr-m7" - launch the cluster using MapR M7 Edition.
- "hunk" - launch the cluster with the Hunk Big Data Analtics Platform.
- "hue"- launch the cluster with Hue installed.
- "spark" - launch the cluster with Apache Spark installed.
- "ganglia" - launch the cluster with the Ganglia Monitoring System installed.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getApplications
Amazon EMR releases 4.x or later.
A list of applications for the cluster. Valid values are: "Hadoop", "Hive", "Mahout", "Pig", and "Spark." They are case insensitive.
- Returns:
- Amazon EMR releases 4.x or later.
-
setApplications
Amazon EMR releases 4.x or later.
A list of applications for the cluster. Valid values are: "Hadoop", "Hive", "Mahout", "Pig", and "Spark." They are case insensitive.
- Parameters:
applications
- Amazon EMR releases 4.x or later.
-
withApplications
Amazon EMR releases 4.x or later.
A list of applications for the cluster. Valid values are: "Hadoop", "Hive", "Mahout", "Pig", and "Spark." They are case insensitive.
NOTE: This method appends the values to the existing list (if any). Use
setApplications(java.util.Collection)
orwithApplications(java.util.Collection)
if you want to override the existing values.- Parameters:
applications
- Amazon EMR releases 4.x or later.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withApplications
Amazon EMR releases 4.x or later.
A list of applications for the cluster. Valid values are: "Hadoop", "Hive", "Mahout", "Pig", and "Spark." They are case insensitive.
- Parameters:
applications
- Amazon EMR releases 4.x or later.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getConfigurations
Amazon EMR releases 4.x or later.
The list of configurations supplied for the EMR cluster you are creating.
- Returns:
- Amazon EMR releases 4.x or later.
-
setConfigurations
Amazon EMR releases 4.x or later.
The list of configurations supplied for the EMR cluster you are creating.
- Parameters:
configurations
- Amazon EMR releases 4.x or later.
-
withConfigurations
Amazon EMR releases 4.x or later.
The list of configurations supplied for the EMR cluster you are creating.
NOTE: This method appends the values to the existing list (if any). Use
setConfigurations(java.util.Collection)
orwithConfigurations(java.util.Collection)
if you want to override the existing values.- Parameters:
configurations
- Amazon EMR releases 4.x or later.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withConfigurations
Amazon EMR releases 4.x or later.
The list of configurations supplied for the EMR cluster you are creating.
- Parameters:
configurations
- Amazon EMR releases 4.x or later.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setVisibleToAllUsers
Whether the job flow is visible to all IAM users of the AWS account associated with the job flow. If this value is set to
true
, all IAM users of that AWS account can view and (if they have the proper policy permissions set) manage the job flow. If it is set tofalse
, only the IAM user that created the job flow can view and manage it.- Parameters:
visibleToAllUsers
- Whether the job flow is visible to all IAM users of the AWS account associated with the job flow. If this value is set totrue
, all IAM users of that AWS account can view and (if they have the proper policy permissions set) manage the job flow. If it is set tofalse
, only the IAM user that created the job flow can view and manage it.
-
getVisibleToAllUsers
Whether the job flow is visible to all IAM users of the AWS account associated with the job flow. If this value is set to
true
, all IAM users of that AWS account can view and (if they have the proper policy permissions set) manage the job flow. If it is set tofalse
, only the IAM user that created the job flow can view and manage it.- Returns:
- Whether the job flow is visible to all IAM users of the AWS
account associated with the job flow. If this value is set to
true
, all IAM users of that AWS account can view and (if they have the proper policy permissions set) manage the job flow. If it is set tofalse
, only the IAM user that created the job flow can view and manage it.
-
withVisibleToAllUsers
Whether the job flow is visible to all IAM users of the AWS account associated with the job flow. If this value is set to
true
, all IAM users of that AWS account can view and (if they have the proper policy permissions set) manage the job flow. If it is set tofalse
, only the IAM user that created the job flow can view and manage it.- Parameters:
visibleToAllUsers
- Whether the job flow is visible to all IAM users of the AWS account associated with the job flow. If this value is set totrue
, all IAM users of that AWS account can view and (if they have the proper policy permissions set) manage the job flow. If it is set tofalse
, only the IAM user that created the job flow can view and manage it.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isVisibleToAllUsers
Whether the job flow is visible to all IAM users of the AWS account associated with the job flow. If this value is set to
true
, all IAM users of that AWS account can view and (if they have the proper policy permissions set) manage the job flow. If it is set tofalse
, only the IAM user that created the job flow can view and manage it.- Returns:
- Whether the job flow is visible to all IAM users of the AWS
account associated with the job flow. If this value is set to
true
, all IAM users of that AWS account can view and (if they have the proper policy permissions set) manage the job flow. If it is set tofalse
, only the IAM user that created the job flow can view and manage it.
-
setJobFlowRole
Also called instance profile and EC2 role. An IAM role for an EMR cluster. The EC2 instances of the cluster assume this role. The default role is
EMR_EC2_DefaultRole
. In order to use the default role, you must have already created it using the CLI or console.- Parameters:
jobFlowRole
- Also called instance profile and EC2 role. An IAM role for an EMR cluster. The EC2 instances of the cluster assume this role. The default role isEMR_EC2_DefaultRole
. In order to use the default role, you must have already created it using the CLI or console.
-
getJobFlowRole
Also called instance profile and EC2 role. An IAM role for an EMR cluster. The EC2 instances of the cluster assume this role. The default role is
EMR_EC2_DefaultRole
. In order to use the default role, you must have already created it using the CLI or console.- Returns:
- Also called instance profile and EC2 role. An IAM role for an EMR
cluster. The EC2 instances of the cluster assume this role. The
default role is
EMR_EC2_DefaultRole
. In order to use the default role, you must have already created it using the CLI or console.
-
withJobFlowRole
Also called instance profile and EC2 role. An IAM role for an EMR cluster. The EC2 instances of the cluster assume this role. The default role is
EMR_EC2_DefaultRole
. In order to use the default role, you must have already created it using the CLI or console.- Parameters:
jobFlowRole
- Also called instance profile and EC2 role. An IAM role for an EMR cluster. The EC2 instances of the cluster assume this role. The default role isEMR_EC2_DefaultRole
. In order to use the default role, you must have already created it using the CLI or console.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setServiceRole
The IAM role that will be assumed by the Amazon EMR service to access AWS resources on your behalf.
- Parameters:
serviceRole
- The IAM role that will be assumed by the Amazon EMR service to access AWS resources on your behalf.
-
getServiceRole
The IAM role that will be assumed by the Amazon EMR service to access AWS resources on your behalf.
- Returns:
- The IAM role that will be assumed by the Amazon EMR service to access AWS resources on your behalf.
-
withServiceRole
The IAM role that will be assumed by the Amazon EMR service to access AWS resources on your behalf.
- Parameters:
serviceRole
- The IAM role that will be assumed by the Amazon EMR service to access AWS resources on your behalf.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getTags
A list of tags to associate with a cluster and propagate to Amazon EC2 instances.
- Returns:
- A list of tags to associate with a cluster and propagate to Amazon EC2 instances.
-
setTags
A list of tags to associate with a cluster and propagate to Amazon EC2 instances.
- Parameters:
tags
- A list of tags to associate with a cluster and propagate to Amazon EC2 instances.
-
withTags
A list of tags to associate with a cluster and propagate to Amazon EC2 instances.
NOTE: This method appends the values to the existing list (if any). Use
setTags(java.util.Collection)
orwithTags(java.util.Collection)
if you want to override the existing values.- Parameters:
tags
- A list of tags to associate with a cluster and propagate to Amazon EC2 instances.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withTags
A list of tags to associate with a cluster and propagate to Amazon EC2 instances.
- Parameters:
tags
- A list of tags to associate with a cluster and propagate to Amazon EC2 instances.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
Description copied from class:AmazonWebServiceRequest
Creates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clone
in classAmazonWebServiceRequest
- See Also:
-