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 >> loading multiple map schema


Copy link to this message
-
Re: loading multiple map schema
What version of pig are you using ?

It works for me with 0.7 version and svn trunk version (local mode).

grunt> dump a;
([key2#val2,key1#val1],[key3#[val31,val32]])

On 10/12/10 11:05 PM, "prasenjit mukherjee" <[EMAIL PROTECTED]> wrote:

$cat a.out
[key1#val1,key2#val2]*[key3#[val31,val32]]

grunt> a = load 'a.out' using PigStorage('*') AS (A:[], B:[]);
grunt> dump a;

here is the output :
([key2#val2,key1#val1],)

I guess it is not taking the second map, where the value is not a single
string but a list of strings. Any idea how to load this data type  ?

-Thanks,
Prasen
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