Can you append data to an existing Avro data file? -
Can you append data to an existing Avro data file? -
it seems there isn't way append info existing avro serialized file. i'd have multiple processes writing single avro file, looks each time open it, start on scratch. don't want read in info , write out again.
using ruby illustration code have tried "ab" , "ab+" various settings, no joy.
file = file.open('data.avr', 'wb') schema = avro::schema.parse(schema) author = avro::io::datumwriter.new(schema) dw = avro::datafile::writer.new(file, writer, schema) dw << {"username" => "john", "age" => 25, "verified" => true} dw << {"username" => "ryan", "age" => 23, "verified" => false} dw.close
don't pass schema append file
avro
Comments
Post a Comment