hadoop-yarn-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sandy Ryza (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (YARN-2012) Fair Scheduler : Default rule in queue placement policy can take a queue as an optional attribute
Date Wed, 21 May 2014 04:01:39 GMT

    [ https://issues.apache.org/jira/browse/YARN-2012?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14004307#comment-14004307
] 

Sandy Ryza commented on YARN-2012:
----------------------------------

{code}
+          defaultQueueName = "root." + defaultQueueName;
{code}
This should go inside the initializeFromXml method.

{code}
+        if (configuredQueues.get(FSQueueType.LEAF).contains(defaultQueueName)
+            || configuredQueues.get(FSQueueType.PARENT).contains(
+                defaultQueueName)) {
+          return defaultQueueName;
+        }
+      }
       return "root." + YarnConfiguration.DEFAULT_QUEUE_NAME;
{code}
I think it's a little confusing for the rule to fall back to "default".  Can we let this part
be handled by the "create" logic in assignAppToQueue?

> Fair Scheduler : Default rule in queue placement policy can take a queue as an optional
attribute
> -------------------------------------------------------------------------------------------------
>
>                 Key: YARN-2012
>                 URL: https://issues.apache.org/jira/browse/YARN-2012
>             Project: Hadoop YARN
>          Issue Type: Improvement
>          Components: scheduler
>            Reporter: Ashwin Shankar
>            Assignee: Ashwin Shankar
>              Labels: scheduler
>         Attachments: YARN-2012-v1.txt, YARN-2012-v2.txt
>
>
> Currently 'default' rule in queue placement policy,if applied,puts the app in root.default
queue. It would be great if we can make 'default' rule optionally point to a different queue
as default queue . This queue should be an existing queue,if not we fall back to root.default
queue hence keeping this rule as terminal.
> This default queue can be a leaf queue or it can also be an parent queue if the 'default'
rule is nested inside nestedUserQueue rule(YARN-1864).



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message