From dev-return-23381-archive-asf-public=cust-asf.ponee.io@atlas.apache.org Thu May 10 23:35:03 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 343D618063A for ; Thu, 10 May 2018 23:35:03 +0200 (CEST) Received: (qmail 40562 invoked by uid 500); 10 May 2018 21:35:02 -0000 Mailing-List: contact dev-help@atlas.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@atlas.apache.org Delivered-To: mailing list dev@atlas.apache.org Received: (qmail 40545 invoked by uid 99); 10 May 2018 21:35:01 -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, 10 May 2018 21:35:01 +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 354831A18B6; Thu, 10 May 2018 21:35:01 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.94 X-Spam-Level: X-Spam-Status: No, score=0.94 tagged_above=-999 required=6.31 tests=[HEADER_FROM_DIFFERENT_DOMAINS=0.25, HTML_MESSAGE=2, KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_MED=-2.3, T_RP_MATCHES_RCVD=-0.01] 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 Fo3e1P4VbWDy; Thu, 10 May 2018 21:34:57 +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 CC4FA5F490; Thu, 10 May 2018 21:34:56 +0000 (UTC) Received: from reviews.apache.org (unknown [10.41.0.12]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 1C544E00C6; Thu, 10 May 2018 21:34:56 +0000 (UTC) Received: from reviews-vm2.apache.org (localhost [IPv6:::1]) by reviews.apache.org (ASF Mail Server at reviews-vm2.apache.org) with ESMTP id 0736FC40228; Thu, 10 May 2018 21:34:56 +0000 (UTC) Content-Type: multipart/alternative; boundary="===============5607773460737401215==" MIME-Version: 1.0 Subject: Re: Review Request 67071: ATLAS-2649:Hive Hook should create lineage entities when storage handler mechanism to create hbase tables via hive From: Ramesh Mani To: Sharmadha Sainath , Madhan Neethiraj , Sarath Subramanian Cc: atlas , Ramesh Mani Date: Thu, 10 May 2018 21:34:56 -0000 Message-ID: <20180510213456.35332.27944@reviews-vm2.apache.org> X-ReviewBoard-URL: https://reviews.apache.org/ Auto-Submitted: auto-generated Sender: Ramesh Mani X-ReviewGroup: atlas X-Auto-Response-Suppress: DR, RN, OOF, AutoReply X-ReviewRequest-URL: https://reviews.apache.org/r/67071/ X-Sender: Ramesh Mani References: <20180510213333.35331.52052@reviews-vm2.apache.org> In-Reply-To: <20180510213333.35331.52052@reviews-vm2.apache.org> Reply-To: Ramesh Mani X-ReviewRequest-Repository: atlas --===============5607773460737401215== 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/67071/ ----------------------------------------------------------- (Updated May 10, 2018, 9:34 p.m.) Review request for atlas, Madhan Neethiraj, Sarath Subramanian, and Sharmadha Sainath. Bugs: ATLAS-2649 https://issues.apache.org/jira/browse/ATLAS-2649 Repository: atlas Description ------- ATLAS-2649:Hive Hook should create lineage entities when storage handler mechanism to create hbase tables via hive Diffs ----- addons/hive-bridge/pom.xml 0d4ab2c addons/hive-bridge/src/main/java/org/apache/atlas/hive/hook/events/BaseHiveEvent.java ca13812 addons/hive-bridge/src/main/java/org/apache/atlas/hive/hook/events/CreateTable.java 1c072e9 Diff: https://reviews.apache.org/r/67071/diff/1/ Testing ------- Verify the lineage creation for 1) Hive Managed table without namespace (default) 2) Hive Managed table with namesapce 3) Hive External table from hbase table CREATE TABLE hbase_table_emp19(id int, name string, role string) STORED BY 'org.apache.hadoop.hive.hbase.HBaseStorageHandler' WITH SERDEPROPERTIES ("hbase.columns.mapping" = ":key,cf1:name,cf1:role") TBLPROPERTIES ("hbase.table.name" = "demo:emp19"); CREATE TABLE hbase_table_emp20(id int, name string, role string) STORED BY 'org.apache.hadoop.hive.hbase.HBaseStorageHandler' WITH SERDEPROPERTIES ("hbase.columns.mapping" = ":key,cf1:name,cf1:role") TBLPROPERTIES ("hbase.table.name" = "emp20"); CREATE EXTERNAL TABLE hbase_table_empext2(id int, name string, role string) STORED BY 'org.apache.hadoop.hive.hbase.HBaseStorageHandler' WITH SERDEPROPERTIES ("hbase.columns.mapping" = ":key,cf1:name,cf1:role") TBLPROPERTIES ("hbase.table.name" = "demo:emp17"); Thanks, Ramesh Mani --===============5607773460737401215==--