I have the same bug. I read the code... there is no obvious fix.  Arg.

On Feb 2, 2012, at 10:07 PM, Something Something <[email protected]> 
wrote:

> In my Pig script I have something like this...
> 
> %default MY_SCHEMA '/user/xyz/my-schema.json';
> 
> %default MY_AVRO 
> 'org.apache.pig.piggybank.storage.avro.AvroStorage(\'$MY_SCHEMA\')';
> 
> my_files = LOAD '$MY_FILES' USING $MY_AVRO;
> 
> 
> 
> What I have noticed is that when MY_FILES contains only one file, it works 
> fine.
> 
> %default MY_FILES '/user/xyz/file1.avro'
> 
> 
> But when I use a comma separated list it doesn't work. e.g.
> 
> %default MY_FILES '/user/xyz/file1.avro, /user/xyz/file2.avro'
> 
> Basically, I get a message saying something like 'Schema cannot be found'.
> 
> Is there a way to make it work with multiple files?  Please let me know.  
> Thanks.
> 

Reply via email to