首先,启动hadoop以及hive

出现以上进程,显示成功
将改名后的文件上传到虚拟机

在hive里面的defaul数据库创建表格
use default;
show tables;
load data local inpath '/export/server/apache-hive-3.1.2-bin' into table sales;

将表格数据导入到表格中
create table sales(day_id string,sale_nbr string,buy_nbr string,cnt string,round string) row format delimited fields terminated by ',';

查询数据
select * from sales;
