You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by GitBox <gi...@apache.org> on 2021/08/06 09:00:56 UTC

[GitHub] [ozone] captainzmc edited a comment on pull request #2495: HDDS-5488. [Ozone-Streaming] Add a new BlockOutputStream/KeyOutputStream to support streaming api

captainzmc edited a comment on pull request #2495:
URL: https://github.com/apache/ozone/pull/2495#issuecomment-894114695


   > * Let's do not extend OutputStream in all the new classes in order to keep the code simple.  If there is a need, we may add it later.
   > * In BlockDataStreamOutput, we should write directly to the underlying stream. We should not use BufferPool and ChunkBuffer in BlockDataStreamOutput anymore since we want to avoid buffer copying.
   
   Hi @szetszwo, I have a question about compatibility here.  We are using HDFS APi, using OFS or o3FS to access Ozone. The old app used like this:
   `FSDataOutputStream fsOut = fs.create(new Path(dst), true);`
   `fsOut.write(str.getBytes());`
   Old applications, such as MapReduce or Spark Tasks, pass in a byte array, which is difficult to change.
   So can we still keep the OutputStream? Because we need its write(byte b[]).  Although using this API will increase the buffer copy of the client, it will resolve compatibility issues.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org