百里登风

导航

20.采集项目流程篇之清洗数据绑定到hive表中

先启动hive

 

 

在mydb2这个数据库中创建表;

 create external table mydb2.access(ip string,day string,url string,upflow string) row format delimited fields terminated by ',';

 

 

 

 

 

 把清洗后的数据导入到刚刚创建的hive表中

load data inpath '/uvout/hive/' into table mydb2.access;

 

 

 

 

posted on 2019-08-25 16:46  百里登峰  阅读(306)  评论(0编辑  收藏  举报