create table temp.dim_dk_vehicle_info_01
(
ecu_id string
,key_type string
,status string
)comment 'tmp中dim层车辆维度信息表'
row format delimited
fields terminated by ','
collection items terminated by 'n'
stored as textfile
;
表存储格式为textfile。二:上传表到服务器
可以通过堡垒机或者xshell进行上传。三:将文件上传到hdfs上。
hdfs dfs -put /root/aaa.csv /opt四:打开hive进行传输数据。
1. hive 2. load data inpath '/opt/aaa.csv' into table temp.dim_dk_vehicle_info;



