Home | About | Sematext search-lucene.com search-hadoop.com
 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

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.