atlas-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nixon Rodrigues <nixon.rodrig...@freestoneinfotech.com>
Subject Re: Review Request 49636: ATLAS-990 - Hive Import metadata script fails with auth exception.
Date Thu, 14 Jul 2016 17:05:02 GMT

-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/49636/
-----------------------------------------------------------

(Updated July 14, 2016, 5:05 p.m.)


Review request for atlas, Madhan Neethiraj, Mehul Parikh, Shwetha GS, Suma Shivaprasad, and
Hemanth Yamijala.


Changes
-------

The actaul caused of NPE exception was signer object being null in AuthenticationFilter, so
overridden the getToken method in AtlasAuthentication and verified initialization of all the
 member variables of Authentication Filter.

Upgraded hadoop auth  version to 2.7.1.

Testing done:-Verified Import Hive script in kerberos mode & Hive Data Model is imported
successfully.
              Ran Quick Start in kerberos mode.
              Tested curl commands with and without kinit.
              Tested Atlas UI with fqdn url in firefox after kinit without going through login
page.
              
              Instance http://172.22.107.229:21000/login.jsp


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 (updated)
-----

  client/src/main/java/org/apache/atlas/security/SecureClientUtils.java 1686112 
  pom.xml 88b7ee9 
  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


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message