Use the appendTo feature of the DataFileWriter. See
For a quick setup example, read also:
On Tue, Feb 21, 2012 at 3:15 AM, Vyacheslav Zholudev
<[EMAIL PROTECTED]> wrote:
> is it possible to append to an already existing avro file when it was
> written and closed before?
> If I use
> outputStream = fs.append(avroFilePath);
> then later on I get: java.io.IOException: Invalid sync!
> Probably because the schema is written twice and some other issues.
> If I use outputStream = fs.create(avroFilePath); then the avro file gets
Customer Ops. Engineer
Cloudera | http://tiny.cloudera.com/about