apache/hadoop · error · IllegalArgumentException
No args specified for application master to initialize
Error message
No args specified for application master to initialize
What it means
Dynamometer ApplicationMaster argument guard: init() was invoked with an empty args array, so the AM has no launch options; usage is printed and the misconfiguration is rejected.
Solutions
- Launch the dynamometer ApplicationMaster with its required arguments (fsimage directory and related parameters); none were supplied.
Defensive patterns
Strategy: validation
When it happens
Trigger: The dynamometer ApplicationMaster is launched by YARN without the required command-line arguments (e.g. NameNode RPC address or user), usually because the Client failed to pass them or the container was started manually.
Common situations: See trigger scenarios.
AI-assisted analysis of apache/hadoop@2add963021 (2026-08-22).
Data as JSON: /api/errors/dabf5c205cab3081.
Report an issue: GitHub.
Appendix: source
Thrown at hadoop-tools/hadoop-dynamometer/hadoop-dynamometer-infra/src/main/java/org/apache/hadoop/tools/dynamometer/ApplicationMaster.java:217
conf = new YarnConfiguration();
}
/**
* Parse command line options.
*
* @param args Command line args
* @return Whether init successful and run should be invoked
* @throws ParseException on error while parsing options
*/
public boolean init(String[] args) throws ParseException {
Options opts = new Options();
AMOptions.setOptions(opts);
CommandLine cliParser = new GnuParser().parse(opts, args);
if (args.length == 0) {
printUsage(opts);
throw new IllegalArgumentException(
"No args specified for application master to initialize");
}
if (cliParser.hasOption("help")) {
printUsage(opts);
return false;
}
Map<String, String> envs = System.getenv();
remoteStoragePath = new Path(
envs.get(DynoConstants.REMOTE_STORAGE_PATH_ENV));
applicationAcls = new HashMap<>();
applicationAcls.put(ApplicationAccessType.VIEW_APP,
envs.get(DynoConstants.JOB_ACL_VIEW_ENV));
launchingUser = envs.get(Environment.USER.name());
if (envs.containsKey(DynoConstants.REMOTE_NN_RPC_ADDR_ENV)) {
launchNameNode = false;View on GitHub (pinned to 2add963021)