Class 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 Detail

      • ugi

        protected ugi
    • Constructor Detail

      • UGIAssumingTransport

        public UGIAssumingTransport​(org.apache.thrift.transport.TTransport wrapped,
    • Method Detail

      • open

        public void open()
                  throws org.apache.thrift.transport.TTransportException
        open in class FilterTransport