congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
InvalidContainerReleaseException
Code IndexAdd Tabnine 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)

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

  • Making http post requests using okhttp
  • scheduleAtFixedRate (ScheduledExecutorService)
  • putExtra (Intent)
  • setRequestProperty (URLConnection)
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • JPanel (javax.swing)
  • Top 12 Jupyter Notebook extensions
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