@Private
@Unstable
public final class FederationProxyProviderUtil
extends java.lang.Object
FederationStateStore to determine the
current active ResourceManager| Modifier and Type | Field | Description |
|---|---|---|
static org.slf4j.Logger |
LOG |
| Modifier and Type | Method | Description |
|---|---|---|
static <T> T |
createRMProxy(org.apache.hadoop.conf.Configuration configuration,
java.lang.Class<T> protocol,
SubClusterId subClusterId,
org.apache.hadoop.security.UserGroupInformation user) |
Create a proxy for the specified protocol in the context of Federation.
|
static <T> T |
createRMProxy(org.apache.hadoop.conf.Configuration configuration,
java.lang.Class<T> protocol,
SubClusterId subClusterId,
org.apache.hadoop.security.UserGroupInformation user,
org.apache.hadoop.security.token.Token<? extends org.apache.hadoop.security.token.TokenIdentifier> token) |
Create a proxy for the specified protocol in the context of Federation.
|
static void |
updateConfForFederation(org.apache.hadoop.conf.Configuration conf,
java.lang.String subClusterId) |
Updating the conf with Federation as long as certain subclusterId.
|
@Public
@Unstable
public static <T> T createRMProxy(org.apache.hadoop.conf.Configuration configuration,
java.lang.Class<T> protocol,
SubClusterId subClusterId,
org.apache.hadoop.security.UserGroupInformation user)
throws java.io.IOException
T - Type information of the proxyconfiguration - Configuration to generate ClientRMProxyprotocol - Protocol for the proxysubClusterId - the unique identifier or the sub-clusteruser - the user on whose behalf the proxy is being createdjava.io.IOException - on failure@Public
@Unstable
public static <T> T createRMProxy(org.apache.hadoop.conf.Configuration configuration,
java.lang.Class<T> protocol,
SubClusterId subClusterId,
org.apache.hadoop.security.UserGroupInformation user,
org.apache.hadoop.security.token.Token<? extends org.apache.hadoop.security.token.TokenIdentifier> token)
throws java.io.IOException
T - Type information of the proxyconfiguration - Configuration to generate ClientRMProxyprotocol - Protocol for the proxysubClusterId - the unique identifier or the sub-clusteruser - the user on whose behalf the proxy is being createdtoken - the auth token to use for connectionjava.io.IOException - on failurepublic static void updateConfForFederation(org.apache.hadoop.conf.Configuration conf,
java.lang.String subClusterId)
conf - configurationsubClusterId - subclusterId for the confCopyright © 2008–2025 Apache Software Foundation. All rights reserved.