Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
Avro >> mail # user >> COnverting CSV files to avro and back to text


Copy link to this message
-
Re: COnverting CSV files to avro and back to text
You need to adapt this Tool for your own requirements.

You can possibly use the SchemaBuilder[0] to build a schema @Runtime which
you would then pass to DataFileWriter.write(schema, outStream). Thats how I
would try it over then refine it for your use case. Any others ideas?

[0]
http://avro.apache.org/docs/current/api/java/index.html?org/apache/avro/SchemaBuilder.html

On Tue, Jul 8, 2014 at 5:10 PM, Bhuvana Bellala <
[EMAIL PROTECTED]> wrote:
*Lewis*