Skip to content

A mapreduce work using value of text to count different columns

License

Notifications You must be signed in to change notification settings

Meruem117/mapreduce-count

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MapReduce_count_text

A mapreduce work to count different columns.

Mapper

One line of log =>

  • Key- author or bvid or user_location

  • Value- (type, 1)

type map

key type
author 1
bvid 2
user_location 3

log sample

15:45:52.111 [http-nio-8080-exec-2] INFO niit.start.util.LogGenerator - author:bvid from user_location

Reducer

Mapper (K,V) =>

  • Key: K - key of mapper(author or bvid or user_location)
  • Value: type + "\t" + sum + "\t" + date

type - type of Mapper V

sum - count Mapper V, using type to distinguish

date - process date

Used to have topN, but I think the data is needed for analysis


related project

the results are stored in mysql

use ssh2 to execute mapreduce on linux

springboot project

visualization and front end

Vue

React

About

A mapreduce work using value of text to count different columns

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages