org.apache.hadoop.mapred.QueueManager.addToSet()方法的使用及代码示例

x33g5p2x  于2022-01-28 转载在 其他  
字(1.2k)|赞(0)|评价(0)|浏览(64)

本文整理了Java中org.apache.hadoop.mapred.QueueManager.addToSet方法的一些代码示例,展示了QueueManager.addToSet的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。QueueManager.addToSet方法的具体详情如下:
包路径:org.apache.hadoop.mapred.QueueManager
类名称:QueueManager
方法名:addToSet

QueueManager.addToSet介绍

暂无

代码示例

代码示例来源:origin: com.facebook.hadoop/hadoop-core

private void initialize(Configuration conf) {
 aclsEnabled = conf.getBoolean("mapred.acls.enabled", false);
 String[] queues = conf.getStrings("mapred.queue.names", 
   new String[] {JobConf.DEFAULT_QUEUE_NAME});
 addToSet(queueNames, queues);
 aclsMap = getQueueAcls(conf);
}

代码示例来源:origin: org.jvnet.hudson.hadoop/hadoop-core

private void initialize(Configuration conf) {
 aclsEnabled = conf.getBoolean("mapred.acls.enabled", false);
 String[] queues = conf.getStrings("mapred.queue.names", 
                new String[] {JobConf.DEFAULT_QUEUE_NAME});
 addToSet(queueNames, queues);
 
 // for every queue, and every operation, get the ACL
 // if any is specified and store in aclsMap.
 for (String queue : queues) {
  for (QueueOperation oper : QueueOperation.values()) {
   String key = toFullPropertyName(queue, oper.getAclName());
   String aclString = conf.get(key, "*");
   aclsMap.put(key, new ACL(aclString));
  }
 }
}

相关文章