本文整理汇总了Java中org.apache.hadoop.yarn.server.api.protocolrecords.RefreshAdminAclsResponse类的典型用法代码示例。如果您正苦于以下问题:Java RefreshAdminAclsResponse类的具体用法?Java RefreshAdminAclsResponse怎么用?Java RefreshAdminAclsResponse使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
RefreshAdminAclsResponse类属于org.apache.hadoop.yarn.server.api.protocolrecords包,在下文中一共展示了RefreshAdminAclsResponse类的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: refreshAdminAcls
import org.apache.hadoop.yarn.server.api.protocolrecords.RefreshAdminAclsResponse; //导入依赖的package包/类
private RefreshAdminAclsResponse refreshAdminAcls(boolean checkRMHAState)
throws YarnException, IOException {
String argName = "refreshAdminAcls";
UserGroupInformation user = checkAcls(argName);
if (checkRMHAState) {
checkRMStatus(user.getShortUserName(), argName, "refresh Admin ACLs.");
}
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);
}
开发者ID:naver,项目名称:hadoop,代码行数:19,代码来源:AdminService.java
示例2: refreshAdminAcls
import org.apache.hadoop.yarn.server.api.protocolrecords.RefreshAdminAclsResponse; //导入依赖的package包/类
private RefreshAdminAclsResponse refreshAdminAcls(boolean checkRMHAState)
throws YarnException, IOException {
String argName = "refreshAdminAcls";
UserGroupInformation user = checkAcls(argName);
if (checkRMHAState && !isRMActive()) {
RMAuditLogger.logFailure(user.getShortUserName(), argName,
adminAcl.toString(), "AdminService",
"ResourceManager is not active. Can not refresh user-groups.");
throwStandbyException();
}
Configuration conf =
getConfiguration(new Configuration(false),
YarnConfiguration.YARN_SITE_CONFIGURATION_FILE);
adminAcl = new AccessControlList(conf.get(
YarnConfiguration.YARN_ADMIN_ACL,
YarnConfiguration.DEFAULT_YARN_ADMIN_ACL));
RMAuditLogger.logSuccess(user.getShortUserName(), argName,
"AdminService");
return recordFactory.newRecordInstance(RefreshAdminAclsResponse.class);
}
开发者ID:Nextzero,项目名称:hadoop-2.6.0-cdh5.4.3,代码行数:23,代码来源:AdminService.java
示例3: refreshAdminAcls
import org.apache.hadoop.yarn.server.api.protocolrecords.RefreshAdminAclsResponse; //导入依赖的package包/类
private RefreshAdminAclsResponse refreshAdminAcls(boolean checkRMHAState)
throws YarnException, IOException {
final String operation = "refreshAdminAcls";
UserGroupInformation user = checkAcls(operation);
if (checkRMHAState) {
checkRMStatus(user.getShortUserName(), operation, "refresh Admin ACLs.");
}
Configuration conf =
getConfiguration(new Configuration(false),
YarnConfiguration.YARN_SITE_CONFIGURATION_FILE);
authorizer.setAdmins(getAdminAclList(conf), UserGroupInformation
.getCurrentUser());
RMAuditLogger.logSuccess(user.getShortUserName(), operation,
"AdminService");
return recordFactory.newRecordInstance(RefreshAdminAclsResponse.class);
}
开发者ID:hopshadoop,项目名称:hops,代码行数:19,代码来源:AdminService.java
示例4: refreshAdminAcls
import org.apache.hadoop.yarn.server.api.protocolrecords.RefreshAdminAclsResponse; //导入依赖的package包/类
@Override
public RefreshAdminAclsResponse refreshAdminAcls(
RefreshAdminAclsRequest request) throws YarnException, IOException {
RefreshAdminAclsRequestProto requestProto =
((RefreshAdminAclsRequestPBImpl)request).getProto();
try {
return new RefreshAdminAclsResponsePBImpl(
proxy.refreshAdminAcls(null, requestProto));
} catch (ServiceException e) {
RPCUtil.unwrapAndThrowException(e);
return null;
}
}
开发者ID:naver,项目名称:hadoop,代码行数:14,代码来源:ResourceManagerAdministrationProtocolPBClientImpl.java
示例5: testRefreshAdminAcls
import org.apache.hadoop.yarn.server.api.protocolrecords.RefreshAdminAclsResponse; //导入依赖的package包/类
/**
* Test method refreshAdminAcls. This method is present and it works.
*/
@Test
public void testRefreshAdminAcls() throws Exception {
RefreshAdminAclsRequest request = recordFactory
.newRecordInstance(RefreshAdminAclsRequest.class);
RefreshAdminAclsResponse response = client.refreshAdminAcls(request);
assertNotNull(response);
}
开发者ID:naver,项目名称:hadoop,代码行数:12,代码来源:TestResourceManagerAdministrationProtocolPBClientImpl.java
示例6: refreshAdminAcls
import org.apache.hadoop.yarn.server.api.protocolrecords.RefreshAdminAclsResponse; //导入依赖的package包/类
@Override
public RefreshAdminAclsResponse refreshAdminAcls(
RefreshAdminAclsRequest request) throws YarnException {
UserGroupInformation user = checkAcls("refreshAdminAcls");
Configuration conf = new Configuration();
adminAcl = new AccessControlList(conf.get(
YarnConfiguration.YARN_ADMIN_ACL,
YarnConfiguration.DEFAULT_YARN_ADMIN_ACL));
RMAuditLogger.logSuccess(user.getShortUserName(), "refreshAdminAcls",
"AdminService");
return recordFactory.newRecordInstance(RefreshAdminAclsResponse.class);
}
开发者ID:ict-carch,项目名称:hadoop-plus,代码行数:15,代码来源:AdminService.java
示例7: refreshAdminAcls
import org.apache.hadoop.yarn.server.api.protocolrecords.RefreshAdminAclsResponse; //导入依赖的package包/类
@Public
@Stable
@Idempotent
public RefreshAdminAclsResponse refreshAdminAcls(
RefreshAdminAclsRequest request)
throws YarnException, IOException;
开发者ID:naver,项目名称:hadoop,代码行数:7,代码来源:ResourceManagerAdministrationProtocol.java
示例8: refreshAdminAcls
import org.apache.hadoop.yarn.server.api.protocolrecords.RefreshAdminAclsResponse; //导入依赖的package包/类
@Private
@Idempotent
public RefreshAdminAclsResponse refreshAdminAcls(
RefreshAdminAclsRequest request)
throws YarnException, IOException;
开发者ID:aliyun-beta,项目名称:aliyun-oss-hadoop-fs,代码行数:6,代码来源:ResourceManagerAdministrationProtocol.java
示例9: refreshAdminAcls
import org.apache.hadoop.yarn.server.api.protocolrecords.RefreshAdminAclsResponse; //导入依赖的package包/类
@Public
@Stable
public RefreshAdminAclsResponse refreshAdminAcls(
RefreshAdminAclsRequest request)
throws YarnException, IOException;
开发者ID:ict-carch,项目名称:hadoop-plus,代码行数:6,代码来源:ResourceManagerAdministrationProtocol.java
注:本文中的org.apache.hadoop.yarn.server.api.protocolrecords.RefreshAdminAclsResponse类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论