List of usage examples for org.apache.hadoop.yarn.conf YarnConfiguration YARN_SITE_CONFIGURATION_FILE
String YARN_SITE_CONFIGURATION_FILE
To view the source code for org.apache.hadoop.yarn.conf YarnConfiguration YARN_SITE_CONFIGURATION_FILE.
Click Source Link
From source file:io.hops.util.GroupMembershipService.java
License:Apache License
private RefreshAdminAclsResponse refreshAdminAcls(boolean checkRMHAState) throws YarnException, IOException { String argName = "refreshAdminAcls"; UserGroupInformation user = checkAcls(argName); if (checkRMHAState) { checkRMStatus(user.getShortUserName(), argName, "refresh Admin ACLs."); }// w w w . j av a2s.com Configuration conf = getConfiguration(new Configuration(false), YarnConfiguration.YARN_SITE_CONFIGURATION_FILE); authorizer.setAdmins(getAdminAclList(conf), UserGroupInformation.getCurrentUser()); RMAuditLogger.logSuccess(user.getShortUserName(), argName, "AdminService"); return recordFactory.newRecordInstance(RefreshAdminAclsResponse.class); }