Class Application
- All Implemented Interfaces:
Serializable
,Cloneable
An application is any Amazon or third-party software that you can add to the cluster. This structure contains a list of strings that indicates the software to use with the cluster and accepts a user argument list. Amazon EMR accepts and forwards the argument list to the corresponding installation script as bootstrap action argument. For more information, see Launch a Job Flow on the MapR Distribution for Hadoop. Currently supported values are:
- "mapr-m3" - launch the job flow using MapR M3 Edition.
- "mapr-m5" - launch the job flow 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.
In Amazon EMR releases 4.0 and greater, the only accepted parameter is the application name. To pass arguments to applications, you supply a configuration for each application.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAdditionalInfoEntry
(String key, String value) Removes all the entries added into AdditionalInfo.clone()
boolean
This option is for advanced users only.getArgs()
Arguments for Amazon EMR to pass to the application.getName()
The name of the application.The version of the application.int
hashCode()
void
setAdditionalInfo
(Map<String, String> additionalInfo) This option is for advanced users only.void
setArgs
(Collection<String> args) Arguments for Amazon EMR to pass to the application.void
The name of the application.void
setVersion
(String version) The version of the application.toString()
Returns a string representation of this object; useful for testing and debugging.withAdditionalInfo
(Map<String, String> additionalInfo) This option is for advanced users only.Arguments for Amazon EMR to pass to the application.withArgs
(Collection<String> args) Arguments for Amazon EMR to pass to the application.The name of the application.withVersion
(String version) The version of the application.
-
Constructor Details
-
Application
public Application()
-
-
Method Details
-
setName
The name of the application.
- Parameters:
name
- The name of the application.
-
getName
The name of the application.
- Returns:
- The name of the application.
-
withName
The name of the application.
- Parameters:
name
- The name of the application.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setVersion
The version of the application.
- Parameters:
version
- The version of the application.
-
getVersion
The version of the application.
- Returns:
- The version of the application.
-
withVersion
The version of the application.
- Parameters:
version
- The version of the application.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getArgs
Arguments for Amazon EMR to pass to the application.
- Returns:
- Arguments for Amazon EMR to pass to the application.
-
setArgs
Arguments for Amazon EMR to pass to the application.
- Parameters:
args
- Arguments for Amazon EMR to pass to the application.
-
withArgs
Arguments for Amazon EMR to pass to the application.
NOTE: This method appends the values to the existing list (if any). Use
setArgs(java.util.Collection)
orwithArgs(java.util.Collection)
if you want to override the existing values.- Parameters:
args
- Arguments for Amazon EMR to pass to the application.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withArgs
Arguments for Amazon EMR to pass to the application.
- Parameters:
args
- Arguments for Amazon EMR to pass to the application.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getAdditionalInfo
This option is for advanced users only. This is meta information about third-party applications that third-party vendors use for testing purposes.
- Returns:
- This option is for advanced users only. This is meta information about third-party applications that third-party vendors use for testing purposes.
-
setAdditionalInfo
This option is for advanced users only. This is meta information about third-party applications that third-party vendors use for testing purposes.
- Parameters:
additionalInfo
- This option is for advanced users only. This is meta information about third-party applications that third-party vendors use for testing purposes.
-
withAdditionalInfo
This option is for advanced users only. This is meta information about third-party applications that third-party vendors use for testing purposes.
- Parameters:
additionalInfo
- This option is for advanced users only. This is meta information about third-party applications that third-party vendors use for testing purposes.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
addAdditionalInfoEntry
-
clearAdditionalInfoEntries
Removes all the entries added into AdditionalInfo. <p> 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
-