本文整理汇总了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();
}
示例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();
}
示例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();
}
示例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;
}
示例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;
}
示例6: RunningAppContext
import org.apache.hadoop.yarn.security.client.ClientToAMTokenSecretManager; //导入依赖的package包/类
public RunningAppContext(Configuration config) {
this.clientToAMTokenSecretManager = new ClientToAMTokenSecretManager(appAttemptId, null);
}
示例7: getClientToAMTokenSecretManager
import org.apache.hadoop.yarn.security.client.ClientToAMTokenSecretManager; //导入依赖的package包/类
@Override
public ClientToAMTokenSecretManager getClientToAMTokenSecretManager() {
return clientToAMTokenSecretManager;
}
示例8: getClientToAMTokenSecretManager
import org.apache.hadoop.yarn.security.client.ClientToAMTokenSecretManager; //导入依赖的package包/类
public ClientToAMTokenSecretManager getClientToAMTokenSecretManager() {
return secretMgr;
}
示例9: RunningAppContext
import org.apache.hadoop.yarn.security.client.ClientToAMTokenSecretManager; //导入依赖的package包/类
public RunningAppContext(Configuration config) {
this.conf = config;
this.clientToAMTokenSecretManager =
new ClientToAMTokenSecretManager(appAttemptID, null);
}
示例10: getClientToAMTokenSecretManager
import org.apache.hadoop.yarn.security.client.ClientToAMTokenSecretManager; //导入依赖的package包/类
@Override
public ClientToAMTokenSecretManager getClientToAMTokenSecretManager() {
return null;
}
示例11: getClientToAMTokenSecretManager
import org.apache.hadoop.yarn.security.client.ClientToAMTokenSecretManager; //导入依赖的package包/类
public ClientToAMTokenSecretManager getClientToAMTokenSecretManager() {
// Not implemented
return null;
}
示例12: getClientToAMTokenSecretManager
import org.apache.hadoop.yarn.security.client.ClientToAMTokenSecretManager; //导入依赖的package包/类
@Override
public ClientToAMTokenSecretManager getClientToAMTokenSecretManager() {
// Not implemented.
return null;
}
示例13: getClientToAMTokenSecretManager
import org.apache.hadoop.yarn.security.client.ClientToAMTokenSecretManager; //导入依赖的package包/类
public ClientToAMTokenSecretManager getClientToAMTokenSecretManager() {
return this.secretManager;
}