@InterfaceAudience.Public @InterfaceStability.Stable public class ClientRMProxy<T> extends RMProxy<T>
| Modifier and Type | Method and Description |
|---|---|
void |
checkAllowedProtocols(Class<?> protocol)
Verify the passed protocol is supported.
|
static <T> T |
createRMProxy(org.apache.hadoop.conf.Configuration configuration,
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) |
InetSocketAddress |
getRMAddress(org.apache.hadoop.yarn.conf.YarnConfiguration conf,
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,
String address,
String defaultAddr,
int defaultPort) |
createRetryPolicy, createRetryPolicy, createRMProxy, createRMProxy, getProxypublic static <T> T createRMProxy(org.apache.hadoop.conf.Configuration configuration,
Class<T> protocol)
throws IOException
T - Type of proxy.configuration - Configuration with all the required information.protocol - Client protocol for which proxy is being requested.IOException@InterfaceAudience.Private public InetSocketAddress getRMAddress(org.apache.hadoop.yarn.conf.YarnConfiguration conf, Class<?> protocol) throws IOException
RMProxygetRMAddress in class RMProxy<T>IOException@InterfaceAudience.Private public void checkAllowedProtocols(Class<?> protocol)
RMProxycheckAllowedProtocols in class RMProxy<T>@InterfaceStability.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@InterfaceStability.Unstable public static org.apache.hadoop.io.Text getAMRMTokenService(org.apache.hadoop.conf.Configuration conf)
Copyright © 2008–2023 Apache Software Foundation. All rights reserved.