YARN-7806. Distributed Shell should use timeline async api's. Contributed by Rohith Sharma K S

(cherry picked from commit 97607617ce)
This commit is contained in:
Sunil G 2018-01-24 16:56:13 +05:30
parent bf795560fb
commit ecfdd01be7
1 changed files with 2 additions and 2 deletions

View File

@ -1485,7 +1485,7 @@ public class ApplicationMaster {
appSubmitterUgi.doAs(new PrivilegedExceptionAction<Object>() { appSubmitterUgi.doAs(new PrivilegedExceptionAction<Object>() {
@Override @Override
public TimelinePutResponse run() throws Exception { public TimelinePutResponse run() throws Exception {
timelineV2Client.putEntities(entity); timelineV2Client.putEntitiesAsync(entity);
return null; return null;
} }
}); });
@ -1519,7 +1519,7 @@ public class ApplicationMaster {
appSubmitterUgi.doAs(new PrivilegedExceptionAction<Object>() { appSubmitterUgi.doAs(new PrivilegedExceptionAction<Object>() {
@Override @Override
public TimelinePutResponse run() throws Exception { public TimelinePutResponse run() throws Exception {
timelineV2Client.putEntities(entity); timelineV2Client.putEntitiesAsync(entity);
return null; return null;
} }
}); });