]> git.somenet.org - pub/jan/adbs.git/blob - ex2/mapreduce/build_run.sh
add ex2.2
[pub/jan/adbs.git] / ex2 / mapreduce / build_run.sh
1 #!/bin/bash
2
3 . /etc/profile
4
5 hdfs dfs -rm -r -f -skipTrash output-dir .staging .Trash
6
7 hadoop com.sun.tools.javac.Main "SomeMapReduce$1.java" TextPair.java CSVSplitter.java
8 jar cf "SomeMapReduce$1.jar" *.class
9 hadoop jar "SomeMapReduce$1.jar" "SomeMapReduce$1" "$2" output-dir
10
11 hdfs dfs -copyToLocal output-dir output-dir
12 hdfs dfs -rm -r -f -skipTrash output-dir .staging .Trash