hadoop-yarn-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "kyungwan nam (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (YARN-3931) default-node-label-expression doesn’t apply when an application is submitted by RM rest api
Date Thu, 16 Jul 2015 09:32:04 GMT

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

kyungwan nam commented on YARN-3931:
------------------------------------

node-label-expression is initialized to empty string 
{code}
...
public ApplicationSubmissionContextInfo() {
  applicationId = "";
  applicationName = "";
  containerInfo = new ContainerLaunchContextInfo();
  resource = new ResourceInfo();
  priority = Priority.UNDEFINED.getPriority();
  isUnmanagedAM = false;
  cancelTokensWhenComplete = true;
  keepContainers = false;
  applicationType = "";
  tags = new HashSet<String>();
  appNodeLabelExpression = "";
  amContainerNodeLabelExpression = "";
}
{code}

but, check whether node-label-expression is null or not
{code}
// check labels in the resource request.
String labelExp = resReq.getNodeLabelExpression();

// if queue has default label expression, and RR doesn't have, use the
// default label expression of queue
if (labelExp == null && queueInfo != null) {
  labelExp = queueInfo.getDefaultNodeLabelExpression();
  resReq.setNodeLabelExpression(labelExp);
}
{code}

> default-node-label-expression doesn’t apply when an application is submitted by RM
rest api
> -------------------------------------------------------------------------------------------
>
>                 Key: YARN-3931
>                 URL: https://issues.apache.org/jira/browse/YARN-3931
>             Project: Hadoop YARN
>          Issue Type: Bug
>          Components: resourcemanager
>         Environment: hadoop-2.6.0
>            Reporter: kyungwan nam
>            Assignee: Naganarasimha G R
>
> * yarn.scheduler.capacity.<queue-path>.default-node-label-expression=large_disk
> * submit an application using rest api without "app-node-label-expression”, "am-container-node-label-expression”
> * RM doesn’t allocate containers to the hosts associated with large_disk node label



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message