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.