Return-Path: X-Original-To: apmail-hive-dev-archive@www.apache.org Delivered-To: apmail-hive-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B5F5310900 for ; Fri, 11 Apr 2014 00:52:44 +0000 (UTC) Received: (qmail 36648 invoked by uid 500); 11 Apr 2014 00:52:42 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 36507 invoked by uid 500); 11 Apr 2014 00:52:42 -0000 Mailing-List: contact dev-help@hive.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hive.apache.org Delivered-To: mailing list dev@hive.apache.org Received: (qmail 36497 invoked by uid 99); 11 Apr 2014 00:52:42 -0000 Received: from reviews-vm.apache.org (HELO reviews.apache.org) (140.211.11.40) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Apr 2014 00:52:42 +0000 Received: from reviews.apache.org (localhost [127.0.0.1]) by reviews.apache.org (Postfix) with ESMTP id E94C51D5E84; Fri, 11 Apr 2014 00:52:37 +0000 (UTC) Content-Type: multipart/alternative; boundary="===============5304931548298611761==" MIME-Version: 1.0 Subject: Re: Review Request 20243: HIVE-6891 - Alter rename partition Perm inheritance and general partition/table owner inheritance From: "Brock Noland" To: "Szehon Ho" , "hive" , "Brock Noland" Date: Fri, 11 Apr 2014 00:52:37 -0000 Message-ID: <20140411005237.22531.67798@reviews.apache.org> X-ReviewBoard-URL: https://reviews.apache.org Auto-Submitted: auto-generated Sender: "Brock Noland" X-ReviewGroup: hive X-ReviewRequest-URL: https://reviews.apache.org/r/20243/ X-Sender: "Brock Noland" References: <20140411004933.22531.60055@reviews.apache.org> In-Reply-To: <20140411004933.22531.60055@reviews.apache.org> Reply-To: "Brock Noland" X-ReviewRequest-Repository: hive-git --===============5304931548298611761== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/20243/#review40113 ----------------------------------------------------------- I don't think we will be able to set owner since we are not superuer? But we can set and should set group. - Brock Noland On April 11, 2014, 12:49 a.m., Szehon Ho wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/20243/ > ----------------------------------------------------------- > > (Updated April 11, 2014, 12:49 a.m.) > > > Review request for hive. > > > Bugs: HIVE-6891 > https://issues.apache.org/jira/browse/HIVE-6891 > > > Repository: hive-git > > > Description > ------- > > This is a follow-up of HIVE-6648. > > Extending the fix to other partition/table operations as well, by refactoring the fixed code in HIVE-6648 into a common FileUtils helper method, and then using it for all table/partition directory creation operation, when "hive.warehouse.subdir.inherit.perms" flag is set. > > Another part of this change is to add ownership inheritance in this code as well when creating directories. Ownership was already inherited for data (HIVE-3756), but not at the table/partitioned-table level. > > > Diffs > ----- > > common/src/java/org/apache/hadoop/hive/common/FileUtils.java ad82f62 > itests/hive-unit/src/test/java/org/apache/hadoop/hive/ql/security/TestFolderPermissions.java f1c7b7b > metastore/src/java/org/apache/hadoop/hive/metastore/HiveAlterHandler.java 8345d70 > metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java c62e085 > metastore/src/java/org/apache/hadoop/hive/metastore/Warehouse.java f731dab > ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java 2559e0e > > Diff: https://reviews.apache.org/r/20243/diff/ > > > Testing > ------- > > Extending the unit test TestFolderPermission to handle all the new cases of directory creation (create table, external table, static partition, dynamic partition, rename partition). > > Unfortunately due to the test using the local file system, I cannot add the ownership inheritance to unit-testing. I can probably look into using MiniDFS for that, in a follow-up JIRA. > > > Thanks, > > Szehon Ho > > --===============5304931548298611761==--