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 >> Ignore first record of a file


Copy link to this message
-
Re: Ignore first record of a file
Perhaps the general way to do this is to write a custom loader, but for
this simpler usecase, can you just filter out the record?

FILTER ... BY $0 MATCHES '^[0-9]+'

Norbert

On Wed, Mar 13, 2013 at 8:10 PM, Mix Nin <[EMAIL PROTECTED]> wrote:

> I have a file as follows:
>
>
> event_time        session_id
> 12334545          67890087
>  56788898         87689000
>
>
> I do not want to read the first record of file which consists of  column
> names.
>
> How to write a PIG script for this
>
>
> Thanks
>
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