public 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) |
org.apache.hadoop.security.UserGroupInformation |
getCurrentUGIWithConf(String authMethod) |
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 HadoopThriftAuthBridge.Client createClient()
public HadoopThriftAuthBridge.Client createClientWithConf(String authMethod)
public HadoopThriftAuthBridge.Server createServer(String keytabFile, String principalConf) throws org.apache.thrift.transport.TTransportException
org.apache.thrift.transport.TTransportException
public String getServerPrincipal(String principalConfig, String host) throws IOException
IOException
public org.apache.hadoop.security.UserGroupInformation getCurrentUGIWithConf(String authMethod) throws IOException
IOException
Copyright © 2017 The Apache Software Foundation. All rights reserved.