Return-Path: X-Original-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-hdfs-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 4A94019840 for ; Tue, 26 Apr 2016 07:15:15 +0000 (UTC) Received: (qmail 83014 invoked by uid 500); 26 Apr 2016 07:15:13 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 82806 invoked by uid 500); 26 Apr 2016 07:15:13 -0000 Mailing-List: contact hdfs-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hdfs-issues@hadoop.apache.org Delivered-To: mailing list hdfs-issues@hadoop.apache.org Received: (qmail 82596 invoked by uid 99); 26 Apr 2016 07:15:13 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Apr 2016 07:15:13 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 152942C1F64 for ; Tue, 26 Apr 2016 07:15:13 +0000 (UTC) Date: Tue, 26 Apr 2016 07:15:13 +0000 (UTC) From: "xupeng (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HDFS-10328) Add cache pool level replication managment MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HDFS-10328?page=3Dcom.atlassian= .jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D1525= 7676#comment-15257676 ]=20 xupeng commented on HDFS-10328: ------------------------------- Attach a patch.=20 User can set replication for pool by using "cacheadmin -addPool -replicatio= n" or "cacheadmin -modifyPool -replication". When adding a cache directive = into pool without setting replication num, the cache directive will inherit= replication configuration from cache pool.=20 Also you can override this setting by using =E2=80=9Ccacheadmin -addDirecti= ve -replication=E2=80=9D or "cacheadmin -modifyDirective -replication".=20 > Add cache pool level replication managment=20 > ------------------------------------------- > > Key: HDFS-10328 > URL: https://issues.apache.org/jira/browse/HDFS-10328 > Project: Hadoop HDFS > Issue Type: Sub-task > Components: caching > Reporter: xupeng > Assignee: xupeng > Priority: Minor > Fix For: 2.3.0 > > Attachments: HADOOP-10328.001.patch > > > For now, hdfs cacheadmin can not set a replication num for cachepool. Eac= h cache directive added in the cache pool should set their own replication = num individually.=20 > Consider this situation, we add daily hive table into cache pool "hive" .= Each time i should set the same replication num for every table directive i= n the same cache pool. =20 > I think we should enable setting a replication num for cachepool that eve= ry cache directive in the pool can inherit replication configuration from t= he pool. Also cache directive can override replication configuration explic= itly by calling "add & modify directive -replication" command from cli. = =20 -- This message was sent by Atlassian JIRA (v6.3.4#6332)