@InterfaceAudience.Private @InterfaceStability.Unstable public final class FederationProxyProviderUtil extends Object
FederationStateStore
to determine the
current active ResourceManagerModifier and Type | Field and Description |
---|---|
static org.slf4j.Logger |
LOG |
Modifier and Type | Method and Description |
---|---|
static <T> T |
createRMProxy(org.apache.hadoop.conf.Configuration configuration,
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,
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,
String subClusterId)
Updating the conf with Federation as long as certain subclusterId.
|
@InterfaceAudience.Public @InterfaceStability.Unstable public static <T> T createRMProxy(org.apache.hadoop.conf.Configuration configuration, Class<T> protocol, SubClusterId subClusterId, org.apache.hadoop.security.UserGroupInformation user) throws IOException
T
- Type information of the proxyconfiguration
- Configuration to generate ClientRMProxy
protocol
- Protocol for the proxysubClusterId
- the unique identifier or the sub-clusteruser
- the user on whose behalf the proxy is being createdIOException
- on failure@InterfaceAudience.Public @InterfaceStability.Unstable public static <T> T createRMProxy(org.apache.hadoop.conf.Configuration configuration, 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 IOException
T
- Type information of the proxyconfiguration
- Configuration to generate ClientRMProxy
protocol
- 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 connectionIOException
- on failurepublic static void updateConfForFederation(org.apache.hadoop.conf.Configuration conf, String subClusterId)
conf
- configurationsubClusterId
- subclusterId for the confCopyright © 2008–2021 Apache Software Foundation. All rights reserved.