{"record":{"id":"dabf5c205cab3081","repo":"apache/hadoop","slug":"no-args-specified-for-application-master-to-initia","errorCode":null,"errorMessage":"No args specified for application master to initialize","messagePattern":"No args specified for application master to initialize","errorType":"exception","errorClass":"IllegalArgumentException","httpStatus":null,"severity":"error","filePath":"hadoop-tools/hadoop-dynamometer/hadoop-dynamometer-infra/src/main/java/org/apache/hadoop/tools/dynamometer/ApplicationMaster.java","lineNumber":217,"sourceCode":"    conf = new YarnConfiguration();\n  }\n\n  /**\n   * Parse command line options.\n   *\n   * @param args Command line args\n   * @return Whether init successful and run should be invoked\n   * @throws ParseException on error while parsing options\n   */\n  public boolean init(String[] args) throws ParseException {\n\n    Options opts = new Options();\n    AMOptions.setOptions(opts);\n    CommandLine cliParser = new GnuParser().parse(opts, args);\n\n    if (args.length == 0) {\n      printUsage(opts);\n      throw new IllegalArgumentException(\n          \"No args specified for application master to initialize\");\n    }\n\n    if (cliParser.hasOption(\"help\")) {\n      printUsage(opts);\n      return false;\n    }\n\n    Map<String, String> envs = System.getenv();\n\n    remoteStoragePath = new Path(\n        envs.get(DynoConstants.REMOTE_STORAGE_PATH_ENV));\n    applicationAcls = new HashMap<>();\n    applicationAcls.put(ApplicationAccessType.VIEW_APP,\n        envs.get(DynoConstants.JOB_ACL_VIEW_ENV));\n    launchingUser = envs.get(Environment.USER.name());\n    if (envs.containsKey(DynoConstants.REMOTE_NN_RPC_ADDR_ENV)) {\n      launchNameNode = false;","sourceCodeStart":199,"sourceCodeEnd":235,"githubUrl":"https://github.com/apache/hadoop/blob/2add9630210752f88ceb1bb74eb65e37bf41da8e/hadoop-tools/hadoop-dynamometer/hadoop-dynamometer-infra/src/main/java/org/apache/hadoop/tools/dynamometer/ApplicationMaster.java#L199-L235","documentation":"Error \"No args specified for application master to initialize\" thrown in apache/hadoop.","triggerScenarios":"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.","commonSituations":"See trigger scenarios.","solutions":["Launch the dynamometer ApplicationMaster with its required arguments (fsimage directory and related parameters); none were supplied."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"2add9630210752f88ceb1bb74eb65e37bf41da8e","analyzedAt":"2026-08-22T19:55:07.957Z","schemaVersion":2},"datasetVersion":"2026-08-22T20:17:22.307Z"}