Re: Setting the store file name with date

2011-05-23 Thread Dexin Wang
I don't think version is a problem. variables is probably supported from the start of the Pig. Using STORE result INTO 'out-$date'; I mentioned about, when you run the pig script, you just add "-param date=20110522'" to your command line. What is the problem you see? 2011/5/21 Renato Marroq

Re: Setting the store file name with date

2011-05-21 Thread Renato Marroquín Mogrovejo
Thanks Dexin! I tried that but that did not work for me. I am using Pig 0.7, what version of Pig do you use? Yeah I think I could move it aside, but the problem is that I need to keep track of the results, and if I move them aside then I would have to rename the results of each job sequentially bec

Re: Setting the store file name with date

2011-05-20 Thread Dexin Wang
Yeah I do that all the time. STORE result INTO 'out-$date'; Or you could run the pig script then after it's done move the result aside. On May 20, 2011, at 6:51 PM, Renato Marroquín Mogrovejo wrote: > Hi, I have a sequence of jobs which are run daily and usually the logs > and results are e

Setting the store file name with date

2011-05-20 Thread Renato Marroquín Mogrovejo
Hi, I have a sequence of jobs which are run daily and usually the logs and results are erased every time they have to be re-run. Now we want to keep those logs and results, but if the results already exist, the pig job fails. I thought that maybe setting the results' name + date would solve it for