YARN-4510. Fix SLS startup failure caused by NPE. (Bibin A Chundatt via wangda)
This commit is contained in:
parent
9a7d5f69ec
commit
6eefae1b33
|
@ -172,10 +172,11 @@ public class RMNodeWrapper implements RMNode {
|
||||||
// TODO Auto-generated method stub
|
// TODO Auto-generated method stub
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@SuppressWarnings("unchecked")
|
||||||
@Override
|
@Override
|
||||||
public List<Container> pullNewlyIncreasedContainers() {
|
public List<Container> pullNewlyIncreasedContainers() {
|
||||||
// TODO Auto-generated method stub
|
// TODO Auto-generated method stub
|
||||||
return null;
|
return Collections.EMPTY_LIST;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -820,6 +820,14 @@ public class ResourceSchedulerWrapper
|
||||||
((AbstractYarnScheduler<SchedulerApplicationAttempt, SchedulerNode>)
|
((AbstractYarnScheduler<SchedulerApplicationAttempt, SchedulerNode>)
|
||||||
scheduler).init(conf);
|
scheduler).init(conf);
|
||||||
super.serviceInit(conf);
|
super.serviceInit(conf);
|
||||||
|
initScheduler(conf);
|
||||||
|
}
|
||||||
|
|
||||||
|
private synchronized void initScheduler(Configuration configuration) throws
|
||||||
|
IOException {
|
||||||
|
this.applications =
|
||||||
|
new ConcurrentHashMap<ApplicationId,
|
||||||
|
SchedulerApplication<SchedulerApplicationAttempt>>();
|
||||||
}
|
}
|
||||||
|
|
||||||
@SuppressWarnings("unchecked")
|
@SuppressWarnings("unchecked")
|
||||||
|
|
|
@ -1205,6 +1205,8 @@ Release 2.7.3 - UNRELEASED
|
||||||
|
|
||||||
YARN-4315. NaN in Queue percentage for cluster apps page. (Bibin A Chundatt via wangda)
|
YARN-4315. NaN in Queue percentage for cluster apps page. (Bibin A Chundatt via wangda)
|
||||||
|
|
||||||
|
YARN-4510. Fix SLS startup failure caused by NPE. (Bibin A Chundatt via wangda)
|
||||||
|
|
||||||
Release 2.7.2 - UNRELEASED
|
Release 2.7.2 - UNRELEASED
|
||||||
|
|
||||||
INCOMPATIBLE CHANGES
|
INCOMPATIBLE CHANGES
|
||||||
|
|
Loading…
Reference in New Issue