Setsuna
Setsuna

Reputation: 2141

How to work with JSON in pig?

If i have a text file with JSON, how do I load and store it?

Upvotes: 0

Views: 83

Answers (1)

Louise Miller
Louise Miller

Reputation: 3199

Try using JSONLoader and JSONStorage to load and store the json data, its included in Pig from 0.10.0

http://pig.apache.org/docs/r0.10.0/func.html#jsonloadstore

Upvotes: 2

Related Questions