You can probably just initialize these to 1 and 0 instead of having variables called TASKSET_WEIGHT and TASKSET_MINIMUM_SHARES. Also, I believe a default minShare of 0 works, right? In the Hadoop fair scheduler, the minShare only had to be set for pools that need special service.