Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
Pig, mail # user - NEED HELP in PigStorage


Copy link to this message
-
Re: NEED HELP in PigStorage
Dmitriy Ryaboy 2012-10-12, 20:20
Sounds like however you wrote the data, it has some sort of a binary
delimiter. Figure out what that delimiter is, and tell PigStorage to
use it. For example:

my_data = load 'path/to/data' using PigStorage('\\u001');

D

On Thu, Oct 11, 2012 at 10:23 AM, yogesh dhari <[EMAIL PROTECTED]> wrote:
>
> Hi All ,
>
> How to load it using PigStorage
> Please find the attachment, if I do copy paste of row here then it shows
> blank boxes between columns. but if I open that file these boxes having
>
> 00
> 01
>
> kind of some numbering inside the the boxes.
>
>
> 7 timesascent.in 2008-08-27 true false false 1
> 8 google.co.in 2008-08-27 false false false 1
> 9 search.live.com 2008-08-27 false false false 1
> 10 ipnetor.com 2008-08-27 false false false 1
> 11 ads.indiatimes.com 2008-08-27 false false false 1
> 12 google.com 2008-08-27 false false false 1
> 13 ms.timesofindia.com 2008-08-27 false false false 1
> 14 google.com.my 2008-08-27 false false false 1
> 15 timesascent.co.in 2008-08-27 false false false 1
>
> these boxes are blanks from inside here.
>
>
>
> Thanks & Regards
> Yogesh Kumar
>
>