hadoop-yarn-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Billie Rinaldi (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (YARN-9334) YARN Service Client does not work with SPNEGO when knox is configured
Date Thu, 28 Feb 2019 03:34:00 GMT

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

Billie Rinaldi commented on YARN-9334:
--------------------------------------

Thanks for the review, [~eyang]! Any objections for me to backport this to 3.2 and 3.1 as
well?

> YARN Service Client does not work with SPNEGO when knox is configured
> ---------------------------------------------------------------------
>
>                 Key: YARN-9334
>                 URL: https://issues.apache.org/jira/browse/YARN-9334
>             Project: Hadoop YARN
>          Issue Type: Bug
>          Components: yarn-native-services
>    Affects Versions: 3.1.0, 3.2.0
>            Reporter: Tarun Parimi
>            Assignee: Billie Rinaldi
>            Priority: Major
>             Fix For: 3.3.0
>
>         Attachments: YARN-9334.01.patch
>
>
> When knox is configured, the configuration hadoop.http.authentication.type is set to
org.apache.hadoop.security.authentication.server.JWTRedirectAuthenticationHandler instead
of kerberos.
> We have the following check in ApiServiceClient#getApiClient for kerberos.
> {code:java}
> if (conf.get("hadoop.http.authentication.type").equals("kerberos")) {
>       try {
>         URI url = new URI(requestPath);
>         String challenge = YarnClientUtils.generateToken(url.getHost());
>         builder.header(HttpHeaders.AUTHORIZATION, "Negotiate " + challenge);
>       } catch (Exception e) {
>         throw new IOException(e);
>       }
>     }
> {code}
> So we always get 401 error since there is no auth handled for knox.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: yarn-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: yarn-issues-help@hadoop.apache.org


Mime
View raw message