hive以文件创建表

create table location(
location string,
ip string,
name string,
city string,
classfication string,
citycode string
)
ROW FORMAT DELIMITED
FIELDS TERMINATED BY ' '
STORED AS TEXTFILE;
load data inpath '/user/data/stats.txt' overwrite into table location;

posted @ 2017-04-19 11:25  残阳飞雪  阅读(398)  评论(0编辑  收藏  举报