[ https://issues.apache.org/jira/browse/SLIDER-1231?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16074266#comment-16074266 ]
kyungwan nam commented on SLIDER-1231: -------------------------------------- if node-label-expression in ApplicationSubmissionContext is set, it is used for all containers. http://hadoop.apache.org/docs/current/hadoop-yarn/hadoop-yarn-site/NodeLabel.html#Specifying_node_label_for_application {noformat} Specifying node label for application Applications can use following Java APIs to specify node label to request - ApplicationSubmissionContext.setNodeLabelExpression(..) to set node label expression for all containers of the application. - ResourceRequest.setNodeLabelExpression(..) to set node label expression for individual resource requests. This can overwrite node label expression set in ApplicationSubmissionContext - Specify setAMContainerResourceRequest.setNodeLabelExpression in ApplicationSubmissionContext to indicate expected node label for application master container. {noformat} > yarn.label.expression does not work correctly > --------------------------------------------- > > Key: SLIDER-1231 > URL: https://issues.apache.org/jira/browse/SLIDER-1231 > Project: Slider > Issue Type: Bug > Reporter: kyungwan nam > > resources.json > {code} > { > ... > "components": { > "slider-appmaster": { > "yarn.memory": "2048", > "yarn.label.expression" : “label1" > }, > "HBASE_REGIONSERVER": { > "yarn.role.priority": "1", > "yarn.component.instances": “1", > "yarn.memory": "4096", > "yarn.component.placement.policy": "4", > "yarn.placement.escalate.seconds": "60", > "yarn.container.failure.threshold": "9" > }, > {code} > I thought this app will be worked as follows according to resources.json > - slider-appmaster should be allocated to a host whose node label is “label1”. > - HBASE_REGIONSERVER should be allocated to a host whose node label is > default. > but, all containers was trying to allocate to a host whose node label is > “label1" -- This message was sent by Atlassian JIRA (v6.4.14#64029)