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

Ayush Saxena edited comment on HDFS-14447 at 6/4/19 6:31 PM:
-------------------------------------------------------------

Makes sense to me to implement.
Well merging all the results for NN is also straight forward :
In RouterRpc :

{code:java}
  @Override
  public String[] getGroupsForUser(String user) throws IOException {
    checkOperation(OperationCategory.READ);
    RemoteMethod method = new RemoteMethod(GetUserMappingsProtocol.class,
        "getGroupsForUser", new Class<?>[] {String.class}, user);
    Set<FederationNamespaceInfo> nss = namenodeResolver.getNamespaces();
    Map<FederationNamespaceInfo, String[]> results =
        rpcClient.invokeConcurrent(nss, method, String[].class);
    return merge(results, String.class);
  }
{code}
We may do something like this?
 It will also require to add a new method in {{ConnectionPool.java}} similar to 
{{newClientConnection()}} and {{newNamenodeConnection()}}



was (Author: ayushtkn):
Makes sense to me to implement.
Well merging all the results for NN is also straight forward :
In RouterRpc :

{code:java}
  @Override
  public String[] getGroupsForUser(String user) throws IOException {
    checkOperation(OperationCategory.WRITE);
    RemoteMethod method = new RemoteMethod(GetUserMappingsProtocol.class,
        "getGroupsForUser", new Class<?>[] {String.class}, user);
    Set<FederationNamespaceInfo> nss = namenodeResolver.getNamespaces();
    Map<FederationNamespaceInfo, String[]> results =
        rpcClient.invokeConcurrent(nss, method, String[].class);
    return merge(results, String.class);
  }
{code}
We may do something like this?
 It will also require to add a new method in {{ConnectionPool.java}} similar to 
{{newClientConnection()}} and {{newNamenodeConnection()}}


> RBF: Router should support RefreshUserMappingsProtocol
> ------------------------------------------------------
>
>                 Key: HDFS-14447
>                 URL: https://issues.apache.org/jira/browse/HDFS-14447
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>          Components: rbf
>    Affects Versions: 3.1.0
>            Reporter: Shen Yinjie
>            Assignee: Shen Yinjie
>            Priority: Major
>             Fix For: HDFS-13891
>
>         Attachments: HDFS-14447-HDFS-13891.01.patch, 
> HDFS-14447-HDFS-13891.02.patch, HDFS-14447-HDFS-13891.03.patch, 
> HDFS-14447-HDFS-13891.04.patch, HDFS-14447-HDFS-13891.05.patch, 
> HDFS-14447-HDFS-13891.06.patch, HDFS-14447-HDFS-13891.07.patch, 
> HDFS-14447-HDFS-13891.08.patch, HDFS-14447-HDFS-13891.09.patch, error.png
>
>
> HDFS with RBF
> We configure hadoop.proxyuser.xx.yy ,then execute hdfs dfsadmin 
> -Dfs.defaultFS=hdfs://router-fed -refreshSuperUserGroupsConfiguration,
>  it throws "Unknown protocol: ...RefreshUserMappingProtocol".
> RouterAdminServer should support RefreshUserMappingsProtocol , or a proxyuser 
> client would be refused to impersonate.As shown in the screenshot



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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to