2

I have the following JSON file in hadoop.

{
  "reviewerID": "ABC1234",
  "productID": "ABCDEF",
  "reviewText": "GOOD!",
  "rating": 5.0,
},
{
  "reviewerID": "ABC5678",
  "productID": "GFMKDS",
  "reviewText": "Not bad!",
  "rating": 3.0,
}

The result of parse that i want is textfile.

ABC1234::ABCDEF::5.0
ABC5678::GFMKDS::3.0

How to parse json file in hadoop?

philantrovert
  • 9,904
  • 3
  • 37
  • 61
DaehyunPark
  • 77
  • 2
  • 6

0 Answers0