先启动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;

先启动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;

来源:https://www.cnblogs.com/braveym/p/11408421.html