Class FanOutOneBlockAsyncDFSOutputSaslHelper.SaslNegotiateHandler.BuilderPayloadSetter

java.lang.Object
org.apache.hadoop.hbase.io.asyncfs.FanOutOneBlockAsyncDFSOutputSaslHelper.SaslNegotiateHandler.BuilderPayloadSetter
Enclosing class:
FanOutOneBlockAsyncDFSOutputSaslHelper.SaslNegotiateHandler

The asyncfs subsystem emulates a HDFS client by sending protobuf messages via netty. After Hadoop 3.3.0, the protobuf classes are relocated to org.apache.hadoop.thirdparty.protobuf.*. Use Reflection to check which ones to use.
  • Field Details

  • Constructor Details

  • Method Details

    • wrapAndSetPayload

      static void wrapAndSetPayload(org.apache.hadoop.hdfs.protocol.proto.DataTransferProtos.DataTransferEncryptorMessageProto.Builder builder, byte[] payload) throws IOException
      Create a ByteString from byte array without copying (wrap), and then set it as the payload for the builder.
      Parameters:
      builder - builder for HDFS DataTransferEncryptorMessage.
      payload - byte array of payload.
      Throws:
      IOException