1、创建表结构指定分隔符
代码语言:javascript复制drop table XXX;
create table XXX(
.....
)partitioned by(dt string)
row format delimited fields
terminated by 't';
2、数据导入
代码语言:javascript复制load DATA LOCAL inpath 'test' overwrite into TABLE XXX partition(dt='20200417');
3、数据导出
代码语言:javascript复制insert overwrite local directory '/usr/home/XXX'
row format delimited
fields terminated by ','
select
.....