org.apache.hadoop.hive.thrift
Class HadoopThriftAuthBridge20S.Client

java.lang.Object
  extended by org.apache.hadoop.hive.thrift.HadoopThriftAuthBridge.Client
      extended by org.apache.hadoop.hive.thrift.HadoopThriftAuthBridge20S.Client
Enclosing class:
HadoopThriftAuthBridge20S

public static class HadoopThriftAuthBridge20S.Client
extends HadoopThriftAuthBridge.Client


Constructor Summary
HadoopThriftAuthBridge20S.Client()
           
 
Method Summary
 org.apache.thrift.transport.TTransport createClientTransport(String principalConfig, String host, String methodStr, String tokenStrForm, org.apache.thrift.transport.TTransport underlyingTransport, Map<String,String> saslProps)
          Create a client-side SASL transport that wraps an underlying transport.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HadoopThriftAuthBridge20S.Client

public HadoopThriftAuthBridge20S.Client()
Method Detail

createClientTransport

public org.apache.thrift.transport.TTransport createClientTransport(String principalConfig,
                                                                    String host,
                                                                    String methodStr,
                                                                    String tokenStrForm,
                                                                    org.apache.thrift.transport.TTransport underlyingTransport,
                                                                    Map<String,String> saslProps)
                                                             throws IOException
Create a client-side SASL transport that wraps an underlying transport.

Specified by:
createClientTransport in class HadoopThriftAuthBridge.Client
Parameters:
method - The authentication method to use. Currently only KERBEROS is supported.
serverPrincipal - The Kerberos principal of the target server.
underlyingTransport - The underlying transport mechanism, usually a TSocket.
saslProps - the sasl properties to create the client with
Throws:
IOException


Copyright © 2014 The Apache Software Foundation. All rights reserved.