@Public @Stable public class ClientRMProxy<T> extends RMProxy<T>
| Modifier and Type | Method | Description |
|---|---|---|
void |
checkAllowedProtocols(java.lang.Class<?> protocol) |
Verify the passed protocol is supported.
|
static <T> T |
createRMProxy(org.apache.hadoop.conf.Configuration configuration,
java.lang.Class<T> protocol) |
Create a proxy to the ResourceManager for the specified protocol.
|
static <T> T |
createRMProxyFederation(org.apache.hadoop.conf.Configuration configuration,
java.lang.Class<T> protocol) |
Create a proxy to the ResourceManager for the specified protocol.
|
static org.apache.hadoop.io.Text |
getAMRMTokenService(org.apache.hadoop.conf.Configuration conf) |
|
static <T> RMFailoverProxyProvider<T> |
getClientRMFailoverProxyProvider(org.apache.hadoop.yarn.conf.YarnConfiguration configuration,
java.lang.Class<T> protocol) |
|
java.net.InetSocketAddress |
getRMAddress(org.apache.hadoop.yarn.conf.YarnConfiguration conf,
java.lang.Class<?> protocol) |
Get the ResourceManager address from the provided Configuration for the
given protocol.
|
static org.apache.hadoop.io.Text |
getRMDelegationTokenService(org.apache.hadoop.conf.Configuration conf) |
Get the token service name to be used for RMDelegationToken.
|
static org.apache.hadoop.io.Text |
getTokenService(org.apache.hadoop.conf.Configuration conf,
java.lang.String address,
java.lang.String defaultAddr,
int defaultPort) |
createRetryPolicy, createRetryPolicy, createRMProxy, createRMProxy, createRMProxyFederation, getProxy, getRMFailoverProxyProvider, newProxyInstanceFederationpublic static <T> T createRMProxy(org.apache.hadoop.conf.Configuration configuration,
java.lang.Class<T> protocol)
throws java.io.IOException
T - Type of proxy.configuration - Configuration with all the required information.protocol - Client protocol for which proxy is being requested.java.io.IOException - io error occur.public static <T> T createRMProxyFederation(org.apache.hadoop.conf.Configuration configuration,
java.lang.Class<T> protocol)
throws java.io.IOException
T - Type of proxy.configuration - Configuration with all the required information.protocol - Client protocol for which proxy is being requested.java.io.IOException - io error occur.@VisibleForTesting public static <T> RMFailoverProxyProvider<T> getClientRMFailoverProxyProvider(org.apache.hadoop.yarn.conf.YarnConfiguration configuration, java.lang.Class<T> protocol)
@Private
public java.net.InetSocketAddress getRMAddress(org.apache.hadoop.yarn.conf.YarnConfiguration conf,
java.lang.Class<?> protocol)
throws java.io.IOException
RMProxygetRMAddress in class RMProxy<T>conf - configuration.protocol - protocol.java.io.IOException - io error occur.@Private public void checkAllowedProtocols(java.lang.Class<?> protocol)
RMProxycheckAllowedProtocols in class RMProxy<T>protocol - protocol.@Unstable public static org.apache.hadoop.io.Text getRMDelegationTokenService(org.apache.hadoop.conf.Configuration conf)
conf - Configuration corresponding to the cluster we need the
RMDelegationToken for@Unstable public static org.apache.hadoop.io.Text getAMRMTokenService(org.apache.hadoop.conf.Configuration conf)
@Unstable
public static org.apache.hadoop.io.Text getTokenService(org.apache.hadoop.conf.Configuration conf,
java.lang.String address,
java.lang.String defaultAddr,
int defaultPort)
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.