Return-Path: X-Original-To: apmail-atlas-dev-archive@minotaur.apache.org Delivered-To: apmail-atlas-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4672D190F6 for ; Wed, 6 Apr 2016 17:44:34 +0000 (UTC) Received: (qmail 19149 invoked by uid 500); 6 Apr 2016 17:44:34 -0000 Delivered-To: apmail-atlas-dev-archive@atlas.apache.org Received: (qmail 19097 invoked by uid 500); 6 Apr 2016 17:44:34 -0000 Mailing-List: contact dev-help@atlas.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@atlas.incubator.apache.org Delivered-To: mailing list dev@atlas.incubator.apache.org Received: (qmail 19086 invoked by uid 99); 6 Apr 2016 17:44:33 -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; Wed, 06 Apr 2016 17:44:33 +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 7B6DA1A0708 for ; Wed, 6 Apr 2016 17:44:33 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.819 X-Spam-Level: X-Spam-Status: No, score=-0.819 tagged_above=-999 required=6.31 tests=[DKIM_ADSP_CUSTOM_MED=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.001, HTML_MESSAGE=2, KAM_LAZY_DOMAIN_SECURITY=1, NML_ADSP_CUSTOM_MED=1.2, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-0.001] 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 sWDclDRGaLhG for ; Wed, 6 Apr 2016 17:44:32 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with SMTP id 7101B5FB53 for ; Wed, 6 Apr 2016 17:44:31 +0000 (UTC) Received: (qmail 19054 invoked by uid 99); 6 Apr 2016 17:44:30 -0000 Received: from reviews-vm.apache.org (HELO reviews.apache.org) (140.211.11.40) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Apr 2016 17:44:30 +0000 Received: from reviews.apache.org (localhost [127.0.0.1]) by reviews.apache.org (Postfix) with ESMTP id F22402A5DD6; Wed, 6 Apr 2016 17:44:27 +0000 (UTC) Content-Type: multipart/alternative; boundary="===============6556310753572658429==" MIME-Version: 1.0 Subject: Re: Review Request 45784: Hve Hook - Support tracking lineage for External Tables( Create/alter) , Load, import, export From: Suma Shivaprasad To: atlas , Shwetha GS Date: Wed, 06 Apr 2016 17:44:27 -0000 Message-ID: <20160406174427.20106.82884@reviews.apache.org> X-ReviewBoard-URL: https://reviews.apache.org/ Auto-Submitted: auto-generated Sender: Suma Shivaprasad X-ReviewGroup: atlas X-Auto-Response-Suppress: DR, RN, OOF, AutoReply X-ReviewRequest-URL: https://reviews.apache.org/r/45784/ X-Sender: Suma Shivaprasad References: <20160406170323.20106.50012@reviews.apache.org> In-Reply-To: <20160406170323.20106.50012@reviews.apache.org> Reply-To: Suma Shivaprasad X-ReviewRequest-Repository: atlas --===============6556310753572658429== MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/45784/ ----------------------------------------------------------- (Updated April 6, 2016, 5:44 p.m.) Review request for atlas. Changes ------- Fixed review comments Bugs: ATLAS-527 https://issues.apache.org/jira/browse/ATLAS-527 Repository: atlas Description ------- Added support to track lineage between HDFS Paths and hive tables in a. LOAD( at table, partition level) - input is a HDFS path and output is table( even though we dont create partition entities, we are still tracking the lineage at table level for partitions. This could be an issue if there are large number of partition queries which is not being addressed in this jira - https://issues.apache.org/jira/browse/ATLAS-619) . refer https://cwiki.apache.org/confluence/display/Hive/LanguageManual+DML b. IMPORT, EXPORT to and from hdfs paths - Refer https://cwiki.apache.org/confluence/display/Hive/LanguageManual+DML c. CREATE EXTERNAL TABLE - input is hdfs path and o/p is table d. ALTER TABLE LOCATION for an external table - input is the new hdfs path and o/p is the table. Also changed the ordering of model registration by sorting them by modifiedTime to ensure they are registered in correct order Diffs (updated) ----- addons/hdfs-model/src/main/java/org/apache/atlas/fs/model/FSDataModelGenerator.java 555d565 addons/hdfs-model/src/main/scala/org/apache/atlas/fs/model/FSDataModel.scala c964f73 addons/hive-bridge/src/main/java/org/apache/atlas/hive/bridge/HiveMetaStoreBridge.java 3a802d7 addons/hive-bridge/src/main/java/org/apache/atlas/hive/hook/HiveHook.java 68e32ff addons/hive-bridge/src/test/java/org/apache/atlas/hive/hook/HiveHookIT.java e17afb8 addons/storm-bridge/src/main/java/org/apache/atlas/storm/hook/StormAtlasHook.java 5665856 client/src/main/java/org/apache/atlas/AtlasClient.java c3b4ba9 repository/src/main/java/org/apache/atlas/services/DefaultMetadataService.java 0a04c5f repository/src/main/java/org/apache/atlas/services/ReservedTypesRegistrar.java 430bb6b Diff: https://reviews.apache.org/r/45784/diff/ Testing ------- Added tests in HiveHookIT Thanks, Suma Shivaprasad --===============6556310753572658429==--