Skip to content

Latest commit

 

History

History
18 lines (12 loc) · 568 Bytes

README.md

File metadata and controls

18 lines (12 loc) · 568 Bytes

Title: Hadoop Search Author: Felipe Sales Date: August 1, 2017 Keywords: java,hadoop

Compile using % mvn install

Run your job using % hadoop jar ./target/wordcount.jar -r -m {input.file} {output.file} {keyword}

To make this a little easier create a shell script called setmeup that will execute the command.

#!/bin/bash
#/usr/local/Cellar/hadoop/1.2.1/bin/hadoop jar ./target/bdp-1.0.jar dataSet1.txt $(date +%s) test

After you create the script, do a chmod +x ./setmeup to make it executable. Then run ./setmeup which should execute the job.