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

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


+
Jerry Lam 2013-06-06, 21:47
Copy link to this message
-
Re: Processing TSV files using Pig
Hi, Jerry:
This seems what you need.
http://mail-archives.apache.org/mod_mbox/pig-user/201301.mbox/%3CCAB-acjMoZNyeTkL+[EMAIL PROTECTED]%3E

Johnny
On Thu, Jun 6, 2013 at 2:47 PM, Jerry Lam <[EMAIL PROTECTED]> wrote:

> 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
>
+
Jerry Lam 2013-06-07, 20:25