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 a custom schema


Copy link to this message
-
Loading a custom schema
Hi,

I am trying to load a tsv file using PigStorage

input_data = load 'input.tsv' using PigStorage('\t','-schema');

This loads the tsv file as per the .pig_schema file present in the input folder.

Is there any way to load the schema from a custom path? For ex, say I have the schema saved in a different directory and a different name (not.pig_schema) than the directory where input file is located.

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