@Public
@Unstable
public class ApplicationMaster
extends java.lang.Object
The AM will persist until it has run for a period of time equal to the timeout specified or until the application is killed.
If the NameNode is launched internally, it will upload some information
onto the remote HDFS instance (i.e., the default FileSystem) about its
hostname and ports. This is in the location determined by the
DynoConstants.DYNAMOMETER_STORAGE_DIR and
DynoConstants.NN_INFO_FILE_NAME constants and is in the
Properties file format. This is consumed by this AM as well as the
Client to determine how to contact the NameNode.
Information about the location of the DataNodes is logged by the AM.
| Constructor | Description |
|---|---|
ApplicationMaster() |
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
init(java.lang.String[] args) |
Parse command line options.
|
static void |
main(java.lang.String[] args) |
|
boolean |
run() |
Main run function for the application master.
|
public static void main(java.lang.String[] args)
args - Command line argspublic boolean init(java.lang.String[] args)
throws org.apache.commons.cli.ParseException
args - Command line argsorg.apache.commons.cli.ParseException - on error while parsing optionspublic boolean run()
throws org.apache.hadoop.yarn.exceptions.YarnException,
java.io.IOException,
java.lang.InterruptedException
org.apache.hadoop.yarn.exceptions.YarnException - for issues while contacting YARN daemonsjava.io.IOException - for other issuesjava.lang.InterruptedException - when the thread is interruptedCopyright © 2008–2025 Apache Software Foundation. All rights reserved.