-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathteragen_nodesVsInputSize.sh
33 lines (26 loc) · 1.85 KB
/
teragen_nodesVsInputSize.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
#50 MB
bin/hadoop jar hadoop-examples-1.2.1.jar teragen 100000 /user/hduser/terasort-input
bin/hadoop jar hadoop-*examples*.jar terasort -Dmapred.map.tasks=2 -Dmapred.reduce.tasks=2 /user/hduser/terasort-input /user/hduser/terasort-output
echo "-delete /user/hduser/terasort-output" | bin/hadoop mdfs start
echo "-delete /user/hduser/terasort-input" | bin/hadoop mdfs start
sleep 100
bin/hadoop jar hadoop-examples-1.2.1.jar teragen 100000 /user/hduser/terasort-input
bin/hadoop jar hadoop-*examples*.jar terasort -Dmapred.map.tasks=2 -Dmapred.reduce.tasks=2 /user/hduser/terasort-input /user/hduser/terasort-output
echo "-delete /user/hduser/terasort-output" | bin/hadoop mdfs start
echo "-delete /user/hduser/terasort-input" | bin/hadoop mdfs start
sleep 100
bin/hadoop jar hadoop-examples-1.2.1.jar teragen 100000 /user/hduser/terasort-input
bin/hadoop jar hadoop-*examples*.jar terasort -Dmapred.map.tasks=2 -Dmapred.reduce.tasks=2 /user/hduser/terasort-input /user/hduser/terasort-output
echo "-delete /user/hduser/terasort-output" | bin/hadoop mdfs start
echo "-delete /user/hduser/terasort-input" | bin/hadoop mdfs start
sleep 100
bin/hadoop jar hadoop-examples-1.2.1.jar teragen 100000 /user/hduser/terasort-input
bin/hadoop jar hadoop-*examples*.jar terasort -Dmapred.map.tasks=2 -Dmapred.reduce.tasks=2 /user/hduser/terasort-input /user/hduser/terasort-output
echo "-delete /user/hduser/terasort-output" | bin/hadoop mdfs start
echo "-delete /user/hduser/terasort-input" | bin/hadoop mdfs start
sleep 100
bin/hadoop jar hadoop-examples-1.2.1.jar teragen 100000 /user/hduser/terasort-input
bin/hadoop jar hadoop-*examples*.jar terasort -Dmapred.map.tasks=2 -Dmapred.reduce.tasks=2 /user/hduser/terasort-input /user/hduser/terasort-output
echo "-delete /user/hduser/terasort-output" | bin/hadoop mdfs start
echo "-delete /user/hduser/terasort-input" | bin/hadoop mdfs start
sleep 100