[jira] [Updated] (YARN-3583) Support of NodeLabel object instead of plain String in YarnClient side.

2015-05-19 Thread Sunil G (JIRA)

 [ 
https://issues.apache.org/jira/browse/YARN-3583?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Sunil G updated YARN-3583:
--
Attachment: 0004-YARN-3583.patch

Thank you [~leftnoteasy] for the comments.
I updated the patch addressing the same. 

> Support of NodeLabel object instead of plain String in YarnClient side.
> ---
>
> Key: YARN-3583
> URL: https://issues.apache.org/jira/browse/YARN-3583
> Project: Hadoop YARN
>  Issue Type: Sub-task
>  Components: client
>Affects Versions: 2.6.0
>Reporter: Sunil G
>Assignee: Sunil G
> Attachments: 0001-YARN-3583.patch, 0002-YARN-3583.patch, 
> 0003-YARN-3583.patch, 0004-YARN-3583.patch
>
>
> Similar to YARN-3521, use NodeLabel objects in YarnClient side apis.
> getLabelsToNodes/getNodeToLabels api's can use NodeLabel object instead of 
> using plain label name.
> This will help to bring other label details such as Exclusivity to client 
> side.



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


[jira] [Updated] (YARN-3583) Support of NodeLabel object instead of plain String in YarnClient side.

2015-05-18 Thread Sunil G (JIRA)

 [ 
https://issues.apache.org/jira/browse/YARN-3583?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Sunil G updated YARN-3583:
--
Attachment: 0003-YARN-3583.patch

Thank you [~leftnoteasy] for the comments.
Updated a patch addressing the comments.

bq. I think it's better to add it separately to make sure it will be tested.
In TestClientRMServices we have test case and I added new test case in 
TestYarnClient also for GetNodeLabels which will check the NodeIdToLabelsInfo. 
In TestPBImplsRecords, we only have test case for Request and Response PB 
Objects, and the inner values are validated in same. Here we need to test an 
inner object for a ResponsePBImpl and is covered by above tests. Pls let me 
know if this is fine.

> Support of NodeLabel object instead of plain String in YarnClient side.
> ---
>
> Key: YARN-3583
> URL: https://issues.apache.org/jira/browse/YARN-3583
> Project: Hadoop YARN
>  Issue Type: Sub-task
>  Components: client
>Affects Versions: 2.6.0
>Reporter: Sunil G
>Assignee: Sunil G
> Attachments: 0001-YARN-3583.patch, 0002-YARN-3583.patch, 
> 0003-YARN-3583.patch
>
>
> Similar to YARN-3521, use NodeLabel objects in YarnClient side apis.
> getLabelsToNodes/getNodeToLabels api's can use NodeLabel object instead of 
> using plain label name.
> This will help to bring other label details such as Exclusivity to client 
> side.



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


[jira] [Updated] (YARN-3583) Support of NodeLabel object instead of plain String in YarnClient side.

2015-05-14 Thread Sunil G (JIRA)

 [ 
https://issues.apache.org/jira/browse/YARN-3583?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Sunil G updated YARN-3583:
--
Attachment: 0002-YARN-3583.patch

Thank you [~leftnoteasy] for sharing the comments. Please find updated patch 
addressing the same. Also i inlined the changes.
bq.1. NodeIdToLabelsProto can be removed?
In yarn_service_resourcemanager_service_protos, ReplaceLabelsOnNodeRequestProto 
still used NodeIdToLabelsProto. 
So I feel we can keep the same.
bq.2. NodeIdToLabelsInfoProto could be added to TestPBImplRecords?
I feel existing test case testGetNodeToLabelsResponsePBImpl which is present in 
TestPBImplRecords internally covers the verification for 
NodeIdToLabelsInfoProto. Pls suggest if otherwise.
bq.3. In TestClientRMService, could you check if the new 
getter-api-with-NodeLabel actually works,
Updated the test case with verification

> Support of NodeLabel object instead of plain String in YarnClient side.
> ---
>
> Key: YARN-3583
> URL: https://issues.apache.org/jira/browse/YARN-3583
> Project: Hadoop YARN
>  Issue Type: Sub-task
>  Components: client
>Affects Versions: 2.6.0
>Reporter: Sunil G
>Assignee: Sunil G
> Attachments: 0001-YARN-3583.patch, 0002-YARN-3583.patch
>
>
> Similar to YARN-3521, use NodeLabel objects in YarnClient side apis.
> getLabelsToNodes/getNodeToLabels api's can use NodeLabel object instead of 
> using plain label name.
> This will help to bring other label details such as Exclusivity to client 
> side.



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


[jira] [Updated] (YARN-3583) Support of NodeLabel object instead of plain String in YarnClient side.

2015-05-14 Thread Sunil G (JIRA)

 [ 
https://issues.apache.org/jira/browse/YARN-3583?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Sunil G updated YARN-3583:
--
Description: 
Similar to YARN-3521, use NodeLabel objects in YarnClient side apis.
getLabelsToNodes/getNodeToLabels api's can use NodeLabel object instead of 
using plain label name.

This will help to bring other label details such as Exclusivity to client side.

  was:
Similar to YARN-3521, use NodeLabel objects in its apis
getLabelsToNodes/getNodeToLabels instead of using plain label name.

This will help to bring other label details such as Exclusivity to client side.


> Support of NodeLabel object instead of plain String in YarnClient side.
> ---
>
> Key: YARN-3583
> URL: https://issues.apache.org/jira/browse/YARN-3583
> Project: Hadoop YARN
>  Issue Type: Sub-task
>  Components: client
>Affects Versions: 2.6.0
>Reporter: Sunil G
>Assignee: Sunil G
> Attachments: 0001-YARN-3583.patch
>
>
> Similar to YARN-3521, use NodeLabel objects in YarnClient side apis.
> getLabelsToNodes/getNodeToLabels api's can use NodeLabel object instead of 
> using plain label name.
> This will help to bring other label details such as Exclusivity to client 
> side.



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


[jira] [Updated] (YARN-3583) Support of NodeLabel object instead of plain String in YarnClient side.

2015-05-14 Thread Sunil G (JIRA)

 [ 
https://issues.apache.org/jira/browse/YARN-3583?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Sunil G updated YARN-3583:
--
Attachment: 0001-YARN-3583.patch

Uploading an initial version patch.
This path covers changes in YarnClient/ResourceMgrDelegate side. 
[~leftnoteasy] kindly check the same.


> Support of NodeLabel object instead of plain String in YarnClient side.
> ---
>
> Key: YARN-3583
> URL: https://issues.apache.org/jira/browse/YARN-3583
> Project: Hadoop YARN
>  Issue Type: Sub-task
>  Components: client
>Affects Versions: 2.6.0
>Reporter: Sunil G
>Assignee: Sunil G
> Attachments: 0001-YARN-3583.patch
>
>
> Similar to YARN-3521, use NodeLabel objects in its apis
> getLabelsToNodes/getNodeToLabels instead of using plain label name.
> This will help to bring other label details such as Exclusivity to client 
> side.



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


[jira] [Updated] (YARN-3583) Support of NodeLabel object instead of plain String in YarnClient side.

2015-05-13 Thread Sunil G (JIRA)

 [ 
https://issues.apache.org/jira/browse/YARN-3583?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Sunil G updated YARN-3583:
--
Issue Type: Sub-task  (was: Bug)
Parent: YARN-2492

> Support of NodeLabel object instead of plain String in YarnClient side.
> ---
>
> Key: YARN-3583
> URL: https://issues.apache.org/jira/browse/YARN-3583
> Project: Hadoop YARN
>  Issue Type: Sub-task
>  Components: client
>Affects Versions: 2.6.0
>Reporter: Sunil G
>Assignee: Sunil G
>
> Similar to YARN-3521, use NodeLabel objects in its apis
> getLabelsToNodes/getNodeToLabels instead of using plain label name.
> This will help to bring other label details such as Exclusivity to client 
> side.



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