Early termination
With security enabled HS delegation token renewer fails
Blocker
Yes
java.lang.IllegalArgumentException: not a proxy instance
Yes
Users who enabled security
2.0.4-alpha
1 HS
1. Enable security (config change)
2. Client request a HS token (feature start)
Yes
Yes
Yes
2 (HS node+MRClient node)
MRClient throws exception when it is requesting a HS token.
The wrong implementation of MRClientProtocol makes the function call stopHistoryProxy
failed and throws exception.
MRClientProtocol is not correctly implemented. MR will not regard it as a proxy in the JobClient.
The error handling is wrong:
MRClientProtocol histProxy = instantiateHistoryProxy(conf,
SecurityUtil.getTokenServiceAddr(token));
try {
RenewDelegationTokenRequest request = Records
.newRecord(RenewDelegationTokenRequest.class);
request.setDelegationToken(dToken);
return histProxy.renewDelegationToken(request).getNextExpirationTime();
} finally {
stopHistoryProxy(histProxy);
}
--- the finally clause, once triggered, will expose the failure...