I tried the PigStorageSchema. For some reason it doesnt create the headers. Is it because I am loading the data using another UDF ?
This is the command I used in the pigscript.. STORE out INTO '$OUTPUT' USING org.apache.pig.piggybank.storage.PigStorageSchema(); Thanks, Deepak On 25 May 2011 16:13, Dmitriy Ryaboy <dvrya...@gmail.com> wrote: > You can try PigStorageSchema from the piggybank. > > -----Original Message----- > From: "Subhramanian, Deepak" <deepak.subhraman...@newsint.co.uk> > To: user@pig.apache.org > Sent: 5/25/2011 5:28 AM > Subject: Storing Headers in Pig Output File > > Is there a way to store the headers (titles of each) column using the Store > command in Pig Script (STORE out3 INTO '$OUTPUT' USING PigStorage();. > Right > now it stores only the data. Somewhere I read in Pig0.8 it stores the > header > with map reduce option. Do we have to supply extra parameters ? > > Thanks, Deepak > > -- > "Please consider the environment before printing this e-mail" > > The Newspaper Marketing Agency: Opening Up Newspapers: > www.nmauk.co.uk > > This e-mail and any attachments are confidential, may be legally privileged > and are the property of > News International Limited (which is the holding company for the News > International group, is > registered in England under number 81701 and whose registered office is 3 > Thomas More Square, > London E98 1XY, VAT number GB 243 8054 69), on whose systems they were > generated. > > If you have received this e-mail in error, please notify the sender > immediately and do not use, > distribute, store or copy it in any way. Statements or o > [truncated by sender] > -- Deepak Subhramanian Data & Analytics News International, Digital Technology Email: deepak.subhraman...@newsint.co.uk -- "Please consider the environment before printing this e-mail" The Newspaper Marketing Agency: Opening Up Newspapers: www.nmauk.co.uk This e-mail and any attachments are confidential, may be legally privileged and are the property of News International Limited (which is the holding company for the News International group, is registered in England under number 81701 and whose registered office is 3 Thomas More Square, London E98 1XY, VAT number GB 243 8054 69), on whose systems they were generated. If you have received this e-mail in error, please notify the sender immediately and do not use, distribute, store or copy it in any way. Statements or opinions in this e-mail or any attachment are those of the author and are not necessarily agreed or authorised by News International Limited or any member of its group. News International Limited may monitor outgoing or incoming emails as permitted by law. It accepts no liability for viruses introduced by this e-mail or attachments.