{"record":{"id":"7d65b87e6dccb41a","repo":"apache/hadoop","slug":"workload-replay-enable-was-specified-must-include","errorCode":null,"errorMessage":"workload_replay_enable was specified; must include all required workload_ parameters.","messagePattern":"workload_replay_enable was specified; must include all required workload_ parameters\\.","errorType":"exception","errorClass":"IllegalArgumentException","httpStatus":null,"severity":"error","filePath":"hadoop-tools/hadoop-dynamometer/hadoop-dynamometer-infra/src/main/java/org/apache/hadoop/tools/dynamometer/Client.java","lineNumber":480,"sourceCode":"    this.tokenFileLocation = commandLine.\n        getOptionValue(TOKEN_FILE_LOCATION_ARG);\n\n    amOptions.verify();\n\n    Path blockPath = new Path(blockListPath);\n    FileSystem blockListFS = blockPath.getFileSystem(getConf());\n    if (blockListFS.getUri().equals(FileSystem.getLocal(getConf()).getUri())\n        || !blockListFS.exists(blockPath)) {\n      throw new IllegalArgumentException(\n          \"block list path must already exist on remote fs!\");\n    }\n    numTotalDataNodes = blockListFS.listStatus(blockPath,\n        DynoConstants.BLOCK_LIST_FILE_FILTER).length;\n\n    if (commandLine.hasOption(WORKLOAD_REPLAY_ENABLE_ARG)) {\n      if (!commandLine.hasOption(WORKLOAD_INPUT_PATH_ARG)\n          || !commandLine.hasOption(WORKLOAD_START_DELAY_ARG)) {\n        throw new IllegalArgumentException(\"workload_replay_enable was \"\n            + \"specified; must include all required workload_ parameters.\");\n      }\n      launchWorkloadJob = true;\n      workloadInputPath = commandLine.getOptionValue(WORKLOAD_INPUT_PATH_ARG);\n      workloadOutputPath = commandLine.getOptionValue(WORKLOAD_OUTPUT_PATH_ARG);\n      workloadThreadsPerMapper = Integer\n          .parseInt(commandLine.getOptionValue(WORKLOAD_THREADS_PER_MAPPER_ARG,\n              String.valueOf(AuditReplayMapper.NUM_THREADS_DEFAULT)));\n      workloadRateFactor = Double.parseDouble(commandLine.getOptionValue(\n          WORKLOAD_RATE_FACTOR_ARG, WORKLOAD_RATE_FACTOR_DEFAULT));\n      workloadExtraConfigs = new HashMap<>();\n      if (commandLine.getOptionValues(WORKLOAD_CONFIG_ARG) != null) {\n        for (String opt : commandLine.getOptionValues(WORKLOAD_CONFIG_ARG)) {\n          Iterator<String> kvPair =\n              Splitter.on(\"=\").trimResults().split(opt).iterator();\n          workloadExtraConfigs.put(kvPair.next(), kvPair.next());\n        }\n      }","sourceCodeStart":462,"sourceCodeEnd":498,"githubUrl":"https://github.com/apache/hadoop/blob/2add9630210752f88ceb1bb74eb65e37bf41da8e/hadoop-tools/hadoop-dynamometer/hadoop-dynamometer-infra/src/main/java/org/apache/hadoop/tools/dynamometer/Client.java#L462-L498","documentation":"Error \"workload_replay_enable was specified; must include all required workload_ parameters.\" thrown in apache/hadoop.","triggerScenarios":"workload_replay_enable was set but one or more of the required workload_* parameters (audit trace input/output, thread count, start offset) is missing from the dynamometer Client invocation.","commonSituations":"See trigger scenarios.","solutions":["When workload_replay_enable is set, also supply all required workload_* parameters (e.g. workload_input_path, workload_output_path, workload_job_class)."],"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-23T01:17:44.959Z"}