Skip to content
/ local-mr Public

A simple tool for streaming map-reduce task running on local machine with with multiprocessing.

Notifications You must be signed in to change notification settings

kn45/local-mr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Local MR

A simple tool for streaming map-reduce task running on local machine with multiprocessing.
export LC_COLLATE=C to ensure sort behavior.

Usage

  • -i, --input:
    input file
  • -o, --output:
    output file
  • -m, --mapper:
    mapper command
  • -a, --nmap, --nmapper:
    number of mapper
  • -r, --reducer:
    reducer command
  • -b, --nred, --nreducer:
    number of reducer
  • -c, --combine: whether combine the output to a single file, default true

Example

localmr \
--input=./test_mr_input1 \
--input=./test_mr_input2 \
--output=./test_mr_output \
--mapper="awk '{print \$0}'" \
--reducer="cat" \
--nmapper=2 \
--nreducer=5 \
--combine=false

Or refer to

bash example.sh

About

A simple tool for streaming map-reduce task running on local machine with with multiprocessing.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages