Grokbase Groups Pig user July 2010
FAQ
I call a pig script

pig -param DATE=$date ~/bin/script.pig

inside of the pig script I filter records thru a perl udf


DEFINE parser `parser.pl` SHIP ( 'parser.pl' );

------------------------------------------------------


raw_records = LOAD '/logs/$DATE';
parsed_recs = STREAM raw_records THROUGH parser;

A simple question "How do I access the date parameter inside of the perl
script?"

Thanks

Allan.

Search Discussions

Discussion Posts

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 1 of 2 | next ›
Discussion Overview
groupuser @
categoriespig, hadoop
postedJul 27, '10 at 1:18p
activeJul 27, '10 at 6:45p
posts2
users2
websitepig.apache.org

2 users in discussion

Kochis, Allan: 1 post Dmitriy Ryaboy: 1 post

People

Translate

site design / logo © 2022 Grokbase