Skip to content

wangyupush/homework7

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

homework7

本次实验采用的windows10的系统,因为我的双系统Ubuntu16.04出了一些问题,提示没有可用磁盘空间

本次实验安装的是Hive本地模式,使用的是mysql数据库

开启hive后,首先创建表myNewsWord(count int,word string)

create

查看表的结构

create

因为Project1跑出的是小数据集文件,所以使用的输出文件内的项较少

输入 load data inpath 'hdfs://localhost:9000/output/part-r-00000' into table myNewsWord;显示如下:

create create

首先判断词频>50的

create

输出结果

create

判断词频>80的

create

输出结果

create

判断词频大于50小于80的

create

输出结果

create

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published