hadoop - Unable to open iterator for alias -Pig -
i trying load xml file using xmlloader(piggybank) in pig, error saying "unable open iterator alias b". have written following code:
register /home/hdfs/spig/trunk/contrib/piggybank/java/piggybank.jar = load '/core-site.xml'using org.apache.pig.piggybank.storage.xmlloader('property') (x:chararray); b = foreach generate flatten(regex_extract_all(x,'<property>\\s*<name>(.*) </name>\\s*<value>(.*)</value>\\s*<description>(.*)</description>\\s*</property>')); dump b;
the following log file:
pig stack trace
error 1066: unable open iterator alias a
org.apache.pig.impl.logicallayer.frontendexception: error 1066: unable open iterator alias @ org.apache.pig.pigserver.openiterator(pigserver.java:935) @ org.apache.pig.tools.grunt.gruntparser.processdump(gruntparser.java:754) @ org.apache.pig.tools.pigscript.parser.pigscriptparser.parse(pigscriptparser.java:376) @ org.apache.pig.tools.grunt.gruntparser.parsestoponerror(gruntparser.java:230) @ org.apache.pig.tools.grunt.gruntparser.parsestoponerror(gruntparser.java:205) @ org.apache.pig.tools.grunt.grunt.exec(grunt.java:81) @ org.apache.pig.main.run(main.java:631) @ org.apache.pig.main.main(main.java:177) @ sun.reflect.nativemethodaccessorimpl.invoke0(native method) @ sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:57) @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:43) @ java.lang.reflect.method.invoke(method.java:606) @ org.apache.hadoop.util.runjar.run(runjar.java:221) @ org.apache.hadoop.util.runjar.main(runjar.java:136) caused by: java.io.ioexception: job terminated anomalous status failed @ org.apache.pig.pigserver.openiterator(pigserver.java:927) ... 13 more
looks 1 of jobs might have failed.
caused by: java.io.ioexception: job terminated anomalous status failed
Comments
Post a Comment