Shan, while Prashant's solution works, why not just have a STORE statement to the local filesystem? This is the much cleaner way to do it.
2012/6/13 shan s <[email protected]> > It works, thanks. > I looked up http://tldp.org/LDP/abs/html/io-redirection.html but still > could not figure why your suggestion works. > > If & is inclusive of 1 & 2, either 1 or 2 should have worked... But 1>a.txt > ignores it. > Curious..Could you please explain. > Thanks! > On Thu, Jun 14, 2012 at 3:51 AM, Prashant Kommireddi <[email protected] > >wrote: > > > Try > > > > pig -x mapred -l logs -param $xyz=1000 pqr.pig &>a.txt > > > > On Wed, Jun 13, 2012 at 9:05 AM, shan s <[email protected]> wrote: > > > > > How do I store the pig console output to a file. > > > pig -x mapred -l logs -param $xyz=1000 pqr.pig >> a.txt does not work > for > > > me. Are there any tricks to make this work? > > > Or is it available somewhere else. > > > > > > Thanks, Prashant. > > > > > >
