Return-Path: X-Original-To: apmail-hadoop-yarn-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-yarn-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E3DA610E21 for ; Thu, 22 Jan 2015 21:48:36 +0000 (UTC) Received: (qmail 28792 invoked by uid 500); 22 Jan 2015 21:48:36 -0000 Delivered-To: apmail-hadoop-yarn-issues-archive@hadoop.apache.org Received: (qmail 28747 invoked by uid 500); 22 Jan 2015 21:48:36 -0000 Mailing-List: contact yarn-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: yarn-issues@hadoop.apache.org Delivered-To: mailing list yarn-issues@hadoop.apache.org Received: (qmail 28735 invoked by uid 99); 22 Jan 2015 21:48:36 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Jan 2015 21:48:36 +0000 Date: Thu, 22 Jan 2015 21:48:36 +0000 (UTC) From: "Wangda Tan (JIRA)" To: yarn-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (YARN-3028) Better syntax for replace label CLI MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/YARN-3028?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14288273#comment-14288273 ] Wangda Tan commented on YARN-3028: ---------------------------------- [~rohithsharma], I see, just re-reviewed, my bad. Yes, 1#/2# are all addressed. A nit for test: I suggest to merge {{testReplaceLabelsOnNodeWithPort}} to {{testReplaceLabelsOnNode}}. It's no need to split them. And a case for "=" but without port should added. Nit for help message: 1) port should be "optional", you can make a small change here for help message: \[node1:port=label1,label2 node2:port=label1,label2\] should be \[node1\[:port\]=label1...\] 2) {{printHelp}} should be updated as well. Also, I still suggest add a small comment before {code} String[] splits = nodeToLabels.split("="); {code} To explicitly indicate we support "," for compatibility. Thanks, Wangda > Better syntax for replace label CLI > ----------------------------------- > > Key: YARN-3028 > URL: https://issues.apache.org/jira/browse/YARN-3028 > Project: Hadoop YARN > Issue Type: Sub-task > Components: api, client, resourcemanager > Reporter: Jian He > Assignee: Rohith > Attachments: 0001-YARN-3028.patch > > > The command to replace label now is such: > {code} > yarn rmadmin -replaceLabelsOnNode [node1:port,label1,label2 node2:port,label1,label2] > {code} > Instead of {code} node1:port,label1,label2 {code} I think it's better to say {code} node1:port=label1,label2 {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)