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 0393B6514 for ; Fri, 15 Jul 2011 21:27:29 +0000 (UTC) Received: (qmail 62626 invoked by uid 500); 15 Jul 2011 21:27:28 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 62561 invoked by uid 500); 15 Jul 2011 21:27:28 -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 62553 invoked by uid 500); 15 Jul 2011 21:27:28 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 62550 invoked by uid 99); 15 Jul 2011 21:27:27 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Jul 2011 21:27:27 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Jul 2011 21:27:21 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 0622E5997D for ; Fri, 15 Jul 2011 21:27:00 +0000 (UTC) Date: Fri, 15 Jul 2011 21:27:00 +0000 (UTC) From: "Charles Chen (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: <1539129485.18839.1310765220021.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <2069624642.5632.1309997117304.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (HIVE-2268) CREATE.. TABLE.. LIKE should not inherit the original owner of the table. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HIVE-2268?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13066220#comment-13066220 ] Charles Chen commented on HIVE-2268: ------------------------------------ This will be fixed in https://issues.apache.org/jira/browse/HIVE-1218 > CREATE.. TABLE.. LIKE should not inherit the original owner of the table. > ------------------------------------------------------------------------- > > Key: HIVE-2268 > URL: https://issues.apache.org/jira/browse/HIVE-2268 > Project: Hive > Issue Type: Bug > Components: Metastore, Security > Affects Versions: 0.7.0, 0.7.1, 0.8.0 > Reporter: Esteban Gutierrez > Assignee: Charles Chen > Labels: create, ddl, table > Attachments: hive-2268.1.patch > > > When a new table is created by using CREATE.. TABLE.. LIKE.. the new table inherits the existing owner of the table, this is issue is potentially conflicting for multiuser environments where Hive authorization is planned for future use. > -- alice creates table > CREATE EXTERNAL TABLE foo(bar double) > ROW FORMAT DELIMITED FIELDS TERMINATED BY ',' LINES TERMINATED BY '\n' > STORED AS TEXTFILE LOCATION '/user/alice/foo'; > -- table owner is alice as expected > hive> DESCRIBE EXTENDED foo; > OK > bar double > > Detailed Table Information Table(tableName:foo, dbName:default, {color:red} owner:alice {color}, createTime:1309996190, lastAccessTime:0, retention:0, sd:StorageDescriptor(cols:[FieldSchema(name:bar, type:double, comment:null)], location:hdfs://localhost/user/alice/foo, inputFormat:org.apache.hadoop.mapred.TextInputFormat, outputFormat:org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat, compressed:false, numBuckets:-1, serdeInfo:SerDeInfo(name:null, serializationLib:org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe, parameters:{serialization.format=,, field.delim=,, line.delim= > }), bucketCols:[], sortCols:[], parameters:{}), partitionKeys:[], parameters:{EXTERNAL=TRUE, transient_lastDdlTime=1309996190}, viewOriginalText:null, viewExpandedText:null, tableType:EXTERNAL_TABLE) > -- bob calls CREATE..TABLE..LIKE > CREATE TABLE foo_like LIKE foo; > -- bob created a new table using like but the owner stills alice > -- but the expected is owner:bob > hive> DESCRIBE EXTENDED foo_like; > OK > bar double > > Detailed Table Information Table(tableName:foo_like, dbName:default, {color:red} owner:alice {color}, createTime:1309996554, lastAccessTime:0, retention:0, sd:StorageDescriptor(cols:[FieldSchema(name:bar, type:double, comment:null)], location:hdfs://localhost/user/hive/warehouse/foo_like, inputFormat:org.apache.hadoop.mapred.TextInputFormat, outputFormat:org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat, compressed:false, numBuckets:-1, serdeInfo:SerDeInfo(name:null, serializationLib:org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe, parameters:{serialization.format=,, field.delim=,, line.delim= > }), bucketCols:[], sortCols:[], parameters:{}), partitionKeys:[], parameters:{transient_lastDdlTime=1309996554}, viewOriginalText:null, viewExpandedText:null, tableType:MANAGED_TABLE) -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira