public abstract class HadoopThriftAuthBridge extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
HadoopThriftAuthBridge.Client |
static class |
HadoopThriftAuthBridge.Server |
| Constructor and Description |
|---|
HadoopThriftAuthBridge() |
| Modifier and Type | Method and Description |
|---|---|
HadoopThriftAuthBridge.Client |
createClient() |
HadoopThriftAuthBridge.Client |
createClientWithConf(String authMethod) |
HadoopThriftAuthBridge.Server |
createServer(String keytabFile,
String principalConf,
String clientConf) |
static HadoopThriftAuthBridge |
getBridge() |
String |
getCanonicalHostName(String hostName)
Method to get canonical-ized hostname, given a hostname (possibly a CNAME).
|
org.apache.hadoop.security.UserGroupInformation |
getCurrentUGIWithConf(String authMethod) |
abstract Map<String,String> |
getHadoopSaslProperties(org.apache.hadoop.conf.Configuration conf)
Read and return Hadoop SASL configuration which can be configured using
"hadoop.rpc.protection"
|
String |
getServerPrincipal(String principalConfig,
String host) |
public static HadoopThriftAuthBridge getBridge()
public HadoopThriftAuthBridge.Client createClient()
public HadoopThriftAuthBridge.Client createClientWithConf(String authMethod)
public HadoopThriftAuthBridge.Server createServer(String keytabFile, String principalConf, String clientConf) throws org.apache.thrift.transport.TTransportException
org.apache.thrift.transport.TTransportExceptionpublic String getServerPrincipal(String principalConfig, String host) throws IOException
IOExceptionpublic String getCanonicalHostName(String hostName)
hostName - The hostname to be canonical-ized.public org.apache.hadoop.security.UserGroupInformation getCurrentUGIWithConf(String authMethod) throws IOException
IOExceptionCopyright © 2019 The Apache Software Foundation. All Rights Reserved.