This repository has been archived by the owner on Aug 11, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstart.sh
executable file
·52 lines (45 loc) · 1.68 KB
/
start.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#!/usr/bin/env sh
hadoop dfs -rmr /user/ical/output-rank
hadoop dfs -mkdir /user/ical/output-rank
hadoop dfs -copyFromLocal -f init /user/ical/init
hadoop dfs -copyFromLocal -f pr /user/ical/pr
hadoop dfs -copyFromLocal -f fin /user/ical/fin
hadoop pipes -D mapreduce.job.name='[Afrizal] Preprocess' \
-D mapreduce.job.maps=122 \
-D mapreduce.job.reduces=122 \
-D mapreduce.pipes.isjavarecordreader=true \
-D mapreduce.pipes.isjavarecordwriter=true \
-program /user/ical/init \
-input /user/ical/input/example \
-output /user/ical/output-rank/init
hadoop pipes -D mapreduce.job.name='[Afrizal] #1' \
-D mapreduce.job.maps=122 \
-D mapreduce.job.reduces=122 \
-D mapreduce.pipes.isjavarecordreader=true \
-D mapreduce.pipes.isjavarecordwriter=true \
-program /user/ical/pr \
-input /user/ical/output-rank/init/* \
-output /user/ical/output-rank/i1
hadoop pipes -D mapreduce.job.name='[Afrizal] #2' \
-D mapreduce.job.maps=122 \
-D mapreduce.job.reduces=122 \
-D mapreduce.pipes.isjavarecordreader=true \
-D mapreduce.pipes.isjavarecordwriter=true \
-program /user/ical/pr \
-input /user/ical/output-rank/i1/* \
-output /user/ical/output-rank/i2
hadoop pipes -D mapreduce.job.name='[Afrizal] #3' \
-D mapreduce.job.maps=122 \
-D mapreduce.job.reduces=122 \
-D mapreduce.pipes.isjavarecordreader=true \
-D mapreduce.pipes.isjavarecordwriter=true \
-program /user/ical/pr \
-input /user/ical/output-rank/i2/* \
-output /user/ical/output-rank/i3
hadoop pipes -D mapreduce.job.name='[Afrizal] Finalize' \
-D mapreduce.job.maps=122 \
-D mapreduce.pipes.isjavarecordreader=true \
-D mapreduce.pipes.isjavarecordwriter=true \
-program /user/ical/fin \
-input /user/ical/output-rank/i3/* \
-output /user/ical/output-rank/final