public class KerberosSaslTransportPlugin extends SaslTransportPlugin
SaslTransportPlugin.User| Modifier and Type | Field and Description |
|---|---|
static String |
KERBEROS |
login_conf, storm_conf, type| Constructor and Description |
|---|
KerberosSaslTransportPlugin() |
| Modifier and Type | Method and Description |
|---|---|
org.apache.thrift.transport.TTransport |
connect(org.apache.thrift.transport.TTransport transport,
String serverHost,
String asUser)
Connect to the specified server via framed transport
|
org.apache.thrift.transport.TTransportFactory |
getServerTransportFactory()
All subclass must implement this method
|
getServer, preparepublic static final String KERBEROS
public org.apache.thrift.transport.TTransportFactory getServerTransportFactory()
throws IOException
SaslTransportPlugingetServerTransportFactory in class SaslTransportPluginIOExceptionpublic org.apache.thrift.transport.TTransport connect(org.apache.thrift.transport.TTransport transport,
String serverHost,
String asUser)
throws org.apache.thrift.transport.TTransportException,
IOException
ITransportPlugintransport - The underlying Thrift transport.serverHost - server hostasUser - the user as which the connection should be established, and all the subsequent actions should be executed.
Only applicable when using secure storm cluster. A null/blank value here will just indicate to use the logged in user.org.apache.thrift.transport.TTransportExceptionIOExceptionCopyright © 2015. All rights reserved.