hadoop - Loading XML to PIG : Error 2998 -


i'm using piggybank-0.12.0.jar, , pig version 0.12 (cdh)

pig --version  apache pig version 0.12.0-cdh5.3.2 (rexported) 

i trying load xml file using xmlloader of piggybank jar. during getting below error:

register piggybank-0.12.0.jar;  define xmlloader org.apache.pig.piggybank.storage.xmlloader();  define regexextractall org.apache.pig.piggybank.evaluation.string.regexextractall();  revisionxml = load 'test3.xml' using xmlloader('rev') (revision:chararray); 

error: error org.apache.pig.tools.grunt.grunt - error 2998: unhandled internal error. found interface org.apache.hadoop.mapreduce.jobcontext, class expected

any idea why coming up.

got solution above error 2998.

to resolve it, either can build piggybank jar source. link: https://cwiki.apache.org/confluence/display/pig/piggybank

in case, had used in built piggybank jar cdh distribution (since, didn't had privilege bypass proxy online download). worked fine me.

thanks,


Comments

Popular posts from this blog

Fail to load namespace Spring Security http://www.springframework.org/security/tags -

sql - MySQL query optimization using coalesce -

unity3d - Unity local avoidance in user created world -