@Private
public class NameNodeProxies
extends java.lang.Object
createProxy(Configuration, URI, Class), which will
create either an HA- or non-HA-enabled client proxy as appropriate.| Constructor | Description |
|---|---|
NameNodeProxies() |
| Modifier and Type | Method | Description |
|---|---|---|
static <T> org.apache.hadoop.hdfs.NameNodeProxiesClient.ProxyAndInfo<T> |
createNonHAProxy(org.apache.hadoop.conf.Configuration conf,
java.net.InetSocketAddress nnAddr,
java.lang.Class<T> xface,
org.apache.hadoop.security.UserGroupInformation ugi,
boolean withRetries) |
Creates an explicitly non-HA-enabled proxy object.
|
static <T> org.apache.hadoop.hdfs.NameNodeProxiesClient.ProxyAndInfo<T> |
createNonHAProxy(org.apache.hadoop.conf.Configuration conf,
java.net.InetSocketAddress nnAddr,
java.lang.Class<T> xface,
org.apache.hadoop.security.UserGroupInformation ugi,
boolean withRetries,
java.util.concurrent.atomic.AtomicBoolean fallbackToSimpleAuth,
org.apache.hadoop.ipc.AlignmentContext alignmentContext) |
Creates an explicitly non-HA-enabled proxy object.
|
static <T> org.apache.hadoop.hdfs.NameNodeProxiesClient.ProxyAndInfo<T> |
createProxy(org.apache.hadoop.conf.Configuration conf,
java.net.URI nameNodeUri,
java.lang.Class<T> xface) |
Creates the namenode proxy with the passed protocol.
|
static <T> org.apache.hadoop.hdfs.NameNodeProxiesClient.ProxyAndInfo<T> |
createProxy(org.apache.hadoop.conf.Configuration conf,
java.net.URI nameNodeUri,
java.lang.Class<T> xface,
java.util.concurrent.atomic.AtomicBoolean fallbackToSimpleAuth) |
Creates the namenode proxy with the passed protocol.
|
public static <T> org.apache.hadoop.hdfs.NameNodeProxiesClient.ProxyAndInfo<T> createProxy(org.apache.hadoop.conf.Configuration conf,
java.net.URI nameNodeUri,
java.lang.Class<T> xface)
throws java.io.IOException
conf - the configuration containing the required IPC
properties, client failover configurations, etc.nameNodeUri - the URI pointing either to a specific NameNode
or to a logical nameservice.xface - the IPC interface which should be createdjava.io.IOException - if there is an error creating the proxypublic static <T> org.apache.hadoop.hdfs.NameNodeProxiesClient.ProxyAndInfo<T> createProxy(org.apache.hadoop.conf.Configuration conf,
java.net.URI nameNodeUri,
java.lang.Class<T> xface,
java.util.concurrent.atomic.AtomicBoolean fallbackToSimpleAuth)
throws java.io.IOException
conf - the configuration containing the required IPC
properties, client failover configurations, etc.nameNodeUri - the URI pointing either to a specific NameNode
or to a logical nameservice.xface - the IPC interface which should be createdfallbackToSimpleAuth - set to true or false during calls to indicate if
a secure client falls back to simple authjava.io.IOException - if there is an error creating the proxypublic static <T> org.apache.hadoop.hdfs.NameNodeProxiesClient.ProxyAndInfo<T> createNonHAProxy(org.apache.hadoop.conf.Configuration conf,
java.net.InetSocketAddress nnAddr,
java.lang.Class<T> xface,
org.apache.hadoop.security.UserGroupInformation ugi,
boolean withRetries)
throws java.io.IOException
createProxy(org.apache.hadoop.conf.Configuration, java.net.URI, java.lang.Class<T>).conf - the configuration objectnnAddr - address of the remote NN to connect toxface - the IPC interface which should be createdugi - the user who is making the calls on the proxy objectwithRetries - certain interfaces have a non-standard retry policyjava.io.IOExceptionpublic static <T> org.apache.hadoop.hdfs.NameNodeProxiesClient.ProxyAndInfo<T> createNonHAProxy(org.apache.hadoop.conf.Configuration conf,
java.net.InetSocketAddress nnAddr,
java.lang.Class<T> xface,
org.apache.hadoop.security.UserGroupInformation ugi,
boolean withRetries,
java.util.concurrent.atomic.AtomicBoolean fallbackToSimpleAuth,
org.apache.hadoop.ipc.AlignmentContext alignmentContext)
throws java.io.IOException
createProxy(org.apache.hadoop.conf.Configuration, java.net.URI, java.lang.Class<T>).conf - the configuration objectnnAddr - address of the remote NN to connect toxface - the IPC interface which should be createdugi - the user who is making the calls on the proxy objectwithRetries - certain interfaces have a non-standard retry policyfallbackToSimpleAuth - - set to true or false during this method to
indicate if a secure client falls back to simple authjava.io.IOExceptionCopyright © 2008–2025 Apache Software Foundation. All rights reserved.