hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vivek Ratan" <viv...@yahoo-inc.com>
Subject How should we handle queue configuaration in hadoop?
Date Tue, 03 Jun 2008 05:39:56 GMT
I'd like to get some feedback on how to implement configuration for

Quick background: As part of the new Resource Manager in Hadoop
(HADOOP-3421), a single Hadoop installation supports one or more queues
that user submit jobs to. Eventually (it is hoped), an installation will
support one or more Orgs, each with one of more queues. 

The problem: Queues have attributes: a name, whether it supports
priorities, a 'guaranteed capacity', a list of allowed users, a list of
rejected users, and so on. How do we handle this configuration? Some
* We'd like the default installation to have a single queue with default
values, so the system works out of the box, but an admin can configure
multiple queues, each with its own config values. Different
installations can have different number of queues. 
* Orgs, queues, and users provide a hierarchy. You could set default
values for some config variables in the Org, and individual queues could
override them. Similarly, individual users could override Org/queue
defaults. This is more of a long term goal. For V1, we can get away with
queue-specific configuration only. 
* Some config values can be changed by the admin while the system is
running, and these need to be re-read by Hadoop within a reasonable
amount of time. For example, an admin may dynamically change the
guaranteed capacity of queues (if new machines are added to a cluster,
for example). You don't want to restart the JT to read new values. 

What are the implementation choices we're facing? 

- Where do we specify config values? It seems clear that
hadoop-default.xml should contain configuration for a single queue with
appropriate default values. If ad admin wants to set up multiple queues,
this information can go in a separate file. hadoop-site.xml? Or maybe a
separate config file for queues? While having multiple config files
leads to problems in managing them, there are some supporting arguments
for a separate config file for queues: this file can be re-read
periodically (which avoids having to re-read hadoop-site.xml), this file
is only read by the JobTracker, so there's no issue of overriding values

- How do we specify config values? You can have more than one queue, and
each queue has its attributes. 
* You could have properties like "hadoop.scheduler.queue1.name",
"hadoop.scheduler.queue2.name"... Bit of a pain to write, and since the
number od queues is not known statically, how do you know how many of
these properties to read? You could have a separate property that tells
you how many queues there are, and then the JT can build the property
names dynamically. (HADOOP-3407 would also help here). 
* You may want comma separated values. So "hadoop.scheduler.queue.names"
would have comma separated values for all queue names,
"hadoop.scheduler.queue.guaranteed_capacity" would have comma separated
values for capacities for each queue. This can get very difficult to
maintain as you have to make sure the attribute values for each queue
show up in the right place among the comma separated values. 

Do we have any examples of config settings where you can have a dynamic
number of top-level entries, and each entry has multiple attributes? 

Should this discussion be on a Jira? I hesitated, as there seems to be
more than one issue to resolve here. 

View raw message