当前位置: 首页>>代码示例>>Java>>正文


Java ClientToAMTokenSecretManager类代码示例

本文整理汇总了Java中org.apache.hadoop.yarn.security.client.ClientToAMTokenSecretManager的典型用法代码示例。如果您正苦于以下问题:Java ClientToAMTokenSecretManager类的具体用法?Java ClientToAMTokenSecretManager怎么用?Java ClientToAMTokenSecretManager使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


ClientToAMTokenSecretManager类属于org.apache.hadoop.yarn.security.client包,在下文中一共展示了ClientToAMTokenSecretManager类的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: serviceStart

import org.apache.hadoop.yarn.security.client.ClientToAMTokenSecretManager; //导入依赖的package包/类
@Override
protected void serviceStart() throws Exception {
  Configuration conf = getConfig();

  Server server;
  try {
    secretMgr = new ClientToAMTokenSecretManager(
        this.appAttemptId, secretKey);
    server =
        new RPC.Builder(conf)
          .setProtocol(CustomProtocol.class)
          .setNumHandlers(1)
          .setSecretManager(secretMgr)
          .setInstance(this).build();
  } catch (Exception e) {
    throw new YarnRuntimeException(e);
  }
  server.start();
  this.address = NetUtils.getConnectAddress(server);
  super.serviceStart();
}
 
开发者ID:naver,项目名称:hadoop,代码行数:22,代码来源:TestClientToAMTokens.java

示例2: serviceStart

import org.apache.hadoop.yarn.security.client.ClientToAMTokenSecretManager; //导入依赖的package包/类
@Override
protected void serviceStart() throws Exception {
  Configuration conf = getConfig();

  secretManager = new ClientToAMTokenSecretManager(this.appAttemptId, secretKey);
  Server server;
  try {
    server =
        new RPC.Builder(conf).setProtocol(CustomProtocol.class)
          .setNumHandlers(1).setSecretManager(secretManager)
          .setInstance(this).build();
  } catch (Exception e) {
    throw new YarnRuntimeException(e);
  }
  server.start();
  this.address = NetUtils.getConnectAddress(server);
  super.serviceStart();
}
 
开发者ID:ict-carch,项目名称:hadoop-plus,代码行数:19,代码来源:TestClientToAMTokens.java

示例3: serviceStart

import org.apache.hadoop.yarn.security.client.ClientToAMTokenSecretManager; //导入依赖的package包/类
@Override
protected void serviceStart() throws Exception {
  Configuration conf = getConfig();

  Server server;
  try {
    server =
        new RPC.Builder(conf)
          .setProtocol(CustomProtocol.class)
          .setNumHandlers(1)
          .setSecretManager(
            new ClientToAMTokenSecretManager(this.appAttemptId, secretKey))
          .setInstance(this).build();
  } catch (Exception e) {
    throw new YarnRuntimeException(e);
  }
  server.start();
  this.address = NetUtils.getConnectAddress(server);
  super.serviceStart();
}
 
开发者ID:chendave,项目名称:hadoop-TCP,代码行数:21,代码来源:TestClientToAMTokens.java

示例4: RunningAppContext

import org.apache.hadoop.yarn.security.client.ClientToAMTokenSecretManager; //导入依赖的package包/类
public RunningAppContext(Configuration config,
    TaskAttemptFinishingMonitor taskAttemptFinishingMonitor) {
  this.conf = config;
  this.clientToAMTokenSecretManager =
      new ClientToAMTokenSecretManager(appAttemptID, null);
  this.taskAttemptFinishingMonitor = taskAttemptFinishingMonitor;
}
 
开发者ID:aliyun-beta,项目名称:aliyun-oss-hadoop-fs,代码行数:8,代码来源:MRAppMaster.java

示例5: DAGClientServer

import org.apache.hadoop.yarn.security.client.ClientToAMTokenSecretManager; //导入依赖的package包/类
public DAGClientServer(DAGClientHandler realInstance,
    ApplicationAttemptId attemptId, FileSystem stagingFs) {
  super("DAGClientRPCServer");
  this.realInstance = realInstance;
  this.secretManager = new ClientToAMTokenSecretManager(attemptId, null);
  this.stagingFs = stagingFs;
}
 
开发者ID:apache,项目名称:tez,代码行数:8,代码来源:DAGClientServer.java

示例6: RunningAppContext

import org.apache.hadoop.yarn.security.client.ClientToAMTokenSecretManager; //导入依赖的package包/类
public RunningAppContext(Configuration config) {
  this.clientToAMTokenSecretManager = new ClientToAMTokenSecretManager(appAttemptId, null);
}
 
开发者ID:Tencent,项目名称:angel,代码行数:4,代码来源:AngelApplicationMaster.java

示例7: getClientToAMTokenSecretManager

import org.apache.hadoop.yarn.security.client.ClientToAMTokenSecretManager; //导入依赖的package包/类
@Override
public ClientToAMTokenSecretManager getClientToAMTokenSecretManager() {
  return clientToAMTokenSecretManager;
}
 
开发者ID:Tencent,项目名称:angel,代码行数:5,代码来源:AngelApplicationMaster.java

示例8: getClientToAMTokenSecretManager

import org.apache.hadoop.yarn.security.client.ClientToAMTokenSecretManager; //导入依赖的package包/类
public ClientToAMTokenSecretManager getClientToAMTokenSecretManager() {
  return secretMgr;
}
 
开发者ID:naver,项目名称:hadoop,代码行数:4,代码来源:TestClientToAMTokens.java

示例9: RunningAppContext

import org.apache.hadoop.yarn.security.client.ClientToAMTokenSecretManager; //导入依赖的package包/类
public RunningAppContext(Configuration config) {
  this.conf = config;
  this.clientToAMTokenSecretManager =
      new ClientToAMTokenSecretManager(appAttemptID, null);
}
 
开发者ID:naver,项目名称:hadoop,代码行数:6,代码来源:MRAppMaster.java

示例10: getClientToAMTokenSecretManager

import org.apache.hadoop.yarn.security.client.ClientToAMTokenSecretManager; //导入依赖的package包/类
@Override
public ClientToAMTokenSecretManager getClientToAMTokenSecretManager() {
  return null;
}
 
开发者ID:naver,项目名称:hadoop,代码行数:5,代码来源:TestRuntimeEstimators.java

示例11: getClientToAMTokenSecretManager

import org.apache.hadoop.yarn.security.client.ClientToAMTokenSecretManager; //导入依赖的package包/类
public ClientToAMTokenSecretManager getClientToAMTokenSecretManager() {
  // Not implemented
  return null;
}
 
开发者ID:naver,项目名称:hadoop,代码行数:5,代码来源:MockAppContext.java

示例12: getClientToAMTokenSecretManager

import org.apache.hadoop.yarn.security.client.ClientToAMTokenSecretManager; //导入依赖的package包/类
@Override
public ClientToAMTokenSecretManager getClientToAMTokenSecretManager() {
  // Not implemented.
  return null;
}
 
开发者ID:naver,项目名称:hadoop,代码行数:6,代码来源:JobHistory.java

示例13: getClientToAMTokenSecretManager

import org.apache.hadoop.yarn.security.client.ClientToAMTokenSecretManager; //导入依赖的package包/类
public ClientToAMTokenSecretManager getClientToAMTokenSecretManager() {
  return this.secretManager;
}
 
开发者ID:ict-carch,项目名称:hadoop-plus,代码行数:4,代码来源:TestClientToAMTokens.java


注:本文中的org.apache.hadoop.yarn.security.client.ClientToAMTokenSecretManager类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。