Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Plain 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
+
Prashant Kommireddi 2013-09-26, 08:16
+
Siddhi Borkar 2013-10-03, 03:39