Hello all,

I'm new to Hadoop and Pig, and I've got a question.  I've got relation that
looks like this via GROUP

((customer1,2011-10-07,GET,200),{....})
((customer1,2011-10-07,PUT,201),{....})
((customer1,2011-10-07,PUT,202),{....})
((customer2,2011-10-07,GET,200),{....})
((customer2,2011-10-07,PUT,201),{....})
((customer2,2011-10-07,PUT,202),{....})


I'd like each group (i.e. the data in the {...}) stored separately, and I'd
like to use the values in the first tuple to name my file, so the first file
would be customer1-2011-10-07-GET-200, and the second would be
customer1-2011-10-07-PUT-201, etc.  Is this possible? I can only see how to
save a single full relation to file, and I can't find any documentation that
states how I might use variables to name things.

Thanks,
Dustin

Reply via email to