Hi Yogesh, Is 'load' working fine with PigStorage()?? Try to load something using PigStorage(',') and dump it to see if that is working.
Regards, Mohammad Tariq On Wed, Jul 25, 2012 at 4:41 PM, <yogesh.kuma...@wipro.com> wrote: > Hello Dmitriy, > > I have also performed the cat command in hadoop. > > hadoop dfs -cat /hadoop/pig/records/part-m-00000 > > but still it shows same output without commas. > Please suggest > > Thanks & regards > Yogesh Kumar > ________________________________________ > From: Dmitriy Ryaboy [dvrya...@gmail.com] > Sent: Wednesday, July 25, 2012 4:33 PM > To: user@pig.apache.org > Subject: Re: DATA not storing as comma-separted > > Using the store expression you wrote should work. Dump is its own thing and > doesn't know anything about the format you store things in. To see files > created on hdfs, you can use cat. > > On Jul 25, 2012, at 3:48 AM, <yogesh.kuma...@wipro.com> wrote: > >> Hi All, >> >> I am new to PIG, trying to stroe data in HDFS as comma separated by using >> command >> >> store RECORDS into 'hadoop/pig/records' using PigStorage(','); >> >> If I do >> >> dump RECORDS ; >> >> it shows >> >> (YogeshKumar 210 hello) >> (Mohitkumar 211 hi) >> (AAshichoudhary 212 hii) >> (renuchoudhary 213 namestey) >> >> I want it to store as >> >> (YogeshKumar, 210, hello) >> (Mohitkumar, 211,hi) >> (AAshichoudhary, 212, hii) >> (renuchoudhary, 213, namestey) >> >> >> Please suggest and Help >> >> Thanks & Regards >> Yogesh Kumar >> >> >> >> >> Please do not print this email unless it is absolutely necessary. >> >> The information contained in this electronic message and any attachments to >> this message are intended for the exclusive use of the addressee(s) and may >> contain proprietary, confidential or privileged information. If you are not >> the intended recipient, you should not disseminate, distribute or copy this >> e-mail. Please notify the sender immediately and destroy all copies of this >> message and any attachments. >> >> WARNING: Computer viruses can be transmitted via email. The recipient should >> check this email and any attachments for the presence of viruses. The >> company accepts no liability for any damage caused by any virus transmitted >> by this email. >> >> www.wipro.com > > Please do not print this email unless it is absolutely necessary. > > The information contained in this electronic message and any attachments to > this message are intended for the exclusive use of the addressee(s) and may > contain proprietary, confidential or privileged information. If you are not > the intended recipient, you should not disseminate, distribute or copy this > e-mail. Please notify the sender immediately and destroy all copies of this > message and any attachments. > > WARNING: Computer viruses can be transmitted via email. The recipient should > check this email and any attachments for the presence of viruses. The company > accepts no liability for any damage caused by any virus transmitted by this > email. > > www.wipro.com