- 准备数据
- 在hive创建数据库、表、导入数据
create database interview; #创建数据库
use interview; #使用数据库
create table wordcount(line string); #创建单词统计表(这里表中一行的数据是文档中的一行的字符串)
load data local inpath '/home/data/wordc
create database interview; #创建数据库
use interview; #使用数据库
create table wordcount(line string); #创建单词统计表(这里表中一行的数据是文档中的一行的字符串)
load data local inpath '/home/data/wordc