Codota Logo
InvalidContainerReleaseException
Code IndexAdd Codota to your IDE (free)

How to use
InvalidContainerReleaseException
in
org.apache.hadoop.yarn.exceptions

Best Java code snippets using org.apache.hadoop.yarn.exceptions.InvalidContainerReleaseException (Showing top 5 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
DateTime d =
  • Codota Iconnew DateTime()
  • Codota IconDateTimeFormatter formatter;String text;formatter.parseDateTime(text)
  • Codota IconObject instant;new DateTime(instant)
  • Smart code suggestions by Codota
}
origin: org.apache.hadoop/hadoop-yarn-server-resourcemanager

/**
 * It will validate to make sure all the containers belong to correct
 * application attempt id. If not then it will throw
 * {@link InvalidContainerReleaseException}
 *
 * @param containerReleaseList containers to be released as requested by
 *                             application master.
 * @param appAttemptId         Application attempt Id
 * @throws InvalidContainerReleaseException
 */
public static void
  validateContainerReleaseRequest(List<ContainerId> containerReleaseList,
  ApplicationAttemptId appAttemptId)
  throws InvalidContainerReleaseException {
 for (ContainerId cId : containerReleaseList) {
  if (!appAttemptId.equals(cId.getApplicationAttemptId())) {
   throw new InvalidContainerReleaseException(
     "Cannot release container : "
       + cId.toString()
       + " not belonging to this application attempt : "
       + appAttemptId);
  }
 }
}
origin: org.apache.hadoop/hadoop-yarn-server-resourcemanager

sb.append(" not belonging to this application attempt : ");
sb.append(attempt2.getAppAttemptId().toString());
Assert.assertTrue(e.getMessage().contains(sb.toString()));
origin: ch.cern.hadoop/hadoop-yarn-server-resourcemanager

sb.append(" not belonging to this application attempt : ");
sb.append(attempt2.getAppAttemptId().toString());
Assert.assertTrue(e.getMessage().contains(sb.toString()));
origin: ch.cern.hadoop/hadoop-yarn-server-resourcemanager

/**
 * It will validate to make sure all the containers belong to correct
 * application attempt id. If not then it will throw
 * {@link InvalidContainerReleaseException}
 * 
 * @param containerReleaseList
 *          containers to be released as requested by application master.
 * @param appAttemptId
 *          Application attempt Id
 * @throws InvalidContainerReleaseException
 */
public static void
  validateContainerReleaseRequest(List<ContainerId> containerReleaseList,
    ApplicationAttemptId appAttemptId)
    throws InvalidContainerReleaseException {
 for (ContainerId cId : containerReleaseList) {
  if (!appAttemptId.equals(cId.getApplicationAttemptId())) {
   throw new InvalidContainerReleaseException(
     "Cannot release container : "
       + cId.toString()
       + " not belonging to this application attempt : "
       + appAttemptId);
  }
 }
}
origin: com.github.jiayuhan-it/hadoop-yarn-server-resourcemanager

/**
 * It will validate to make sure all the containers belong to correct
 * application attempt id. If not then it will throw
 * {@link InvalidContainerReleaseException}
 * 
 * @param containerReleaseList
 *          containers to be released as requested by application master.
 * @param appAttemptId
 *          Application attempt Id
 * @throws InvalidContainerReleaseException
 */
public static void
  validateContainerReleaseRequest(List<ContainerId> containerReleaseList,
    ApplicationAttemptId appAttemptId)
    throws InvalidContainerReleaseException {
 for (ContainerId cId : containerReleaseList) {
  if (!appAttemptId.equals(cId.getApplicationAttemptId())) {
   throw new InvalidContainerReleaseException(
     "Cannot release container : "
       + cId.toString()
       + " not belonging to this application attempt : "
       + appAttemptId);
  }
 }
}
org.apache.hadoop.yarn.exceptionsInvalidContainerReleaseException

Javadoc

This exception is thrown when an Application Master tries to release containers not belonging to it using ApplicationMasterProtocol#allocate(AllocateRequest) API.

Most used methods

  • <init>
  • getMessage

Popular in Java

  • Creating JSON documents from java classes using gson
  • getResourceAsStream (ClassLoader)
  • addToBackStack (FragmentTransaction)
  • onRequestPermissionsResult (Fragment)
  • Point (java.awt)
    A point representing a location in (x, y) coordinate space, specified in integer precision.
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • Pattern (java.util.regex)
    A compiled representation of a regular expression. A regular expression, specified as a string, must
  • Notification (javax.management)
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • Table (org.hibernate.mapping)
    A relational table
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now