Skip to content
This repository has been archived by the owner on Mar 3, 2023. It is now read-only.

Implement IScalable scheduler for the YARN scheduler #1431

Merged
merged 5 commits into from
Oct 5, 2016

Conversation

ashvina
Copy link
Contributor

@ashvina ashvina commented Sep 26, 2016

Implementation of IScalable scheduler interface.

Fixes #1430

@billonahill
Copy link
Contributor

Can you add tests to YarnSchedulerTest for adding and removing containers?

@ashvina
Copy link
Contributor Author

ashvina commented Oct 4, 2016

@billonahill Unit tests for addition and removal of containers are included now.

public void addContainers(Set<PackingPlan.ContainerPlan> containersToAdd) {
try {
HeronMasterDriverProvider.getInstance().scheduleHeronWorkers(containersToAdd);
} catch (HeronMasterDriver.ContainerAllocationException e) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As a follow-up, we should move ContainerAllocationException into spi and make make IScalable throw it. Same thing for ContainerRemovalException.

@billonahill billonahill merged commit 8a4c482 into apache:master Oct 5, 2016
@ashvina ashvina deleted the scalableYarn-1430 branch October 5, 2016 17:59
@huijunw huijunw added the Yarn label Jul 23, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants