Tabnine Logo
org.apache.hadoop.yarn.server.resourcemanager
Code IndexAdd Tabnine to your IDE (free)

How to use org.apache.hadoop.yarn.server.resourcemanager

Best Java code snippets using org.apache.hadoop.yarn.server.resourcemanager (Showing top 20 results out of 315)

origin: org.apache.hadoop/hadoop-yarn-server-resourcemanager

 @Override
 public RenewDelegationTokenResponse run() throws YarnException {
  return rm.getClientRMService().renewDelegationToken(req);
 }
});
origin: org.apache.hadoop/hadoop-yarn-server-resourcemanager

 @Override
 public CancelDelegationTokenResponse run()
   throws IOException, YarnException {
  return rm.getClientRMService().cancelDelegationToken(req);
 }
});
origin: org.apache.hadoop/hadoop-yarn-server-resourcemanager

protected ClientRMService createClientRMService() {
 return new ClientRMService(this.rmContext, scheduler, this.rmAppManager,
   this.applicationACLsManager, this.queueACLsManager,
   this.rmContext.getRMDelegationTokenSecretManager());
}
origin: org.apache.hadoop/hadoop-yarn-server-resourcemanager

 protected ClientRMService createClientRMService() {
  return new ClientRMService(this.rmContext, scheduler,
    this.rmAppManager, this.applicationACLsManager, this.queueACLsManager,
    this.getRMContext().getRMDelegationTokenSecretManager());
 }
};
origin: org.apache.hadoop/hadoop-yarn-server-resourcemanager

public MockNM registerNode(String nodeIdStr, int memory, int vCores)
  throws Exception {
 MockNM nm =
   new MockNM(nodeIdStr, memory, vCores, getResourceTrackerService());
 nm.registerNode();
 drainEventsImplicitly();
 return nm;
}

origin: org.apache.hadoop/hadoop-yarn-server-resourcemanager

 protected ClientRMService createClientRMService() {
  return new ClientRMService(this.rmContext, scheduler,
    this.rmAppManager, this.applicationACLsManager,
    this.queueACLsManager,
    this.getRMContext().getRMDelegationTokenSecretManager());
 };
};
origin: org.apache.hadoop/hadoop-yarn-server-resourcemanager

 protected ClientRMService createClientRMService() {
  return new ClientRMService(this.rmContext, scheduler, this.rmAppManager,
    this.applicationACLsManager, this.queueACLsManager,
    this.getRMContext().getRMDelegationTokenSecretManager());
 }
};
origin: org.apache.hadoop/hadoop-yarn-server-resourcemanager

 protected ClientRMService createClientRMService() {
  return new ClientRMService(this.rmContext, scheduler,
    this.rmAppManager, this.applicationACLsManager, this.queueACLsManager,
    this.getRMContext().getRMDelegationTokenSecretManager());
 };
};
origin: org.apache.hadoop/hadoop-yarn-server-resourcemanager

 protected ClientRMService createClientRMService() {
  return new ClientRMService(this.rmContext, scheduler, this.rmAppManager,
    this.applicationACLsManager, this.queueACLsManager,
    this.getRMContext().getRMDelegationTokenSecretManager());
 }
};
origin: org.apache.hadoop/hadoop-yarn-server-resourcemanager

protected ClientRMService createClientRMService() {
 return new ClientRMService(getRMContext(), this.scheduler,
  this.rmAppManager, this.applicationACLsManager,
  this.queueACLsManager, getRMContext()
     .getRMDelegationTokenSecretManager());
}
origin: org.apache.hadoop/hadoop-yarn-server-resourcemanager

 protected ClientRMService createClientRMService() {
  return new ClientRMService(this.rmContext, scheduler,
    this.rmAppManager, this.applicationACLsManager,
    this.queueACLsManager, this.getRMContext()
      .getRMDelegationTokenSecretManager());
 };
};
origin: org.apache.hadoop/hadoop-yarn-server-resourcemanager

 protected ClientRMService createClientRMService() {
  return new ClientRMService(this.rmContext, scheduler, this.rmAppManager,
    this.applicationACLsManager, this.queueACLsManager,
    this.getRMContext().getRMDelegationTokenSecretManager());
 };
};
origin: org.apache.hadoop/hadoop-yarn-server-resourcemanager

