Tabnine Logo
LogAggregationStatus
Code IndexAdd Tabnine to your IDE (free)

How to use
LogAggregationStatus
in
org.apache.hadoop.yarn.api.records

Best Java code snippets using org.apache.hadoop.yarn.api.records.LogAggregationStatus (Showing top 11 results out of 315)

origin: org.apache.hadoop/hadoop-yarn-common

public static LogAggregationStatusProto convertToProtoFormat(
  LogAggregationStatus e) {
 return LogAggregationStatusProto.valueOf(LOG_AGGREGATION_STATUS_PREFIX
   + e.name());
}
origin: org.apache.hadoop/hadoop-yarn-server-resourcemanager

@Override
public boolean isLogAggregationFinished() {
 return this.logAggregationStatusForAppReport
  .equals(LogAggregationStatus.SUCCEEDED)
   || this.logAggregationStatusForAppReport
    .equals(LogAggregationStatus.FAILED)
   || this.logAggregationStatusForAppReport
    .equals(LogAggregationStatus.TIME_OUT);
}
origin: org.apache.hadoop/hadoop-yarn-common

public static LogAggregationStatus convertFromProtoFormat(
  LogAggregationStatusProto e) {
 return LogAggregationStatus.valueOf(e.name().substring(
   LOG_AGGREGATION_STATUS_PREFIX_LEN));
}
origin: org.apache.hadoop/hadoop-yarn-server-resourcemanager

  th(_TH, "Description").
  __();
table_description.tr().td(LogAggregationStatus.DISABLED.name())
 .td("Log Aggregation is Disabled.").__();
table_description.tr().td(LogAggregationStatus.NOT_START.name())
 .td("Log Aggregation does not Start.").__();
table_description.tr().td(LogAggregationStatus.RUNNING.name())
 .td("Log Aggregation is Running.").__();
table_description.tr().td(LogAggregationStatus.RUNNING_WITH_FAILURE.name())
 .td("Log Aggregation is Running, but has failures "
   + "in previous cycles").__();
table_description.tr().td(LogAggregationStatus.SUCCEEDED.name())
 .td("Log Aggregation is Succeeded. All of the logs have been "
   + "aggregated successfully.").__();
table_description.tr().td(LogAggregationStatus.FAILED.name())
 .td("Log Aggregation is Failed. At least one of the logs "
   + "have not been aggregated.").__();
table_description.tr().td(LogAggregationStatus.TIME_OUT.name())
 .td("The application is finished, but the log aggregation status is "
   + "not updated for a long time. Not sure whether the log aggregation "
     + (rmApp == null ? "N/A" : rmApp
      .getLogAggregationStatusForAppReport() == null ? "N/A" : rmApp
      .getLogAggregationStatusForAppReport().name())).table(
   "#LogAggregationStatus");
   table.tr()
    .td(report.getKey().toString())
    .td(status == null ? "N/A" : status.toString())
origin: org.apache.hadoop/hadoop-yarn-server-resourcemanager

  numAMContainerPreempted);
assertEquals("Log aggregation Status doesn't match", app
  .getLogAggregationStatusForAppReport().toString(),
  logAggregationStatus);
assertEquals("unmanagedApplication doesn't match", app
origin: org.apache.hadoop/hadoop-yarn-server-resourcemanager

    getXmlInt(info, "numAMContainerPreempted"));
assertEquals("Log aggregation Status doesn't match", app
        .getLogAggregationStatusForAppReport().toString(),
    getXmlString(info, "logAggregationStatus"));
assertEquals("unmanagedApplication doesn't match", app
origin: io.hops/hadoop-yarn-server-common

  || status == LogAggregationStatus.NOT_START
  || status == LogAggregationStatus.SUCCEEDED) {
 overviewTable._("Log Aggregation Status:", status.name());
} else {
 overviewTable._("Log Aggregation Status:",
   root_url("logaggregationstatus", app.getAppId()), status.name());
origin: org.apache.hadoop/hadoop-yarn-server-resourcemanager

private void updateLogAggregationStatus(NodeId nodeId) {
 LogAggregationStatus status =
   this.logAggregationStatus.get(nodeId).getLogAggregationStatus();
 if (status.equals(LogAggregationStatus.SUCCEEDED)) {
  this.logAggregationSucceed++;
 } else if (status.equals(LogAggregationStatus.FAILED)) {
  this.logAggregationFailed++;
   Map.Entry<NodeId, LogAggregationReport> entry = it.next();
   if (entry.getValue().getLogAggregationStatus()
    .equals(LogAggregationStatus.SUCCEEDED)) {
    it.remove();
origin: org.apache.hadoop/hadoop-yarn-server-resourcemanager

  info.getInt("numAMContainerPreempted"));
assertEquals("Log aggregation Status doesn't match",
  app.getLogAggregationStatusForAppReport().toString(),
  info.getString("logAggregationStatus"));
assertEquals("unmanagedApplication doesn't match",
origin: org.apache.hadoop/hadoop-yarn-server-resourcemanager

@Override
public Map<NodeId, LogAggregationReport> getLogAggregationReportsForApp() {
 try {
  this.readLock.lock();
  if (!isLogAggregationFinished() && isAppInFinalState(this) &&
    systemClock.getTime() > this.logAggregationStartTime
    + this.logAggregationStatusTimeout) {
   for (Entry<NodeId, LogAggregationReport> output :
     logAggregationStatus.entrySet()) {
    if (!output.getValue().getLogAggregationStatus()
     .equals(LogAggregationStatus.TIME_OUT)
      && !output.getValue().getLogAggregationStatus()
       .equals(LogAggregationStatus.SUCCEEDED)
      && !output.getValue().getLogAggregationStatus()
       .equals(LogAggregationStatus.FAILED)) {
     output.getValue().setLogAggregationStatus(
      LogAggregationStatus.TIME_OUT);
    }
   }
  }
  return Collections.unmodifiableMap(logAggregationStatus);
 } finally {
  this.readLock.unlock();
 }
}
origin: org.apache.hadoop/hadoop-archive-logs

  ApplicationId.fromString(app.getAppId()));
LogAggregationStatus aggStatus = report.getLogAggregationStatus();
if (aggStatus.equals(LogAggregationStatus.RUNNING) ||
  aggStatus.equals(LogAggregationStatus.RUNNING_WITH_FAILURE) ||
  aggStatus.equals(LogAggregationStatus.NOT_START) ||
  aggStatus.equals(LogAggregationStatus.DISABLED) ||
  aggStatus.equals(LogAggregationStatus.FAILED)) {
 if (verbose) {
  LOG.info("Skipping " + app.getAppId() +
org.apache.hadoop.yarn.api.recordsLogAggregationStatus

Javadoc

Status of Log aggregation.

Most used methods

  • name
  • equals
  • toString
  • valueOf

Popular in Java

  • Creating JSON documents from java classes using gson
  • getSharedPreferences (Context)
  • setRequestProperty (URLConnection)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • JCheckBox (javax.swing)
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
  • CodeWhisperer alternatives
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