Hi,
I'm having some challenges with a load function. It only seems to work with a
void constructor. The Java code has a void constructor and a String
constructor, much like the SimpleTextLoader example. Any thoughts on what
might be going wrong?
public ShoppingReader() {
parms = "";
}
public ShoppingReader(String tmp) {
parms = tmp;
}
grunt> A = LOAD '/user/alanw/*.xml' USING
com.sabre.pigshop.ShoppingReader('all') AS (x);
2012-04-06 16:04:08,593 [main] ERROR org.apache.pig.tools.grunt.Grunt - ERROR
2999: Unexpected internal error. could not instantiate
com.sabre.pigshop.ShoppingReader' with arguments '[all]'
Thanks,
Alan.