Class NMDelegationTokenManager
java.lang.Object
org.apache.hadoop.yarn.server.nodemanager.security.NMDelegationTokenManager
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionrenewToken(org.apache.hadoop.security.token.Token<? extends org.apache.hadoop.security.token.TokenIdentifier> token) Renews a token on behalf of the user logged in.
-
Constructor Details
-
NMDelegationTokenManager
public NMDelegationTokenManager(org.apache.hadoop.conf.Configuration conf)
-
-
Method Details
-
renewToken
public Long renewToken(org.apache.hadoop.security.token.Token<? extends org.apache.hadoop.security.token.TokenIdentifier> token) throws IOException, InterruptedException Renews a token on behalf of the user logged in.- Parameters:
token- Token to be renewed- Returns:
- Expiration time for the token
- Throws:
IOException- raised on errors performing I/O.InterruptedException- if the thread is interrupted.
-