|
@@ -126,7 +126,7 @@ public class TestSingleConstraintAppPlacementAllocator {
|
|
|
.placementConstraintExpression(PlacementConstraints
|
|
|
.targetNotIn(PlacementConstraints.NODE,
|
|
|
PlacementConstraints.PlacementTargets
|
|
|
- .allocationTagToIntraApp("mapper", "reducer"),
|
|
|
+ .allocationTag("mapper", "reducer"),
|
|
|
PlacementConstraints.PlacementTargets.nodePartition(""))
|
|
|
.build()).resourceSizing(
|
|
|
ResourceSizing.newInstance(1, Resource.newInstance(1024, 1)))
|
|
@@ -142,7 +142,7 @@ public class TestSingleConstraintAppPlacementAllocator {
|
|
|
.placementConstraintExpression(PlacementConstraints
|
|
|
.targetNotIn(PlacementConstraints.NODE,
|
|
|
PlacementConstraints.PlacementTargets
|
|
|
- .allocationTagToIntraApp("mapper", "reducer"),
|
|
|
+ .allocationTag("mapper", "reducer"),
|
|
|
PlacementConstraints.PlacementTargets.nodePartition("x"))
|
|
|
.build()).resourceSizing(
|
|
|
ResourceSizing.newInstance(1, Resource.newInstance(1024, 1)))
|
|
@@ -158,7 +158,7 @@ public class TestSingleConstraintAppPlacementAllocator {
|
|
|
.placementConstraintExpression(PlacementConstraints
|
|
|
.targetNotIn(PlacementConstraints.NODE,
|
|
|
PlacementConstraints.PlacementTargets
|
|
|
- .allocationTagToIntraApp("mapper", "reducer")).build())
|
|
|
+ .allocationTag("mapper", "reducer")).build())
|
|
|
.resourceSizing(
|
|
|
ResourceSizing.newInstance(1, Resource.newInstance(1024, 1)))
|
|
|
.build());
|
|
@@ -173,7 +173,7 @@ public class TestSingleConstraintAppPlacementAllocator {
|
|
|
.placementConstraintExpression(PlacementConstraints
|
|
|
.targetNotIn(PlacementConstraints.NODE,
|
|
|
PlacementConstraints.PlacementTargets
|
|
|
- .allocationTagToIntraApp("mapper", "reducer")).build())
|
|
|
+ .allocationTag("mapper", "reducer")).build())
|
|
|
.resourceSizing(
|
|
|
ResourceSizing.newInstance(1, Resource.newInstance(1024, 1)))
|
|
|
.build());
|
|
@@ -189,7 +189,7 @@ public class TestSingleConstraintAppPlacementAllocator {
|
|
|
.placementConstraintExpression(PlacementConstraints
|
|
|
.targetNotIn(PlacementConstraints.NODE,
|
|
|
PlacementConstraints.PlacementTargets
|
|
|
- .allocationTagToIntraApp("mapper", "reducer")).build())
|
|
|
+ .allocationTag("mapper", "reducer")).build())
|
|
|
.build(), true);
|
|
|
|
|
|
// Invalid (without target tags)
|
|
@@ -207,9 +207,9 @@ public class TestSingleConstraintAppPlacementAllocator {
|
|
|
.placementConstraintExpression(PlacementConstraints
|
|
|
.targetNotIn(PlacementConstraints.NODE,
|
|
|
PlacementConstraints.PlacementTargets
|
|
|
- .allocationTagToIntraApp("mapper"),
|
|
|
+ .allocationTag("mapper"),
|
|
|
PlacementConstraints.PlacementTargets
|
|
|
- .allocationTagToIntraApp("reducer"),
|
|
|
+ .allocationTag("reducer"),
|
|
|
PlacementConstraints.PlacementTargets.nodePartition(""))
|
|
|
.build()).resourceSizing(
|
|
|
ResourceSizing.newInstance(1, Resource.newInstance(1024, 1)))
|
|
@@ -222,9 +222,9 @@ public class TestSingleConstraintAppPlacementAllocator {
|
|
|
.placementConstraintExpression(PlacementConstraints
|
|
|
.targetNotIn(PlacementConstraints.NODE,
|
|
|
PlacementConstraints.PlacementTargets
|
|
|
- .allocationTagToIntraApp("mapper"),
|
|
|
+ .allocationTag("mapper"),
|
|
|
PlacementConstraints.PlacementTargets
|
|
|
- .allocationTagToIntraApp(""),
|
|
|
+ .allocationTag(""),
|
|
|
PlacementConstraints.PlacementTargets.nodePartition("x"))
|
|
|
.build()).resourceSizing(
|
|
|
ResourceSizing.newInstance(1, Resource.newInstance(1024, 1)))
|
|
@@ -237,7 +237,7 @@ public class TestSingleConstraintAppPlacementAllocator {
|
|
|
.placementConstraintExpression(PlacementConstraints
|
|
|
.targetCardinality(PlacementConstraints.NODE, 1, 2,
|
|
|
PlacementConstraints.PlacementTargets
|
|
|
- .allocationTagToIntraApp("mapper"),
|
|
|
+ .allocationTag("mapper"),
|
|
|
PlacementConstraints.PlacementTargets.nodePartition(""))
|
|
|
.build()).resourceSizing(
|
|
|
ResourceSizing.newInstance(1, Resource.newInstance(1024, 1)))
|
|
@@ -250,7 +250,7 @@ public class TestSingleConstraintAppPlacementAllocator {
|
|
|
.placementConstraintExpression(PlacementConstraints
|
|
|
.targetCardinality(PlacementConstraints.NODE, 0, 2,
|
|
|
PlacementConstraints.PlacementTargets
|
|
|
- .allocationTagToIntraApp("mapper"),
|
|
|
+ .allocationTag("mapper"),
|
|
|
PlacementConstraints.PlacementTargets.nodePartition(""))
|
|
|
.build()).resourceSizing(
|
|
|
ResourceSizing.newInstance(1, Resource.newInstance(1024, 1)))
|
|
@@ -263,7 +263,7 @@ public class TestSingleConstraintAppPlacementAllocator {
|
|
|
.placementConstraintExpression(PlacementConstraints
|
|
|
.targetNotIn(PlacementConstraints.RACK,
|
|
|
PlacementConstraints.PlacementTargets
|
|
|
- .allocationTagToIntraApp("mapper", "reducer"),
|
|
|
+ .allocationTag("mapper", "reducer"),
|
|
|
PlacementConstraints.PlacementTargets.nodePartition(""))
|
|
|
.build()).resourceSizing(
|
|
|
ResourceSizing.newInstance(1, Resource.newInstance(1024, 1)))
|
|
@@ -276,7 +276,7 @@ public class TestSingleConstraintAppPlacementAllocator {
|
|
|
.placementConstraintExpression(PlacementConstraints
|
|
|
.targetNotIn(PlacementConstraints.NODE,
|
|
|
PlacementConstraints.PlacementTargets
|
|
|
- .allocationTagToIntraApp("mapper", "reducer"),
|
|
|
+ .allocationTag("mapper", "reducer"),
|
|
|
PlacementConstraints.PlacementTargets.nodePartition(""))
|
|
|
.build()).resourceSizing(
|
|
|
ResourceSizing.newInstance(1, Resource.newInstance(1024, 1)))
|
|
@@ -292,7 +292,7 @@ public class TestSingleConstraintAppPlacementAllocator {
|
|
|
.placementConstraintExpression(PlacementConstraints
|
|
|
.targetNotIn(PlacementConstraints.NODE,
|
|
|
PlacementConstraints.PlacementTargets
|
|
|
- .allocationTagToIntraApp("mapper", "reducer"),
|
|
|
+ .allocationTag("mapper", "reducer"),
|
|
|
PlacementConstraints.PlacementTargets.nodePartition(""))
|
|
|
.build()).resourceSizing(
|
|
|
ResourceSizing.newInstance(1, Resource.newInstance(1024, 1)))
|
|
@@ -321,7 +321,7 @@ public class TestSingleConstraintAppPlacementAllocator {
|
|
|
.placementConstraintExpression(PlacementConstraints
|
|
|
.targetCardinality(PlacementConstraints.NODE, 0, 1,
|
|
|
PlacementConstraints.PlacementTargets
|
|
|
- .allocationTagToIntraApp("mapper"),
|
|
|
+ .allocationTag("mapper"),
|
|
|
PlacementConstraints.PlacementTargets.nodePartition(""))
|
|
|
.build()).resourceSizing(
|
|
|
ResourceSizing.newInstance(1, Resource.newInstance(1024, 1)))
|
|
@@ -338,7 +338,7 @@ public class TestSingleConstraintAppPlacementAllocator {
|
|
|
.placementConstraintExpression(PlacementConstraints
|
|
|
.targetNotIn(PlacementConstraints.NODE,
|
|
|
PlacementConstraints.PlacementTargets
|
|
|
- .allocationTagToIntraApp("mapper", "reducer"),
|
|
|
+ .allocationTag("mapper", "reducer"),
|
|
|
PlacementConstraints.PlacementTargets.nodePartition(""))
|
|
|
.build()).resourceSizing(
|
|
|
ResourceSizing.newInstance(1, Resource.newInstance(1024, 1)))
|
|
@@ -358,7 +358,7 @@ public class TestSingleConstraintAppPlacementAllocator {
|
|
|
.placementConstraintExpression(PlacementConstraints
|
|
|
.targetNotIn(PlacementConstraints.NODE,
|
|
|
PlacementConstraints.PlacementTargets
|
|
|
- .allocationTagToIntraApp("mapper", "reducer"),
|
|
|
+ .allocationTag("mapper", "reducer"),
|
|
|
PlacementConstraints.PlacementTargets.nodePartition(""))
|
|
|
.build()).resourceSizing(
|
|
|
ResourceSizing.newInstance(1, Resource.newInstance(1024, 1)))
|
|
@@ -379,7 +379,7 @@ public class TestSingleConstraintAppPlacementAllocator {
|
|
|
.placementConstraintExpression(PlacementConstraints
|
|
|
.targetNotIn(PlacementConstraints.NODE,
|
|
|
PlacementConstraints.PlacementTargets
|
|
|
- .allocationTagToIntraApp("mapper", "reducer"),
|
|
|
+ .allocationTag("mapper", "reducer"),
|
|
|
PlacementConstraints.PlacementTargets.nodePartition("x"))
|
|
|
.build()).resourceSizing(
|
|
|
ResourceSizing.newInstance(1, Resource.newInstance(1024, 1)))
|