--内表
create table if not exists t1(
id int
,name string
)
row format delimited
fields terminated by '|'
lines terminated by '\n'
stored as textfile
;
--外表
create external table if not exists t2(
id int
,name string
)
row format delimited
fields terminated by '|'
lines terminated by '\n'
stored as textfile
location '/user/t2'
;