Java Code Examples for org.apache.hadoop.conf.Configuration.getTimeDuration()

The following are Jave code examples for showing how to use getTimeDuration() of the org.apache.hadoop.conf.Configuration class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
+ Save this method
Example 1
Project: hadoop   File:   View Source Code Vote up 6 votes
private void initialize(Configuration conf) throws YarnException {"Initializing Reservation system");
  this.conf = conf;
  scheduler = rmContext.getScheduler();
  // Get the plan step size
  planStepSize =
  if (planStepSize < 0) {
    planStepSize =
  // Create a plan corresponding to every reservable queue
  Set<String> planQueueNames = scheduler.getPlanQueues();
  for (String planQueueName : planQueueNames) {
    Plan plan = initializePlan(planQueueName);
    plans.put(planQueueName, plan);