Package org.apache.accumulo.core.rpc
Class UGIAssumingTransport
- java.lang.Object
-
- org.apache.thrift.transport.TTransport
-
- org.apache.accumulo.core.rpc.FilterTransport
-
- org.apache.accumulo.core.rpc.UGIAssumingTransport
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
public class UGIAssumingTransport extends FilterTransport
The Thrift SASL transports call Sasl.createSaslServer and Sasl.createSaslClient inside open(). So, we need to assume the correct UGI when the transport is opened so that the SASL mechanisms have access to the right principal. This transport wraps the Sasl transports to set up the right UGI context for open(). This is used on the client side, where the API explicitly opens a transport to the server. Lifted from Apache Hive 0.14
-
-
Field Summary
Fields Modifier and Type Field Description protected org.apache.hadoop.security.UserGroupInformation
ugi
-
Constructor Summary
Constructors Constructor Description UGIAssumingTransport(org.apache.thrift.transport.TTransport wrapped, org.apache.hadoop.security.UserGroupInformation ugi)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
open()
-
Methods inherited from class org.apache.accumulo.core.rpc.FilterTransport
close, consumeBuffer, flush, getBuffer, getBufferPosition, getBytesRemainingInBuffer, getWrapped, isOpen, peek, read, readAll, write, write
-
-
-
-
Method Detail
-
open
public void open() throws org.apache.thrift.transport.TTransportException
- Overrides:
open
in classFilterTransport
- Throws:
org.apache.thrift.transport.TTransportException
-
-