{"record":{"id":"914748c93b978a5a","repo":"apache/hadoop","slug":"failed-to-initialize-synthtracejobproducer","errorCode":null,"errorMessage":"Failed to initialize SynthTraceJobProducer","messagePattern":"Failed to initialize SynthTraceJobProducer","errorType":"exception","errorClass":"YarnException","httpStatus":null,"severity":"error","filePath":"hadoop-tools/hadoop-sls/src/main/java/org/apache/hadoop/yarn/sls/SLSRunner.java","lineNumber":146,"sourceCode":"    int poolSize = tempConf.getInt(SLSConfiguration.RUNNER_POOL_SIZE,\n        SLSConfiguration.RUNNER_POOL_SIZE_DEFAULT);\n    SLSRunner.runner.setQueueSize(poolSize);\n\n    rmRunner = new RMRunner(getConf(), this);\n    nmRunner = new NMRunner(runner, getConf(), rmRunner.getRm(), rmRunner.getTableMapping(), poolSize);\n    amRunner = new AMRunner(runner, this);\n    amRunner.init(tempConf);\n  }\n\n  private SynthTraceJobProducer getSynthJobTraceProducer() throws YarnException {\n    // if we use the nodeFile this could have been not initialized yet.\n    if (nmRunner.getStjp() != null) {\n      return nmRunner.getStjp();\n    } else {\n      try {\n        return new SynthTraceJobProducer(getConf(), new Path(inputTraces[0]));\n      } catch (IOException e) {\n        throw new YarnException(\"Failed to initialize SynthTraceJobProducer\", e);\n      }\n    }\n  }\n\n  /**\n   * @return an unmodifiable view of the simulated info map.\n   */\n  public static Map<String, Object> getSimulateInfoMap() {\n    return Collections.unmodifiableMap(simulateInfoMap);\n  }\n\n  /**\n   * This is invoked before start.\n   * @param inputType The trace type\n   * @param inTraces Input traces\n   * @param nodes The node file\n   * @param metricsOutputDir Output dir for metrics\n   * @param trackApps Track these applications","sourceCodeStart":128,"sourceCodeEnd":164,"githubUrl":"https://github.com/apache/hadoop/blob/2add9630210752f88ceb1bb74eb65e37bf41da8e/hadoop-tools/hadoop-sls/src/main/java/org/apache/hadoop/yarn/sls/SLSRunner.java#L128-L164","documentation":"Error \"Failed to initialize SynthTraceJobProducer\" thrown in apache/hadoop.","triggerScenarios":"The SynthTraceJobProducer fails to initialize from the synthetic workload JSON, e.g. because the trace definition file is missing or invalid.","commonSituations":"See trigger scenarios.","solutions":["Check the SYNTH trace generator configuration (workload definition files) for errors; see the logged cause."],"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"}