@Private
public class HAUtilClient
extends java.lang.Object
| Constructor | Description |
|---|---|
HAUtilClient() |
| Modifier and Type | Method | Description |
|---|---|---|
static org.apache.hadoop.io.Text |
buildTokenServiceForLogicalUri(java.net.URI uri,
java.lang.String scheme) |
Get the service name used in the delegation token for the given logical
HA service.
|
static java.lang.String |
buildTokenServicePrefixForLogicalUri(java.lang.String scheme) |
|
static void |
cloneDelegationTokenForLogicalUri(org.apache.hadoop.security.UserGroupInformation ugi,
java.net.URI haUri,
java.util.Collection<java.net.InetSocketAddress> nnAddrs) |
Locate a delegation token associated with the given HA cluster URI, and if
one is found, clone it to also represent the underlying namenode address.
|
static java.net.URI |
getServiceUriFromToken(java.lang.String scheme,
org.apache.hadoop.security.token.Token<?> token) |
Parse the file system URI out of the provided token.
|
static boolean |
isClientFailoverConfigured(org.apache.hadoop.conf.Configuration conf,
java.net.URI nameNodeUri) |
Check whether the client has a failover proxy provider configured
for the namenode/nameservice.
|
static boolean |
isLogicalUri(org.apache.hadoop.conf.Configuration conf,
java.net.URI nameNodeUri) |
|
static boolean |
isTokenForLogicalUri(org.apache.hadoop.security.token.Token<?> token) |
public static boolean isLogicalUri(org.apache.hadoop.conf.Configuration conf,
java.net.URI nameNodeUri)
public static boolean isClientFailoverConfigured(org.apache.hadoop.conf.Configuration conf,
java.net.URI nameNodeUri)
conf - ConfigurationnameNodeUri - The URI of namenodepublic static org.apache.hadoop.io.Text buildTokenServiceForLogicalUri(java.net.URI uri,
java.lang.String scheme)
uri - the logical URI of the clusterscheme - the scheme of the corresponding FileSystempublic static java.lang.String buildTokenServicePrefixForLogicalUri(java.lang.String scheme)
public static java.net.URI getServiceUriFromToken(java.lang.String scheme,
org.apache.hadoop.security.token.Token<?> token)
public static boolean isTokenForLogicalUri(org.apache.hadoop.security.token.Token<?> token)
public static void cloneDelegationTokenForLogicalUri(org.apache.hadoop.security.UserGroupInformation ugi,
java.net.URI haUri,
java.util.Collection<java.net.InetSocketAddress> nnAddrs)
ugi - the UGI to modifyhaUri - the logical URI for the clusternnAddrs - collection of NNs in the cluster to which the token
appliesCopyright © 2008–2025 Apache Software Foundation. All rights reserved.