org.apache.hadoop.hive.thrift
Class HadoopThriftAuthBridge20S

java.lang.Object
  extended by org.apache.hadoop.hive.thrift.HadoopThriftAuthBridge
      extended by 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.


Nested Class Summary
static class HadoopThriftAuthBridge20S.Client
           
static class HadoopThriftAuthBridge20S.Server
           
 
Constructor Summary
HadoopThriftAuthBridge20S()
           
 
Method Summary
 HadoopThriftAuthBridge20S.Client createClient()
           
 HadoopThriftAuthBridge20S.Client createClientWithConf(String authType)
           
 HadoopThriftAuthBridge20S.Server createServer(String keytabFile, String principalConf)
           
 org.apache.hadoop.security.UserGroupInformation getCurrentUGIWithConf(String authType)
           
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HadoopThriftAuthBridge20S

public HadoopThriftAuthBridge20S()
Method Detail

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.