Example usage for org.apache.hadoop.security.authorize AccessControlList addUser

List of usage examples for org.apache.hadoop.security.authorize AccessControlList addUser

Introduction

In this page you can find the example usage for org.apache.hadoop.security.authorize AccessControlList addUser.

Prototype

public void addUser(String user) 

Source Link

Document

Add user to the names of users allowed for this service.

Usage

From source file:io.hops.util.GroupMembershipService.java

License:Apache License

private AccessControlList getAdminAclList(Configuration conf) {
    AccessControlList aclList = new AccessControlList(
            conf.get(YarnConfiguration.YARN_ADMIN_ACL, YarnConfiguration.DEFAULT_YARN_ADMIN_ACL));
    aclList.addUser(daemonUser.getShortUserName());
    return aclList;
}