Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id EB4FC200C31 for ; Wed, 22 Feb 2017 00:37:48 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id EA006160B77; Tue, 21 Feb 2017 23:37:48 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 3F56F160B68 for ; Wed, 22 Feb 2017 00:37:48 +0100 (CET) Received: (qmail 92104 invoked by uid 500); 21 Feb 2017 23:37:47 -0000 Mailing-List: contact hdfs-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list hdfs-issues@hadoop.apache.org Received: (qmail 92093 invoked by uid 99); 21 Feb 2017 23:37:47 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Feb 2017 23:37:47 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id B1D66C0258 for ; Tue, 21 Feb 2017 23:37:46 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -1.999 X-Spam-Level: X-Spam-Status: No, score=-1.999 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-2.999] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id Q5vP0C15c2wQ for ; Tue, 21 Feb 2017 23:37:46 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id A21615FBCE for ; Tue, 21 Feb 2017 23:37:45 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 84E17E0A04 for ; Tue, 21 Feb 2017 23:37:44 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 3C9B824127 for ; Tue, 21 Feb 2017 23:37:44 +0000 (UTC) Date: Tue, 21 Feb 2017 23:37:44 +0000 (UTC) From: "Andrew Wang (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HDFS-11426) Refactor EC CLI to be similar to storage policies CLI MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 21 Feb 2017 23:37:49 -0000 [ https://issues.apache.org/jira/browse/HDFS-11426?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15877023#comment-15877023 ] Andrew Wang commented on HDFS-11426: ------------------------------------ Thanks for the reviews [~tasanuma0829], [~surendrasingh], [~jojochuang]. I'm attaching a patch that should address all the review feedback, except as noted below. bq. 2. One extra space is required after Usage: in GetECPolicyCommand#run() I also took the opportunity to fix this missing space in StoragePolicyAdmin, hope that's okay. bq. It could be easier to understand with a more verbose output than printing the ec policy. Hi [~jojochuang], what would you suggest to improve the output? I did make one new change to just print the EC policy name instead of {{toString}} since I think it looks better and matches the input to {{setPolicy}}: {noformat} -> % hdfs ec -listPolicies Erasure Coding Policies: RS-10-4-64k RS-3-2-64k RS-6-3-64k RS-LEGACY-6-3-64k XOR-2-1-64k -> % hdfs ec -getPolicy -path hdfs:///ecdir RS-3-2-64k {noformat} > Refactor EC CLI to be similar to storage policies CLI > ----------------------------------------------------- > > Key: HDFS-11426 > URL: https://issues.apache.org/jira/browse/HDFS-11426 > Project: Hadoop HDFS > Issue Type: Improvement > Components: erasure-coding, shell > Affects Versions: 3.0.0-alpha1 > Reporter: Andrew Wang > Assignee: Andrew Wang > Labels: hdfs-ec-3.0-must-do > Attachments: HDFS-11426.001.patch, HDFS-11426.002.patch, HDFS-11426.003.patch > > > The {{hdfs erasurecode}} CLI is similar to {{hdfs storagepolicies}} in terms of functionality, but different in terms of behavior. Let's refactor {{ECCli}} to be more similar to the various Admin classes we already have, and also make its calling syntax mimic {{hdfs storagepolicies}} as closely as possible. -- This message was sent by Atlassian JIRA (v6.3.15#6346) --------------------------------------------------------------------- To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org