Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id B8BC5200B4B for ; Thu, 7 Jul 2016 08:04:58 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id B7549160A73; Thu, 7 Jul 2016 06:04:58 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 0D31D160A64 for ; Thu, 7 Jul 2016 08:04:57 +0200 (CEST) Received: (qmail 95826 invoked by uid 500); 7 Jul 2016 06:04:57 -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 95814 invoked by uid 99); 7 Jul 2016 06:04:57 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Jul 2016 06:04:56 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 8BEFDC1B2C for ; Thu, 7 Jul 2016 06:04:56 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -1.307 X-Spam-Level: X-Spam-Status: No, score=-1.307 tagged_above=-999 required=6.31 tests=[HTML_MESSAGE=2, KAM_BADIPHTTP=2, KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-1.287] autolearn=disabled Received: from mx2-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id RctgUYgZG0hd for ; Thu, 7 Jul 2016 06:04:55 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx2-lw-eu.apache.org (ASF Mail Server at mx2-lw-eu.apache.org) with SMTP id A0BA25F2F0 for ; Thu, 7 Jul 2016 06:04:54 +0000 (UTC) Received: (qmail 95799 invoked by uid 99); 7 Jul 2016 06:04:53 -0000 Received: from reviews-vm.apache.org (HELO reviews.apache.org) (140.211.11.40) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Jul 2016 06:04:53 +0000 Received: from reviews.apache.org (localhost [127.0.0.1]) by reviews.apache.org (Postfix) with ESMTP id 7CDF22B7F40; Thu, 7 Jul 2016 06:04:52 +0000 (UTC) Content-Type: multipart/alternative; boundary="===============1826396774262491386==" MIME-Version: 1.0 Subject: Re: Review Request 49636: ATLAS-990 - Hive Import metadata script fails with auth exception. From: Madhan Neethiraj To: Hemanth Yamijala , Mehul Parikh , Madhan Neethiraj , Shwetha GS Cc: atlas , Nixon Rodrigues Date: Thu, 07 Jul 2016 06:04:52 -0000 Message-ID: <20160707060452.17622.9341@reviews.apache.org> X-ReviewBoard-URL: https://reviews.apache.org/ Auto-Submitted: auto-generated Sender: Madhan Neethiraj X-ReviewGroup: atlas X-Auto-Response-Suppress: DR, RN, OOF, AutoReply X-ReviewRequest-URL: https://reviews.apache.org/r/49636/ X-Sender: Madhan Neethiraj X-ReviewBoard-ShipIt: 1 References: <20160705142523.17622.84729@reviews.apache.org> In-Reply-To: <20160705142523.17622.84729@reviews.apache.org> Reply-To: Madhan Neethiraj X-ReviewRequest-Repository: atlas archived-at: Thu, 07 Jul 2016 06:04:58 -0000 --===============1826396774262491386== 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/49636/#review141134 ----------------------------------------------------------- Fix it, then Ship it! webapp/src/main/java/org/apache/atlas/web/filters/AtlasAuthenticationFilter.java (line 516) Remove this and other info logs in the method. - Madhan Neethiraj On July 5, 2016, 2:25 p.m., Nixon Rodrigues wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/49636/ > ----------------------------------------------------------- > > (Updated July 5, 2016, 2:25 p.m.) > > > Review request for atlas, Madhan Neethiraj, Mehul Parikh, Shwetha GS, Suma Shivaprasad, and Hemanth Yamijala. > > > Bugs: ATLAS-990 > https://issues.apache.org/jira/browse/ATLAS-990 > > > Repository: atlas > > > Description > ------- > > Changes include fix for authentication failing while hive import script. > > The getToken method was throwing nullpointer exception, so overriden the getToken method and added NPE check do fix it. > > 2016-07-04 14:13:58,946 ERROR - [qtp817406040-17:] ~ Exception in AtlasAuthenticationFilter (AtlasAuthenticationFilter:304) > java.lang.NullPointerException > at org.apache.hadoop.security.authentication.server.AuthenticationFilter.getToken(AuthenticationFilter.java:480) > at org.apache.atlas.web.filters.AtlasAuthenticationFilter.doKerberosAuth(AtlasAuthenticationFilter.java:339) > at org.apache.atlas.web.filters.AtlasAuthenticationFilter.doFilter(AtlasAuthenticationFilter.java:299) > > > Diffs > ----- > > client/src/main/java/org/apache/atlas/security/SecureClientUtils.java 1686112 > webapp/src/main/java/org/apache/atlas/web/filters/AtlasAuthenticationFilter.java 1b70e9b > > Diff: https://reviews.apache.org/r/49636/diff/ > > > Testing > ------- > > Ran Quick start after kinit and worked fine and example data was populated. > Ran import hive script after kinit and hive tables schema details was seen. > Browsed Atlas UI with fqdn url in firefox after kinit without going through login page. > > Instance http://172.22.107.229:8080/ > > > Thanks, > > Nixon Rodrigues > > --===============1826396774262491386==--