[
https://issues.apache.org/jira/browse/HDFS-17452?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17874497#comment-17874497
]
ASF GitHub Bot commented on HDFS-17452:
---------------------------------------
AnanyaSingh2121 commented on code in PR #6982:
URL: https://github.com/apache/hadoop/pull/6982#discussion_r1720770936
##########
hadoop-hdfs-project/hadoop-hdfs-rbf/src/main/java/org/apache/hadoop/hdfs/tools/federation/RouterAdmin.java:
##########
@@ -1364,7 +1364,12 @@ public int genericRefresh(String[] argv, int i) throws
IOException {
* @throws IOException if the operation was not successful.
*/
private int refreshCallQueue() throws IOException {
+ // for security authorization
+ // server principal for this call
+ // should be Routers's one.
Configuration conf = getConf();
+ conf.set(CommonConfigurationKeys.HADOOP_SECURITY_SERVICE_USER_NAME_KEY,
Review Comment:
It is set when the refreshcallqueue is executed. For reference in DFSAdmin
we handle it this way
https://github.com/apache/hadoop/blob/b5f88990b721aebe84d4bbf97ed2fdfbd0f42854/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/tools/DFSAdmin.java#L1875
Also the key is defined in
https://github.com/apache/hadoop/blob/b5f88990b721aebe84d4bbf97ed2fdfbd0f42854/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/CommonConfigurationKeysPublic.java#L668
> DfsRouterAdmin RefreshCallQueue fails when authorization is enabled
> -------------------------------------------------------------------
>
> Key: HDFS-17452
> URL: https://issues.apache.org/jira/browse/HDFS-17452
> Project: Hadoop HDFS
> Issue Type: Bug
> Components: ipc
> Affects Versions: 3.3.6
> Reporter: Ananya Singh
> Assignee: Ananya Singh
> Priority: Major
> Labels: pull-request-available
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]