Home:ALL Converter>Writing custom java objects to Parquet

Writing custom java objects to Parquet

Ask Time:2016-02-04T20:25:30         Author:learningTheRopes

Json Formatter

I have some custom java objects (which internally are composed of other custom objects). I wish to write these to HDFS in parquet format.

Even after a lot of searching, most suggestions seem to be around using a avro format and the internal AvroConverter from parquet to store the objects.

Seeing this here and here, it seems like I will have to write a custom WriterSupport to accomplish this.

Is there a better way to do this? Which is more optimal, writing custom objects directly or using something like Avro as a intermediate schema definition?

Author:learningTheRopes,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/35200988/writing-custom-java-objects-to-parquet
yy