That doesn't really make sense, much like it doesn't say to store the same file as both a pdf and a word file simultaneously. you only get 1 format for 1 file. You can make two copies, of course, but that's not what you are after here.
What you probably want to do is modify MultiStorage to implement StoreMetadata via JsonSchema (which is what PigStorageSchema does). D On Thu, Oct 13, 2011 at 3:22 AM, kiranprasad <[email protected]>wrote: > HI > > Can I use 2 methods while STORING the output, If yes how? > > Ex: > REGISTER contrib/piggybank/java/piggybank.jar; > A= LOAD 'E:/data/June_PAG_Sample.txt' USING PigStorage('|'); > B = GROUP A BY $3; > C= FOREACH B GENERATE FLATTEN(A); > D= FOREACH B GENERATE group; > STORE USING > org.apache.pig.piggybank.storage.MultiStorage('E:/PIGOUTPUT/SL','3', > 'none') > org.apache.pig.piggybank.storage.PigStorageSchema() > > Regards > Kiran.G
