Tuesday 26 December 2017

apache pig - I want to extract specific information from XML input using Hadoop Pig Latin

Expected output is: (Hadoop definitive
guide,Tom white,24.90)
.



I have
tried using the Regex_Extract() function. But, no luck yet. Can
someone please help me out?



The input to my
script
is:






Hadoop<br /> DEFINITIVE GUIDE
TOM
WHITE

US
CLOUDERA
24.90
2012


Programming<br /> Pig
Alan
Gates


USA
Horton
Works

30.90
2013


No comments:

Post a Comment

php - file_get_contents shows unexpected output while reading a file

I want to output an inline jpg image as a base64 encoded string, however when I do this : $contents = file_get_contents($filename); print &q...