private void syncNodeLost(MockNM nm) throws Exception {
 rm.sendNodeStarted(nm);
 rm.waitForState(nm.getNodeId(), NodeState.RUNNING);
 rm.sendNodeLost(nm);
 rm.drainEvents();
}
origin: org.apache.hadoop/hadoop-yarn-server-resourcemanager

private MockAM launchAndFailAM(RMApp app, MockRM rm, MockNM nm)
  throws Exception {
 MockAM am = launchAM(app, rm, nm);
 nm.nodeHeartbeat(am.getApplicationAttemptId(), 1, ContainerState.COMPLETE);
 rm.waitForState(am.getApplicationAttemptId(), RMAppAttemptState.FAILED);
 return am;
}
origin: org.apache.hadoop/hadoop-yarn-server-resourcemanager

 @Override
 protected ClientRMService createClientRMService() {
  return new MyClientRMService(this.rmContext, this.scheduler,
    this.rmAppManager, this.applicationACLsManager,
    this.queueACLsManager, getRMContext().getRMDelegationTokenSecretManager());
 }
};
origin: org.apache.hadoop/hadoop-yarn-server-resourcemanager

private void syncNodeGracefulDecommission(
  MockNM nm, int timeout) throws Exception {
 rm.sendNodeGracefulDecommission(nm, timeout);
 rm.waitForState(nm.getNodeId(), NodeState.DECOMMISSIONING);
 rm.drainEvents();
}
origin: uber/AthenaX

private YarnClusterConfiguration prepareYarnCluster() throws IOException, URISyntaxException {
 yarnCluster.init(yarnConf);
 yarnCluster.start();
 yarnConf.set(RM_ADDRESS, yarnCluster.getResourceManager().getConfig().get(RM_ADDRESS));
 File yarnSite = new File(workDir, "yarn-site.xml");
 try (PrintWriter pw = new PrintWriter(new FileWriter(yarnSite))) {
  yarnConf.writeXml(pw);
 }
 Path flinkUberJar = new Path(new File(workDir, "flink.jar").toURI());
 Path flinkConfYaml = new Path(new File(workDir, "flink-conf.yaml").toURI());
 @SuppressWarnings("ConstantConditions")
 Path log4jPath = new Path(Thread.currentThread().getContextClassLoader().getResource("log4j.properties").toURI());
 Set<Path> resourcesToLocalize = new HashSet<>(Arrays.asList(flinkUberJar, flinkConfYaml, log4jPath));
 String home = workDir.toURI().toString();
 return new YarnClusterConfiguration(
   yarnConf,
   home,
   flinkUberJar,
   resourcesToLocalize,
   systemJars(yarnSite));
}
origin: org.apache.hadoop/hadoop-yarn-server-resourcemanager

public MockNM unRegisterNode(MockNM nm) throws Exception {
 nm.unRegisterNode();
 drainEventsImplicitly();
 return nm;
}
origin: ch.cern.hadoop/hadoop-yarn-server-resourcemanager

 protected ClientRMService createClientRMService() {
  return new ClientRMService(this.rmContext, scheduler,
    this.rmAppManager, this.applicationACLsManager, this.queueACLsManager,
    this.getRMContext().getRMDelegationTokenSecretManager());
 };
};
origin: ch.cern.hadoop/hadoop-yarn-server-resourcemanager

 @Override
 protected ClientRMService createClientRMService() {
  return new MyClientRMService(this.rmContext, this.scheduler,
    this.rmAppManager, this.applicationACLsManager,
    this.queueACLsManager, getRMContext().getRMDelegationTokenSecretManager());
 }
};
org.apache.hadoop.yarn.server.resourcemanager

Most used classes

  • ResourceManager
    The ResourceManager is the main class that is a set of components. "I am the ResourceManager. All yo
  • RMContext
    Context of the ResourceManager.
  • ClientRMService
    The client interface to the Resource Manager. This module handles all the rpc interfaces to the reso
  • RMNode
    Node managers information on available resources and other static information.
  • AllocationConfiguration
  • QueuePlacementPolicy,
  • RMApp,
  • ResourceScheduler,
  • AdminService,
  • RMAppAttempt,
  • RMAppAttemptEvent,
  • Allocation,
  • FifoScheduler,
  • NMTokenSecretManagerInRM,
  • RMContainerTokenSecretManager,
  • ApplicationMasterService,
  • ResourceTrackerService,
  • RMNodeLabelsManager,
  • RMAppState
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now