Re: logging in pig

2011-03-22 Thread Daniel Dai
Pig output goes to STDOUT, info goes to STDERR. If you want to log both, use pig > filename 2>&1 You can open a file to log inside UDF, but your log will be in different work nodes. For debugging purpose, usually I print some debugging output to STDOUT, and check the JobTracker UI. Dani

logging in pig

2011-03-22 Thread Lai Will
Hello, This may seem a dumb question.. Is there a way to log the pig output to a file? I tried pig test.pig > filename However that does not work. A related question: How can we use logging in a UDF that logs out to a file? Best, Will