Quantcast
Channel: Apache Timeline
Viewing all articles
Browse latest Browse all 5648

Pig Schema to load the data

$
0
0
Hi All,

I have Input data format as below to represent the outgoing links from a source URL i.e Source URL 1 has 2 and 3 outgoing URLs

1 2 3

2 3 4

3 4

4 1

And I would like to load into Pig as below

So, Ou

(1,(2,3))

(2,(3,4))

(3,(4))

(4,(1))

Can I do this using default AS schema or Do I have to write a custom loader function.

Thanks,

Akoppula

Viewing all articles
Browse latest Browse all 5648

Trending Articles