Tabnine Logo
RMNodeStartedEvent.getNMContainerStatuses
Code IndexAdd Tabnine to your IDE (free)

How to use
getNMContainerStatuses
method
in
org.apache.hadoop.yarn.server.resourcemanager.rmnode.RMNodeStartedEvent

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

origin: ch.cern.hadoop/hadoop-yarn-server-resourcemanager

private static List<NMContainerStatus> updateNewNodeMetricsAndContainers(
  RMNodeImpl rmNode, RMNodeStartedEvent startEvent) {
 List<NMContainerStatus> containers;
 ClusterMetrics.getMetrics().incrNumActiveNodes();
 containers = startEvent.getNMContainerStatuses();
 if (containers != null && !containers.isEmpty()) {
  for (NMContainerStatus container : containers) {
   if (container.getContainerState() == ContainerState.RUNNING) {
    rmNode.launchedContainers.add(container.getContainerId());
   }
  }
 }
 return containers;
}
origin: com.github.jiayuhan-it/hadoop-yarn-server-resourcemanager

private static List<NMContainerStatus> updateNewNodeMetricsAndContainers(
  RMNodeImpl rmNode, RMNodeStartedEvent startEvent) {
 List<NMContainerStatus> containers;
 ClusterMetrics.getMetrics().incrNumActiveNodes();
 containers = startEvent.getNMContainerStatuses();
 if (containers != null && !containers.isEmpty()) {
  for (NMContainerStatus container : containers) {
   if (container.getContainerState() == ContainerState.RUNNING) {
    rmNode.launchedContainers.add(container.getContainerId());
   }
  }
 }
 return containers;
}
origin: org.apache.hadoop/hadoop-yarn-server-resourcemanager

containers = startEvent.getNMContainerStatuses();
if (containers != null && !containers.isEmpty()) {
 for (NMContainerStatus container : containers) {
org.apache.hadoop.yarn.server.resourcemanager.rmnodeRMNodeStartedEventgetNMContainerStatuses

Popular methods of RMNodeStartedEvent

  • <init>
  • getRunningApplications
  • getLogAggregationReportsForApps
  • setLogAggregationReportsForApps

Popular in Java

  • Making http requests using okhttp
  • putExtra (Intent)
  • startActivity (Activity)
  • getApplicationContext (Context)
  • BufferedInputStream (java.io)
    A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • ArrayList (java.util)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • JCheckBox (javax.swing)
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
  • From CI to AI: The AI layer in your organization
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