Skip to content

Commit 9b95715

Browse files
Set SynthTraceJobProducer from AMRunner to SLSRunner
1 parent ad9f50f commit 9b95715

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

hadoop-tools/hadoop-sls/src/main/java/org/apache/hadoop/yarn/sls/AMRunner.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@ private void startAMFromSynthGenerator() throws YarnException, IOException {
151151
// if we use the nodeFile this could have been not initialized yet.
152152
if (stjp == null) {
153153
stjp = new SynthTraceJobProducer(conf, new Path(inputTraces[0]));
154+
slsRunner.setStjp(stjp);
154155
}
155156

156157
SynthJob job;

hadoop-tools/hadoop-sls/src/main/java/org/apache/hadoop/yarn/sls/SLSRunner.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@ private void init(Configuration tempConf) throws ClassNotFoundException {
162162

163163
nmMap = new ConcurrentHashMap<>();
164164
amRunner = new AMRunner(runner, this);
165+
rmRunner = new RMRunner(tempConf, this);
165166

166167
// runner
167168
poolSize = tempConf.getInt(SLSConfiguration.RUNNER_POOL_SIZE,
@@ -628,6 +629,10 @@ public SynthTraceJobProducer getStjp() {
628629
return stjp;
629630
}
630631

632+
public void setStjp(SynthTraceJobProducer stjp) {
633+
this.stjp = stjp;
634+
}
635+
631636
public AMSimulator getAMSimulatorByAppId(ApplicationId appId) {
632637
return amRunner.getAMSimulator(appId);
633638
}

0 commit comments

Comments
 (0)