public class KerberosDelegationTokenManager extends Object implements DelegationTokenManager
When delegation token renewal is enabled, this manager will make sure long-running apps can run without interruption while accessing secured services. It periodically logs in to the KDC with user-provided credentials, and contacts all the configured secure services to obtain delegation tokens to be distributed to the rest of the application.
| 构造器和说明 |
|---|
KerberosDelegationTokenManager(org.apache.flink.configuration.Configuration configuration,
org.apache.flink.util.concurrent.ScheduledExecutor scheduledExecutor,
ExecutorService ioExecutor) |
KerberosDelegationTokenManager(org.apache.flink.configuration.Configuration configuration,
org.apache.flink.util.concurrent.ScheduledExecutor scheduledExecutor,
ExecutorService ioExecutor,
KerberosLoginProvider kerberosLoginProvider) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
obtainDelegationTokens(org.apache.hadoop.security.Credentials credentials)
Obtains new tokens in a one-time fashion and leaves it up to the caller to distribute them.
|
protected Optional<Long> |
obtainDelegationTokensAndGetNextRenewal(org.apache.hadoop.security.Credentials credentials) |
void |
start()
Creates a re-occurring task which obtains new tokens and automatically distributes them to
task managers.
|
void |
stop()
Stops re-occurring token obtain task.
|
public KerberosDelegationTokenManager(org.apache.flink.configuration.Configuration configuration,
@Nullable
org.apache.flink.util.concurrent.ScheduledExecutor scheduledExecutor,
@Nullable
ExecutorService ioExecutor)
public KerberosDelegationTokenManager(org.apache.flink.configuration.Configuration configuration,
@Nullable
org.apache.flink.util.concurrent.ScheduledExecutor scheduledExecutor,
@Nullable
ExecutorService ioExecutor,
KerberosLoginProvider kerberosLoginProvider)
public void obtainDelegationTokens(org.apache.hadoop.security.Credentials credentials)
throws Exception
obtainDelegationTokens 在接口中 DelegationTokenManagerExceptionprotected Optional<Long> obtainDelegationTokensAndGetNextRenewal(org.apache.hadoop.security.Credentials credentials)
public void start()
throws Exception
start 在接口中 DelegationTokenManagerExceptionpublic void stop()
stop 在接口中 DelegationTokenManagerCopyright © 2014–2023 The Apache Software Foundation. All rights reserved.