无法从loadfunc org.apache.pig.builtin.avrostorage获取架构

x0fgdtte  于 2021-06-02  发布在  Hadoop
关注(0)|答案(1)|浏览(342)

我在运行pig脚本时出现以下错误

REGISTER /opt/cloudera/parcels/CDH/lib/pig/lib/avro.jar
REGISTER /opt/cloudera/parcels/CDH/lib/pig/lib/json-simple-1.1.jar
REGISTER /opt/cloudera/parcels/CDH/lib/pig/lib/jackson-core-asl-1.8.8.jar
REGISTER /opt/cloudera/parcels/CDH/lib/pig/lib/jackson-mapper-asl-1.8.8.jar
REGISTER /opt/cloudera/parcels/CDH/lib/pig/piggybank.jar
list_cookies = LOAD '/user/xyz/testbed/llama-2014-Oct-12d/abc'
    USING org.apache.pig.piggybank.storage.avro.AvroStorage();

出现以下错误

2014-10-22 11:51:14,705 [main] ERROR org.apache.pig.tools.grunt.Grunt - ERROR 2245: Cannot get schema from loadFunc org.apache.pig.builtin.AvroStorage
Details at logfile: /home/xyz/pig_1413991623605.log
htzpubme

htzpubme1#

在我的例子中,这仅仅是输入文件夹不存在的事实。清管器错误消息是错误的,没有任何帮助。将输入文件夹更改为现有文件夹后,此错误消失。所以,一定要检查之前,花很多时间更难调试!

相关问题