--TRUNCATE TABLE table_name--drop table table_name--INVALIDATE metaDATA table_name---0清空原来的表数据--truncate table table_name--drop table if exists table_name;---1 创建表结构CREATE TABLE table_name (id string comment '公告id', Campaign_name string comment '活动币种', dt string comment '分区', date_start string comment '活动开始时间', date_end string comment '活动结束时间', text_comment string comment '注释如有' )ROW FORMAT DELIMITED FIELDS TERMINATED BY ','LINES TERMINATED BY 'n'STORED AS TEXTFILE ;---2 文件转换成CSV格式,上传CSV文件到HUE自己名下 ,files,upload---3 将自己名下的CSV文件写入到tmp库创建的表下。加载完,csv 同步到hive中,impala看不到了。LOAD DATA INPATH '/user/username/xxx.csv' OVERWRITE INTO TABLE table_name---4 刷新数据INVALIDATE metaDATA table_name---5.确定数据是否导入成功select * from table_namegroup by dt