Examples of RefreshUserToGroupMappingsProtocol


Examples of org.apache.hadoop.security.RefreshUserToGroupMappingsProtocol

  public int refreshUserToGroupsMappings() throws IOException {
    // Get the current configuration
    Configuration conf = getConf();
   
    // Create the client
    RefreshUserToGroupMappingsProtocol refreshProtocol =
      (RefreshUserToGroupMappingsProtocol)
      RPC.getProxy(RefreshUserToGroupMappingsProtocol.class,
                   RefreshUserToGroupMappingsProtocol.versionID,
                   NameNode.getAddress(conf), getUGI(), conf,
                   NetUtils.getSocketFactory(conf,
                                             RefreshUserToGroupMappingsProtocol.class));
   
    // Refresh the user-to-groups mappings
    refreshProtocol.refreshUserToGroupsMappings(conf);
   
    return 0;
  }
View Full Code Here

Examples of org.apache.hadoop.security.RefreshUserToGroupMappingsProtocol

   */
  private int refreshUserToGroupsMappings() throws IOException {
    // Get the current configuration
    Configuration conf = getConf();
    // Create the client
    RefreshUserToGroupMappingsProtocol refreshProtocol =
      (RefreshUserToGroupMappingsProtocol)
      RPC.getProxy(RefreshUserToGroupMappingsProtocol.class,
                   RefreshUserToGroupMappingsProtocol.versionID,
                   JobTracker.getAddress(conf), getUGI(conf), conf,
                   NetUtils.getSocketFactory(conf,
                                             RefreshUserToGroupMappingsProtocol.class));
   
    // Refresh the user-to-groups mappings
    refreshProtocol.refreshUserToGroupsMappings(conf);
   
    return 0;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.