Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 Search Hadoop and all its subprojects:

Switch to Threaded View
Pig >> mail # user >> Processing TSV files using Pig


Copy link to this message
-
Processing TSV files using Pig
Hi pig users,

I wonder if anyone has experience in processing TSV files with Pig?
Usually a TSV file contains a header line describing the columns. For
example:

---- sample.tsv ----
first_name    last_name    age
foo               bar              1

I want to use the first line of TSV as the schema with chararray as data
type for all fields.

Is there a loader readily available for this kind of scenario?

Thank you,

Jerry
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB