Skip to content

Instantly share code, notes, and snippets.

@tori-takashi
Created March 15, 2019 06:07
Show Gist options
  • Save tori-takashi/122c66ea4848aed4a2129dbf0dc733d3 to your computer and use it in GitHub Desktop.
Save tori-takashi/122c66ea4848aed4a2129dbf0dc733d3 to your computer and use it in GitHub Desktop.
invindex.sh
#!/bin/bash
hadoop jar ./hadoop-streaming-3.2.0.jar \
-input testfile.txt testfile2.txt \
-output i \
-mapper 'inverted_index_mapper.py' \
-reducer 'inverted_index_reducer.py' \
-file inverted_index_mapper.py \
-file inverted_index_reducer.py \
-file testfile.txt \
-file testfile2.txt \
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment