Example usage for org.apache.hadoop.yarn.server.utils BuilderUtils newApplicationAttemptId

List of usage examples for org.apache.hadoop.yarn.server.utils BuilderUtils newApplicationAttemptId

Introduction

In this page you can find the example usage for org.apache.hadoop.yarn.server.utils BuilderUtils newApplicationAttemptId.

Prototype

public static ApplicationAttemptId newApplicationAttemptId(ApplicationId appId, int attemptId) 

Source Link

Usage

From source file:org.apache.tajo.util.ApplicationIdUtils.java

License:Apache License

public static ApplicationAttemptId createApplicationAttemptId(QueryId queryId, int attemptId) {
    return BuilderUtils.newApplicationAttemptId(queryIdToAppId(queryId), attemptId);
}

From source file:org.apache.tajo.util.ApplicationIdUtils.java

License:Apache License

public static ApplicationAttemptId createApplicationAttemptId(QueryId queryId) {
    return BuilderUtils.newApplicationAttemptId(queryIdToAppId(queryId), 1);
}