Pig, mail # user - Re: ClassCastExcetion on JOIN - 2014-03-16, 21:52
 Search Hadoop and all its subprojects:

Switch to Threaded View
Copy link to this message
Re: ClassCastExcetion on JOIN
When you load the data here you define the schema of everything but what's
in props:
data = LOAD 'test2.txt' AS (etype:chararray, eid:long, props:[{}]);

I think what's in props then is defaulted to a bytearray, and I would guess
it's complaining about this line:
movie_actors_flattenlist = FOREACH actors_map GENERATE etype, eid,
as (actor_etype:chararray,actor_eid:long);

If I had to guess I would say try defining the nested schema of props and
see if that works.
On Sun, Mar 16, 2014 at 2:43 PM, Davide Brambilla <
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