Grokbase Groups Pig user August 2011
FAQ
Hey,
I wanted to see if the following is possible in pig-0.8.1.

a = load '/logs/apache/*/today/access.log.txt' USING PigStorage() AS ('....
tuple')

I want to add to the existing tuple a chararray consisting of the variable
expansion in the '*' above. Would it be possible to do something like that?

thanks,
Sridhar

Search Discussions

  • Daniel Dai at Aug 18, 2011 at 7:34 pm
    Check https://cwiki.apache.org/confluence/display/PIG/Pig+Tips,
    PigStorageWithInputPath

    Daniel
    On Thu, Aug 18, 2011 at 12:19 PM, sridhar basam wrote:
    Hey,
    I wanted to see if the following is possible in pig-0.8.1.

    a = load '/logs/apache/*/today/access.log.txt' USING PigStorage() AS ('....
    tuple')

    I want to add to the existing tuple a chararray consisting of the variable
    expansion in the '*' above. Would it be possible to do something like that?

    thanks,
    Sridhar
  • Sridhar basam at Aug 18, 2011 at 7:53 pm

    On Thu, Aug 18, 2011 at 3:34 PM, Daniel Dai wrote:

    Check https://cwiki.apache.org/confluence/display/PIG/Pig+Tips,
    PigStorageWithInputPath
    Thanks, that looks like exactly what i need.

    Sridhar

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupuser @
categoriespig, hadoop
postedAug 18, '11 at 7:19p
activeAug 18, '11 at 7:53p
posts3
users2
websitepig.apache.org

2 users in discussion

Sridhar basam: 2 posts Daniel Dai: 1 post

People

Translate

site design / logo © 2021 Grokbase