java.lang.Object
com.amazonaws.services.elasticmapreduce.model.Application
All Implemented Interfaces:
Serializable, Cloneable

public class Application extends Object implements 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 Details

    • Application

      public Application()
  • Method Details

    • setName

      public void setName(String name)

      The name of the application.

      Parameters:
      name - The name of the application.
    • getName

      public String getName()

      The name of the application.

      Returns:
      The name of the application.
    • withName

      public Application withName(String name)

      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

      public void setVersion(String version)

      The version of the application.

      Parameters:
      version - The version of the application.
    • getVersion

      public String getVersion()

      The version of the application.

      Returns:
      The version of the application.
    • withVersion

      public Application withVersion(String version)

      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

      public List<String> getArgs()

      Arguments for Amazon EMR to pass to the application.

      Returns:
      Arguments for Amazon EMR to pass to the application.
    • setArgs

      public void setArgs(Collection<String> args)

      Arguments for Amazon EMR to pass to the application.

      Parameters:
      args - Arguments for Amazon EMR to pass to the application.
    • withArgs

      public Application withArgs(String... args)

      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) or withArgs(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

      public Application withArgs(Collection<String> args)

      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

      public Map<String,String> 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

      public void setAdditionalInfo(Map<String,String> additionalInfo)

      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

      public Application withAdditionalInfo(Map<String,String> additionalInfo)

      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

      public Application addAdditionalInfoEntry(String key, String value)
    • clearAdditionalInfoEntries

      public Application clearAdditionalInfoEntries()
      Removes all the entries added into AdditionalInfo. <p> Returns a reference to this object so that method calls can be chained together.
    • toString

      public String toString()
      Returns a string representation of this object; useful for testing and debugging.
      Overrides:
      toString in class Object
      Returns:
      A string representation of this object.
      See Also:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      public Application clone()
      Overrides:
      clone in class Object