Skip to content

Commit 1e73dd7

Browse files
committed
Remove configurables
1 parent df3ae29 commit 1e73dd7

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/main/java/org/apache/hadoop/mapred/MesosExecutor.java

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -171,11 +171,8 @@ public void revokeSlots() {
171171
return;
172172
}
173173

174-
int mapSlotsToRevoke = taskTracker.getJobConf().getInt("mapred.tasktracker.map.tasks.revoke", 0);
175-
int reduceSlotsToRevoke = taskTracker.getJobConf().getInt("mapred.tasktracker.reduce.tasks.revoke", 0);
176-
177-
int maxMapSlots = taskTracker.getMaxCurrentMapTasks() - mapSlotsToRevoke;
178-
int maxReduceSlots = taskTracker.getMaxCurrentReduceTasks() - reduceSlotsToRevoke;
174+
int maxMapSlots = 0;
175+
int maxReduceSlots = 0;
179176

180177
// TODO(tarnfeld): Sanity check that it's safe for us to change the slots.
181178
// Be sure there's nothing running and nothing in the launcher queue.

0 commit comments

Comments
 (0)