Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 Search Hadoop and all its subprojects:

Switch to Threaded View
Pig >> mail # user >> pig union with avro


Copy link to this message
-
Re: pig union with avro
hello,

I am doing this

DEFINE AVRO_LOAD org.apache.pig.piggybank.strorage.avro.AvroStorage();

A = load '/user/abhi/a.txt' using AVRO_LOAD;

B = load '/user/abhi/b.txt' using AVRO_LOAD;

C = UNION A , B;

here script is failing with the following error

*ERROR org.apache.pig.tools.grunt.Grunt - ERROR 1051 : cannot cast to byte
array*

In the pig logs the error is

*ERROR 1056 problem while casting inputs of union*.

Script was running fine before, but it is failing now with the above error

Regards
abhishek
On Sat, Jun 15, 2013 at 7:44 PM, abhishek dodda
<[EMAIL PROTECTED]>wrote:

> hello,
>
> I am doing this
>
> DEFINE AVRO_LOAD org.apache.pig.piggybank.strorage.avro.AvroStorage();
>
> A = load '/user/abhi/a.txt' using AVRO_LOAD;
>
> B = load '/user/abhi/b.txt' using AVRO_LOAD;
>
> C = UNION A , B;
>
> here script is failing with the following error
>
> ERROR org.apache.pig.tools.grunt.Grunt - ERROR
>
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB