'How to write protobuf objects to a hive table and store as sequence file?

I would like to create a hive table to store protobuf objects and output as sequence files

I think we could define input/output format as follows. How do we define the columns?

inputformat 'org.apache.hadoop.mapred.SequenceFileInputFormat' outputformat 'org.apache.hadoop.mapred.SequenceFileOutputFormat'

Let's say I have a UDF that outputs com.google.protobuf.Message.

It'd be great if you could provide an example schema.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source