include a script in another script? ¿error in macro Pig?

2013-07-05 Thread Miguel Angel Martin junquera
hi all: I am using pig 0.11.1 and I want to modularize my pig scripts. I want to have a file with all commons register libraries and functions defines and import or inlude in other scripts. I try with macro feature but I have and error This is the scenario. I have a file *common.pig *with some r

Re: "invalid stream header" UDF error after upgraded to pig 0.11.1

2013-07-05 Thread Jian Fang
Hi Mark, you are right, we had another pig 0.10.0 jar on the class path. Thanks again. On Wed, Jul 3, 2013 at 9:12 PM, Jian Fang wrote: > Thanks Mark. But I am pretty sure that I only have one version of pig. I > wonder if it is a backward compatibility issue of pig 0.11.1. > > > On Wed, Jul 3,

Re: include a script in another script? ¿error in macro Pig?

2013-07-05 Thread Pradeep Gollakota
If it's just registering common jars and defining aliases for UDFs, I think you can do think in .pigrc or in .pigbootup On Fri, Jul 5, 2013 at 6:56 AM, Miguel Angel Martin junquera < mianmarjun.mailingl...@gmail.com> wrote: > hi all: > I am using pig 0.11.1 and I want to modularize my pig script

question about syntax for nested evaluations using bincond

2013-07-05 Thread mark meyer
hello, i am new to pig and have a question regarding the syntax arrangement for nested evaluations using bincond. both of these seem to work and produce identical results. is one syntax "more" correct? C = foreach B generate id, name, role, ((location == 'P02'