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.TTransportException
public String getServerPrincipal(String principalConfig, String host) throws IOException
IOException
public String getCanonicalHostName(String hostName)
hostName
- The hostname to be canonical-ized.public org.apache.hadoop.security.UserGroupInformation getCurrentUGIWithConf(String authMethod) throws IOException
IOException
Copyright © 2022 The Apache Software Foundation. All rights reserved.