Tabnine Logo
InvalidContainerReleaseException.<init>
Code IndexAdd Tabnine to your IDE (free)

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

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

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: 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<init>

Popular methods of InvalidContainerReleaseException

  • getMessage

Popular in Java

  • Finding current android device location
  • setScale (BigDecimal)
  • setContentView (Activity)
  • addToBackStack (FragmentTransaction)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • Pattern (java.util.regex)
    Patterns are compiled regular expressions. In many cases, convenience methods such as String#matches
  • Notification (javax.management)
  • Best plugins for Eclipse
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