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
| aws --region us-east-1 emr run-job-flow \
--name "Test custom JAR" \
--instances "{
\"ec_2_key_name\": \"my-key\",
\"instance_groups\": [
{
\"name\": \"Master Instance Group\",
\"instance_role\": \"MASTER\",
\"instance_type\": \"m1.small\",
\"instance_count\": 1,
\"market\": \"SPOT\",
\"bid_price\": \"0.06\"
},
{
\"name\": \"Core Instance Group\",
\"instance_role\": \"CORE\",
\"instance_type\": \"m1.small\",
\"instance_count\": 2,
\"market\": \"SPOT\",
\"bid_price\": \"0.06\"
}
],
\"keep_job_flow_alive_when_no_steps\": false,
\"termination_protected\": false
}" \
--steps "[
{
\"name\": \"Example Jar Step\",
\"action_on_failure\": \"CANCEL_AND_WAIT\",
\"hadoop_jar_step\": {
\"jar\": \"s3n://elasticmapreduce/samples/cloudburst/cloudburst.jar\",
\"args\": [
\"s3n://elasticmapreduce/samples/cloudburst/input/s_suis.br\",
\"s3n://elasticmapreduce/samples/cloudburst/input/100k.br\",
\"s3n://my-bucket/cloud\",
\"36\",
\"3\",
\"0\",
\"1\",
\"240\",
\"48\",
\"24\",
\"24\",
\"128\",
\"16\"
]
}
}
]" \
--log-uri "s3n://my-bucket/hadoop/" \
--ami-version "latest"
|