Cannot get schema from loadFunc org.apache.pig.builtin.AvroStorage

I am getting following error while running following pig script

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();

got following error

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

Answers


In my case, it was simply the fact that the input folder did not exist. Pig error messages are off the mark and not at all helpful. After changing the input folder to one that existed, this error went away. So, be sure to check that before spending a lot of time more difficult debugging!


Need Your Help

Avoid repetition in Definition of Regex

c# .net regex

I am writing a regex to match the contents of a textbox, that should contain numbers and number ranges and commas separating these elements e.g:

Version Control for SharePoint site?

sharepoint version-control tfs project-management

We're working simultaneously on SharePoint sites. We've to move them on a source control system. We've got both VSS and TFS. We'll prefer TFS over VSS because of its reliability. I don't have any i...