title: How to write gzipped content to an HDFS file in iterations?
body: <p>I am able to write gzipped compressed data to an HDFS file. But what if I have to write this data in iterations. So, for example, in one iteration, I compress a string using the GZIPOutputStream library, and write that compressed string to the HDFS file. For the next iteration, I want to do the same, and add/append the compressed string of that iteration to the HDFS file. Would this be possible to do? The final HDFS file should be in a valid gzipped format.</p>