I cannot figure out why HIVE is throwing me an error in the following script:
use <output_db>
drop table if exists <new_tbl>;
create table <new_tbl> like <old_tbl>;
load data local inpath <directory> into table <new_tbl>;
The exception is:
FAILED: ParseException line 4:23 mismatched input '<directory>' expecting StringLiteral near 'inpath' in load statement
Sorry if this is an elementary question. But I've copied it from similar hql statements that work and I can't find a satisfactory answer.