org.apache.hadoop.hive.thrift
Class HadoopThriftAuthBridge20S
java.lang.Object
org.apache.hadoop.hive.thrift.HadoopThriftAuthBridge
org.apache.hadoop.hive.thrift.HadoopThriftAuthBridge20S
public class HadoopThriftAuthBridge20S
- extends HadoopThriftAuthBridge
Functions that bridge Thrift's SASL transports to Hadoop's
SASL callback handlers and authentication classes.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HadoopThriftAuthBridge20S
public HadoopThriftAuthBridge20S()
createClient
public HadoopThriftAuthBridge20S.Client createClient()
- Overrides:
createClient in class HadoopThriftAuthBridge
createClientWithConf
public HadoopThriftAuthBridge20S.Client createClientWithConf(String authType)
- Overrides:
createClientWithConf in class HadoopThriftAuthBridge
createServer
public HadoopThriftAuthBridge20S.Server createServer(String keytabFile,
String principalConf)
throws org.apache.thrift.transport.TTransportException
- Overrides:
createServer in class HadoopThriftAuthBridge
- Throws:
org.apache.thrift.transport.TTransportException
getServerPrincipal
public String getServerPrincipal(String principalConfig,
String host)
throws IOException
- Overrides:
getServerPrincipal in class HadoopThriftAuthBridge
- Throws:
IOException
getCurrentUGIWithConf
public org.apache.hadoop.security.UserGroupInformation getCurrentUGIWithConf(String authType)
throws IOException
- Overrides:
getCurrentUGIWithConf in class HadoopThriftAuthBridge
- Throws:
IOException
getHadoopSaslProperties
public Map<String,String> getHadoopSaslProperties(org.apache.hadoop.conf.Configuration conf)
- Read and return Hadoop SASL configuration which can be configured using
"hadoop.rpc.protection"
- Overrides:
getHadoopSaslProperties in class HadoopThriftAuthBridge
- Parameters:
conf -
- Returns:
- Hadoop SASL configuration
Copyright © 2014 The Apache Software Foundation. All rights reserved.