hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steve Loughran (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HADOOP-12906) AuthenticatedURL translates a 404/Not Found into an AuthenticationException. It isn't
Date Tue, 08 Mar 2016 19:41:40 GMT

    [ https://issues.apache.org/jira/browse/HADOOP-12906?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15185615#comment-15185615
] 

Steve Loughran commented on HADOOP-12906:
-----------------------------------------

Stack
{code}
  org.apache.spark.deploy.history.yarn.rest.UnauthorizedRequestException: Authentication failure
as stevel (auth:SIMPLE) against http://localhost:60531/api/v1/applications/application_1111_0000/jobs:
org.apache.hadoop.security.authentication.client.AuthenticationException: Authentication failed,
status: 404, message: Not Found
  at org.apache.spark.deploy.history.yarn.rest.SpnegoUrlConnector$$anonfun$1.apply(SpnegoUrlConnector.scala:131)
  at org.apache.spark.deploy.history.yarn.rest.SpnegoUrlConnector$$anonfun$1.apply(SpnegoUrlConnector.scala:124)
  at org.apache.spark.deploy.history.yarn.rest.PrivilegedFunction.run(PrivilegedFunction.scala:31)
  at java.security.AccessController.doPrivileged(Native Method)
  at javax.security.auth.Subject.doAs(Subject.java:415)
  at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1708)
  at org.apache.spark.deploy.history.yarn.rest.SpnegoUrlConnector.openConnection(SpnegoUrlConnector.scala:123)
  at org.apache.spark.deploy.history.yarn.rest.SpnegoUrlConnector.getHttpURLConnection(SpnegoUrlConnector.scala:108)
  at org.apache.spark.deploy.history.yarn.rest.SpnegoUrlConnector.execHttpOperation(SpnegoUrlConnector.scala:194)
  at org.apache.spark.deploy.history.yarn.integration.AbstractHistoryIntegrationTests.getJsonResource(AbstractHistoryIntegrationTests.scala:474)
  ...
  Cause: org.apache.hadoop.security.authentication.client.AuthenticationException: Authentication
failed, status: 404, message: Not Found
  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.authentication.client.KerberosAuthenticator.authenticate(KerberosAuthenticator.java:212)
  at org.apache.hadoop.security.authentication.client.AuthenticatedURL.openConnection(AuthenticatedURL.java:215)
  at org.apache.spark.deploy.history.yarn.rest.SpnegoUrlConnector$$anonfun$1.apply(SpnegoUrlConnector.scala:127)
  at org.apache.spark.deploy.history.yarn.rest.SpnegoUrlConnector$$anonfun$1.apply(SpnegoUrlConnector.scala:124)
  at org.apache.spark.deploy.history.yarn.rest.PrivilegedFunction.run(PrivilegedFunction.scala:31)
  at java.security.AccessController.doPrivileged(Native Method)
  at javax.security.auth.Subject.doAs(Subject.java:415)
  at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1708)
  ...
{code}


> AuthenticatedURL translates a 404/Not Found into an AuthenticationException. It isn't
> -------------------------------------------------------------------------------------
>
>                 Key: HADOOP-12906
>                 URL: https://issues.apache.org/jira/browse/HADOOP-12906
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: io, security
>    Affects Versions: 2.8.0
>            Reporter: Steve Loughran
>
> If you ask for a URL that isn't there, {{AuthenticatedURL}} raises an exception saying
you are unauthed. 
> It's not checking the response code; 404 is an error all of its own, which can be uprated
as a FileNotFound Exception.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message