Example usage for org.apache.hadoop.yarn.api.protocolrecords GetNewApplicationResponse setApplicationId

List of usage examples for org.apache.hadoop.yarn.api.protocolrecords GetNewApplicationResponse setApplicationId

Introduction

In this page you can find the example usage for org.apache.hadoop.yarn.api.protocolrecords GetNewApplicationResponse setApplicationId.

Prototype

@Private
    @Unstable
    public abstract void setApplicationId(ApplicationId applicationId);

Source Link

Usage

From source file:org.apache.tez.client.LocalClient.java

License:Apache License

@Override
public YarnClientApplication createApplication() throws YarnException, IOException {
    ApplicationSubmissionContext context = Records.newRecord(ApplicationSubmissionContext.class);
    ApplicationId appId = ApplicationId.newInstance(clusterTimeStamp, appIdNumber++);
    context.setApplicationId(appId);/*from w w  w .  java  2  s  .  c  om*/
    GetNewApplicationResponse response = Records.newRecord(GetNewApplicationResponse.class);
    response.setApplicationId(appId);
    return new YarnClientApplication(response, context);
}