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:
parent
f036609cea
commit
ce43e93f92
|
@ -1419,7 +1419,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;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -1453,7 +1453,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;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue