Skip to content

Instantly share code, notes, and snippets.

@vatsan
Last active August 29, 2015 14:09
Show Gist options
  • Save vatsan/e606a7f5519fac0ba9be to your computer and use it in GitHub Desktop.
Save vatsan/e606a7f5519fac0ba9be to your computer and use it in GitHub Desktop.
/**
* Gautam Muralidhar, Srivatsan Ramanujam, Nov-2014
* External Table defs.
**/
create external table ocv.src_image_ext
(
img_name varchar,
img varchar
)
LOCATION('pxf://hdm1:50070/user/user-name/opencvexample/imgseqfile/part-r-00000?Profile=HdfsTextSimple')
FORMAT 'TEXT' (delimiter = E'\t');
--Create a table to save the sequence file
create table ocv.src_image
as
(
select *
from ocv.src_image_ext
)
distributed by (img_name);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment