使用XMLLoader加载XML文件时,我收到错误

时间:2016-01-17 07:25:27

标签: xml hadoop apache-pig bigdata

我正在加载如下:

  A = LOAD'/home/sawanvijay/Datasets/xml/DATA_EMP.xml' USING       org.apache.pig.piggybank.storage.XMLLoader('ROW') AS (M:CHARARRAY);

错误如下所示:

ERROR org.apache.pig.tools.grunt.Grunt - ERROR 1070: Could not resolve org.apache.pig.piggybank.storage.XMLLoader using imports: [, 
org.apache.pig.builtin., org.apache.pig.impl.builtin.]
Details at logfile: /home/sawanvijay/pig_1453003016754.log

1 个答案:

答案 0 :(得分:1)

看来,你没有注册pigybank jar文件。请参阅此处的说明https://cwiki.apache.org/confluence/display/PIG/PiggyBank 注册piggybank jar文件。