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

CR Hota commented on HDFS-14051:
--------------------------------

[~elgoiri]

Please take a look at the patch. This patch allows to pass a keytab while 
initializing webhdfs. Once we have kerberos patch ready, I can add that in 
routerhttpserver instead of "null" being passed as the keytab.

The failed unit test succeeded in my local set-up. Seems like a transient 
issue. 

 
{code:java}
[INFO] -------------------------------------------------------

[INFO]  T E S T S

[INFO] -------------------------------------------------------

[INFO] Running org.apache.hadoop.hdfs.TestEncryptionZonesWithKMS

[INFO] Tests run: 45, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 71.431 
s - in org.apache.hadoop.hdfs.TestEncryptionZonesWithKMS

[INFO] 

[INFO] Results:

[INFO] 

[INFO] Tests run: 45, Failures: 0, Errors: 0, Skipped: 0

[INFO]

{code}

> Refactor NameNodeHttpServer#initWebHdfs to specify local keytab
> ---------------------------------------------------------------
>
>                 Key: HDFS-14051
>                 URL: https://issues.apache.org/jira/browse/HDFS-14051
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>            Reporter: Íñigo Goiri
>            Assignee: CR Hota
>            Priority: Major
>         Attachments: HDFS-14051.0.patch
>
>
> We use {{NameNodeHttpServer#initWebHdfs}} from {{RouterHttpServer}}.
> However, this relies on {{NameNodeHttpServer#getAuthFilterParams()}} which 
> uses:
> {code}
>     String httpKeytab = conf.get(DFSUtil.getSpnegoKeytabKey(conf,
>         DFSConfigKeys.DFS_NAMENODE_KEYTAB_FILE_KEY));
> {code}
> We should refactor this to be able to specify the keytab file.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org

Reply via email to