YARN-3227. Timeline renew delegation token fails when RM user's TGT is
expired. Contributed by Zhijie Shen (cherry picked from commitd1abc5d4fc
) (cherry picked from commit56c2050ab7
) (cherry picked from commit 780a9b1a98827a692e0ea9fbc92f9d1ab979e3e0)
This commit is contained in:
parent
b25491dc45
commit
a57ada6c1f
|
@ -105,6 +105,9 @@ Release 2.6.1 - UNRELEASED
|
|||
YARN-3242. Asynchrony in ZK-close can lead to ZKRMStateStore watcher receiving
|
||||
events for old client. (Zhihai Xu via kasha)
|
||||
|
||||
YARN-3227. Timeline renew delegation token fails when RM user's TGT is expired
|
||||
(Zhijie Shen via xgong)
|
||||
|
||||
Release 2.6.0 - 2014-11-18
|
||||
|
||||
INCOMPATIBLE CHANGES
|
||||
|
|
|
@ -425,6 +425,7 @@ public class TimelineClientImpl extends TimelineClient {
|
|||
UserGroupInformation callerUGI = isProxyAccess ?
|
||||
UserGroupInformation.getCurrentUser().getRealUser()
|
||||
: UserGroupInformation.getCurrentUser();
|
||||
callerUGI.checkTGTAndReloginFromKeytab();
|
||||
try {
|
||||
return callerUGI.doAs(action);
|
||||
} catch (UndeclaredThrowableException e) {
|
||||
|
@ -474,6 +475,7 @@ public class TimelineClientImpl extends TimelineClient {
|
|||
: UserGroupInformation.getCurrentUser();
|
||||
final String doAsUser = isProxyAccess ?
|
||||
UserGroupInformation.getCurrentUser().getShortUserName() : null;
|
||||
callerUGI.checkTGTAndReloginFromKeytab();
|
||||
try {
|
||||
return callerUGI.doAs(new PrivilegedExceptionAction<HttpURLConnection>() {
|
||||
@Override
|
||||
|
|
Loading…
Reference in New Issue