[ https://issues.apache.org/jira/browse/ATLAS-990?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Nixon Rodrigues updated ATLAS-990: ---------------------------------- Attachment: ATLAS-990.3.patch > Hive Import metadata script fails with auth exception. > ------------------------------------------------------ > > Key: ATLAS-990 > URL: https://issues.apache.org/jira/browse/ATLAS-990 > Project: Atlas > Issue Type: Bug > Reporter: Ayub Khan > Assignee: Nixon Rodrigues > Attachments: ATLAS-990.1.patch, ATLAS-990.2.patch, ATLAS-990.3.patch > > > Exception from Logs > /usr/hdp/current/atlas-server/hook-bin/import-hive.sh > -Dsun.security.jgss.debug=true > -Djavax.security.auth.useSubjectCredsOnly=false > -Djava.security.krb5.conf=/etc/krb5.conf > -Djava.security.auth.login.config=/etc/atlas/conf/atlas_jaas.conf > > > Exception in thread "main" com.sun.jersey.api.client.ClientHandlerException: > java.io.IOException: > org.apache.hadoop.security.authentication.client.AuthenticationException: > Authentication failed, status: 401, message: Unauthorized > at > com.sun.jersey.client.urlconnection.URLConnectionClientHandler.handle(URLConnectionClientHandler.java:149) > at com.sun.jersey.api.client.Client.handle(Client.java:648) > at com.sun.jersey.api.client.WebResource.handle(WebResource.java:670) > at com.sun.jersey.api.client.WebResource.access$200(WebResource.java:74) > at > com.sun.jersey.api.client.WebResource$Builder.method(WebResource.java:623) > at > org.apache.atlas.AtlasClient.callAPIWithResource(AtlasClient.java:1132) > at org.apache.atlas.AtlasClient.callAPIWithRetries(AtlasClient.java:719) > at org.apache.atlas.AtlasClient.callAPI(AtlasClient.java:1156) > at org.apache.atlas.AtlasClient.getType(AtlasClient.java:608) > at > org.apache.atlas.hive.bridge.HiveMetaStoreBridge.registerHiveDataModel(HiveMetaStoreBridge.java:614) > at > org.apache.atlas.hive.bridge.HiveMetaStoreBridge.main(HiveMetaStoreBridge.java:664) > Caused by: java.io.IOException: > org.apache.hadoop.security.authentication.client.AuthenticationException: > Authentication failed, status: 401, message: Unauthorized > at > org.apache.atlas.security.SecureClientUtils$1$1.run(SecureClientUtils.java:105) > at > org.apache.atlas.security.SecureClientUtils$1$1.run(SecureClientUtils.java:98) > at java.security.AccessController.doPrivileged(Native Method) > at javax.security.auth.Subject.doAs(Subject.java:422) > at > org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1724) > at > org.apache.atlas.security.SecureClientUtils$1.getHttpURLConnection(SecureClientUtils.java:98) > at > com.sun.jersey.client.urlconnection.URLConnectionClientHandler._invoke(URLConnectionClientHandler.java:159) > at > com.sun.jersey.client.urlconnection.URLConnectionClientHandler.handle(URLConnectionClientHandler.java:147) > ... 10 more > Caused by: > org.apache.hadoop.security.authentication.client.AuthenticationException: > Authentication failed, status: 401, message: Unauthorized > at > org.apache.hadoop.security.authentication.client.AuthenticatedURL.extractToken(AuthenticatedURL.java:274) > at > org.apache.hadoop.security.authentication.client.PseudoAuthenticator.authenticate(PseudoAuthenticator.java:77) > at > org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticator.authenticate(DelegationTokenAuthenticator.java:131) > at > org.apache.hadoop.security.authentication.client.AuthenticatedURL.openConnection(AuthenticatedURL.java:215) > at > org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL.openConnection(DelegationTokenAuthenticatedURL.java:322) > at > org.apache.atlas.security.SecureClientUtils$1$1.run(SecureClientUtils.java:102) > ... 17 more -- This message was sent by Atlassian JIRA (v6.3.4#6332)