org.apache.hadoop.hive.thrift
Class HadoopThriftAuthBridge20S.Client
java.lang.Object
org.apache.hadoop.hive.thrift.HadoopThriftAuthBridge.Client
org.apache.hadoop.hive.thrift.HadoopThriftAuthBridge20S.Client
- Enclosing class:
- HadoopThriftAuthBridge20S
public static class HadoopThriftAuthBridge20S.Client
- extends HadoopThriftAuthBridge.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 |
HadoopThriftAuthBridge20S.Client
public HadoopThriftAuthBridge20S.Client()
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.