----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/18921/ -----------------------------------------------------------
Review request for Twill. Repository: twill Description ------- Add EventHandler.handleAcquiredContainer(). This allows for EventHandler to accept or reject containers, for control over which containers the Twill runnable instances are deployed to. Default implementation of EventHandler.handleContainer() accepts all containers, which is same as the behavior of ApplicationMasterService before this patch. Also added twill-examples module, which contains HelloWorld example and MultiHostExample. MultiHostExample demonstrates usage of EventHandler.handleAcquiredContainer() to scatter runnable instances to unique hosts. Diffs ----- pom.xml 0e692f1 twill-api/src/main/java/org/apache/twill/api/EventHandler.java ede5b65 twill-api/src/main/java/org/apache/twill/api/HandleAcquiredContainerDecision.java PRE-CREATION twill-examples/.gitignore PRE-CREATION twill-examples/pom.xml PRE-CREATION twill-examples/src/main/java/org/apache/twill/yarn/HelloWorld.java PRE-CREATION twill-examples/src/main/java/org/apache/twill/yarn/MultihostExample.java PRE-CREATION twill-yarn/src/main/hadoop20/org/apache/twill/internal/yarn/Hadoop20YarnAMClient.java 68d073d twill-yarn/src/main/hadoop21/org/apache/twill/internal/yarn/Hadoop21YarnAMClient.java 0ebc0f5 twill-yarn/src/main/java/org/apache/twill/internal/appmaster/ApplicationMasterService.java 3a6ce20 twill-yarn/src/main/java/org/apache/twill/internal/appmaster/ProvisionRequest.java 002d2a5 twill-yarn/src/main/java/org/apache/twill/internal/yarn/YarnAMClient.java 370ca3c Diff: https://reviews.apache.org/r/18921/diff/ Testing ------- Tested in a cluster with 2 slave nodes. Pending test with 9 slave nodes. Unit tests not created. Thanks, Jiahua Wang
