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 >> read csv file as schema


Copy link to this message
-
Re: read csv file as schema
In my company we had to write our own Loader/Storer UDFs for this.
On Wed, Nov 27, 2013 at 6:00 PM, Noam Lavie <[EMAIL PROTECTED]> wrote:

> Hi,
>
> Is there a way to load a csv file with header as schema? (the header's
> fields are the properties of the schema and the other list in the csv file
> will be in the schema format)
>
> For example:
> Name    last name            age
> Noam    lavie                       26
> Map       reduce                  30
>
>
> ð  {name:noam, last name:lavie, age:26}
>
> ð  {name:map, last name:erduce, age:30}
>
>
>
>
> Is it even possible? Do I need to write a special UDF for it? Is there a
> known UDF that does it?
>
> Thanks
> Noam
>
>
> ________________________________
>
> This email contains proprietary and/or confidential information of Pontis.
> If you have received this email in error, please delete all copies without
> delay and do not copy, distribute, or rely on any information contained in
> this email.
>
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