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 EB395200D63 for ; Thu, 7 Dec 2017 02:54:08 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id E9ADF160C1D; Thu, 7 Dec 2017 01:54:08 +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 3B2E2160C0A for ; Thu, 7 Dec 2017 02:54:08 +0100 (CET) Received: (qmail 85967 invoked by uid 500); 7 Dec 2017 01:54:07 -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 85956 invoked by uid 99); 7 Dec 2017 01:54:07 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Dec 2017 01:54:07 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 91A591A0335 for ; Thu, 7 Dec 2017 01:54:06 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id GchHRSjV5Tvo for ; Thu, 7 Dec 2017 01:54:05 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 250625F216 for ; Thu, 7 Dec 2017 01:54:05 +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 0EA63E0E0B for ; Thu, 7 Dec 2017 01:54:03 +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 538CA255CC for ; Thu, 7 Dec 2017 01:54:01 +0000 (UTC) Date: Thu, 7 Dec 2017 01:54:01 +0000 (UTC) From: "SammiChen (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: =?utf-8?Q?[jira]_[Commented]_(HDFS-12896)_whe?= =?utf-8?Q?n_set_replicate_EC_policy_for_a_dir?= =?utf-8?Q?ectory_or_file=EF=BC=8Cit's_EC_policy_canno?= =?utf-8?Q?t_be_querying_by_getPolicy_command.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 07 Dec 2017 01:54:09 -0000 [ https://issues.apache.org/jira/browse/HDFS-12896?page=3Dcom.atlassian= .jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D1628= 1229#comment-16281229 ]=20 SammiChen commented on HDFS-12896: ---------------------------------- Hi [~candychencan], HDFS-12308 is about to provide a new API other than {{= getErasureCodingPolicy}} to return the effective EC policy.=20 > when set replicate EC policy for a directory or file=EF=BC=8Cit's EC poli= cy cannot be querying by getPolicy command. > -------------------------------------------------------------------------= ----------------------------------- > > Key: HDFS-12896 > URL: https://issues.apache.org/jira/browse/HDFS-12896 > Project: Hadoop HDFS > Issue Type: Bug > Reporter: chencan > > When i set replicate EC policy for ecDir=EF=BC=8Cthen query it by getPoli= cy=EF=BC=8Cit return =E2=80=98The erasure coding policy of /ecDir is unspec= ified', as follow. > [root@master bin]# hdfs dfs -mkdir /ecDir > [root@master bin]# hdfs ec -setPolicy -path /ecDir -replicate > Set erasure coding policy replication on /ecDir > [root@master bin]# hdfs ec -getPolicy -path /ecDir > The erasure coding policy of /ecDir is unspecified -- This message was sent by Atlassian JIRA (v6.4.14#64029) --------------------------------------------------------------------- To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org