I'm creating a PIG query running on Hue.
The first part of my query does run:
REGISTER piggybank.jar
A = LOAD '/durocan/staging/installationconfigs/InstallationConfigExample.xml' using org.apache.pig.piggybank.storage.XMLLoader('Installation') as (x:chararray);
The second part fails:
B = FOREACH A GENERATE org.apache.pig.piggybank.evaluation.xml.XPath(x, 'Installation/Durocan/Sensors/Sensor/Name');
dump B;
Error:
Could not resolve org.apache.pig.piggybank.evaluation.xml.XPath
How is it possible that org.apache.pig.piggybank.storage.XMLLoader get's resolved and org.apache.pig.piggybank.evaluation.xml.XPath is not?