-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.html
310 lines (249 loc) · 14.6 KB
/
index.html
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=1024" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<title>How to set up Zeppelin on AWS EMR</title>
<meta name="description" content="How to set up Zeppelin on AWS EMR." />
<meta name="author" content="Sam Chapin" />
<link href="http://fonts.googleapis.com/css?family=Open+Sans:regular,semibold,italic,italicsemibold|PT+Sans:400,700,400italic,700italic|PT+Serif:400,700,400italic,700italic" rel="stylesheet" />
<link href="css/presentation.css" rel="stylesheet" />
<link href="css/steps.css" rel="stylesheet" />
<link rel="shortcut icon" href="img/favicon.png" />
<link rel="apple-touch-icon" href="img/apple-touch-icon.png" />
</head>
<body class="impress-not-supported">
<div class="fallback-message">
<p>Your browser <b>doesn't support the features required</b> by impress.js, so you are presented with a simplified version of this presentation.</p>
<p>For the best experience please use the latest <b>Chrome</b>, <b>Safari</b> or <b>Firefox</b> browser.</p>
</div>
<div id="impress">
<div id="start" class="step" data-x="0" data-y="-1000">
<div id="zeppelin"></div>
<p class="navigation">Arrow Keys + Space Bar to navigate</p>
<br />
<p><a href="#set-up-choice">🔽 How to set up Zeppelin</a>, and<br > <a href="#use-zeppelin">⏬ How to use Zeppelin</a>, from scratch<sup class="superscript">†</sup>.</p>
<br />
<p class="float-right">But first, <a href="#what-well-be-making-description">▶️ an overview</a>.</p>
<br class="float-clear" />
<p class="footnote">†: <b>Scratch</b> assumes you've created an <a href="https://aws.amazon.com/free" class="external" target="_blank">AWS account</a> and have admin rights.</p>
</div>
<div id="what-well-be-making-description" class="step" data-x="1000" data-y="-1000">
<h1>What we'll be making:</h1>
<p>
<a href="https://zeppelin.apache.org/" class="external" target="_blank">Zeppelin</a> as a user interface for coding
<a href="http://spark.apache.org/" class="external" target="_blank">Spark</a>, run on
<a href="https://aws.amazon.com/emr/" class="external" target="_blank">AWS EMR</a> with multiple
<a href="https://aws.amazon.com/ec2/" class="external" target="_blank">AWS EC2</a> machines as a cluster, accessing public data hosted on
<a href="https://aws.amazon.com/s3/" class="external" target="_blank">AWS S3</a>.
</p>
<br />
<p>Or, for the more visually inclined...</p>
</div>
<div id="what-well-be-making-diagram" class="step" data-x="1000" data-y="-600" data-scale="0.4">
</div>
<div id="set-up-choice" class="step" data-x="0" data-y="1500">
<h1>How do you want to set up Zeppelin?</h1>
<div class="choice web">
<a href="#set-up-web-login">
<span class="header">AWS web interface</span>
</a>
</div>
<div class="choice shell">
<a href="#set-up-shell-1">
<span class="header">AWS CLI</span>
</a>
</div>
</div>
<div id="set-up-web-login" class="step" data-x="1000" data-y="1000">
<p>
First things first, <br />
<a href="https://console.aws.amazon.com/" class="external" target="_blank">log into your account</a>.
</p>
<a href="https://console.aws.amazon.com/" class="external" target="_blank"><div class="set-up-web login"></div></a>
</div>
<div id="set-up-web-keypair-description" class="step" data-x="2000" data-y="1000">
<p>Once logged in, let's first make a keypair so you can securely connect (<a href="http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/AccessingInstancesLinux.html" class="external" target="_blank">via SSH</a>) to the <a href="#what-well-be-making-diagram">master instance</a> in case you want to debug. <i>(keypairs are free)</i></p>
<br />
<br />
</div>
<div id="set-up-web-keypair-part-1" class="step" data-x="1700" data-y="1200" data-scale="0.25">
<ul>
<li>Go to the <a href="https://us-west-2.console.aws.amazon.com/ec2/v2/home?region=us-west-2#KeyPairs:sort=keyName" class="external" target="_blank">EC2 key-pair UI</a>.</li>
<li>Click "Create Key Pair."</li>
</ul>
<a href="https://us-west-2.console.aws.amazon.com/ec2/v2/home?region=us-west-2#KeyPairs:sort=keyName" class="external" target="_blank"><div class="set-up-web keypair-splash"></div></a>
</div>
<div id="set-up-web-keypair-part-2" class="step" data-x="2000" data-y="1200" data-scale="0.25">
<ul>
<li>Enter a name.</li>
<li>Create it.<li>
</ul>
<div class="set-up-web keypair-naming"></div>
</div>
<div id="set-up-web-keypair-part-3" class="step" data-x="2300" data-y="1200" data-scale="0.25">
<ul>
<li>Download the pem file, back it up.</li>
<li>You can use this to <a href="http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/AccessingInstancesLinux.html" class="external" target="_blank">SSH onto the cluster</a>.</li>
</ul>
<div class="set-up-web keypair-download"></div>
</div>
<div id="set-up-web-security-group-description" class="step" data-x="3000" data-y="1000">
<p>Next, let's create a <a href="http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_SecurityGroups.html" class="external" target="_blank">security group</a> with an opening for zeppelin so we can connect <a href="#what-well-be-making-diagram">via our browser</a>. <i>(security groups are free)</i></p>
<br />
<br />
</div>
<div id="set-up-web-security-group-part-1" class="step" data-x="2850" data-y="1200" data-scale="0.25">
<ul>
<li>Go to the <a href="https://us-west-2.console.aws.amazon.com/ec2/v2/home?region=us-west-2#SecurityGroups:sort=groupId" class="external" target="_blank">EC2 security group UI</a>.</li>
<li>Click "Create Security Group."</li>
</ul>
<a href="https://us-west-2.console.aws.amazon.com/ec2/v2/home?region=us-west-2#SecurityGroups:sort=groupId" class="external" target="_blank"><div class="set-up-web security-group-splash"></div></a>
</div>
<div id="set-up-web-security-group-part-2" class="step" data-x="3150" data-y="1200" data-scale="0.25">
<p>After naming, create an inbound TCP rule for port 8890 (Zeppelin will use this). Then, create the security group.</p>
<div class="set-up-web security-group-setup"></div>
</div>
<div id="set-up-web-emr-description" class="step" data-x="4000" data-y="1000">
<p>
We're logged in, we have a keypair to SSH with, and a security group that allows our browser.
</p>
Now we need to create <a href="#what-well-be-making-diagram">the orange stuff</a>.
</p>
<br />
<br />
</div>
<div id="set-up-web-emr-part-1" class="step" data-x="3700" data-y="1200" data-scale="0.25">
<ul>
<li>Navigate to the <a href="https://us-west-2.console.aws.amazon.com/elasticmapreduce/home?region=us-west-2#" class="external" target="_blank">EMR UI</a>.</li>
<li>Click <a href="https://us-west-2.console.aws.amazon.com/elasticmapreduce/home?region=us-west-2#quick-create:#" class="external" target="_blank">"Create Cluster"</a>.</li>
</ul>
<a href="https://us-west-2.console.aws.amazon.com/elasticmapreduce/home?region=us-west-2#" class="external" target="_blank"><div class="set-up-web emr-splash"></div></a>
</div>
<div id="set-up-web-emr-part-2" class="step" data-x="3900" data-y="1150" data-scale="0.10">
<p>Break the gloves out, we're getting <i>advanced</i>.</p>
<div class="set-up-web emr-conf-advanced"></div>
</div>
<div id="set-up-web-emr-part-3" class="step" data-x="3900" data-y="1195" data-scale="0.10">
<p>Choose Hadoop + Spark + Zeppelin.</p>
<small>(You can <a href="http://docs.aws.amazon.com/emr/latest/ReleaseGuide/emr-configure-apps.html" class="external" target="_blank">configure Zeppelin</a> later through that configuration field.)</small>
<div class="set-up-web emr-conf-software"></div>
</div>
<div id="set-up-web-emr-part-4" class="step" data-x="3900" data-y="1245" data-scale="0.10">
<p>Steps are irrelevant to Zeppelin.</p>
<p><i>Neeeext.</i></p>
<small>(If you submit a long running spark job, you'd do it as a step.)</small>
<div class="set-up-web emr-conf-steps"></div>
</div>
<div id="set-up-web-emr-part-5" class="step" data-x="4050" data-y="1150" data-scale="0.10">
<p>What location and network to put the cluster in.</p>
<p>Defaults are fine.</p>
<div class="set-up-web emr-conf-deployment"></div>
</div>
<div id="set-up-web-emr-part-6" class="step" data-x="4050" data-y="1207" data-scale="0.10">
<p>Set up the machine types in the cluster. Defaults are fine, but higher memory is usually better. <i>Neeeext.</i></p>
<div class="set-up-web emr-conf-instances"></div>
</div>
<div id="set-up-web-emr-part-7" class="step" data-x="4200" data-y="1150" data-scale="0.10">
<p>Remove termination protection - keeping the cluster on means paying for it.</p>
<div class="set-up-web emr-conf-termination"></div>
</div>
<div id="set-up-web-emr-part-8" class="step" data-x="4200" data-y="1200" data-scale="0.10">
<p>Add tags of meaning to allow you to track & manage your clusters. Not necessary. <i>Neeeext.</i></p>
<div class="set-up-web emr-conf-tags"></div>
</div>
<div id="set-up-web-emr-part-9" class="step" data-x="4350" data-y="1150" data-scale="0.10">
<p>Use <a href="#set-up-web-keypair-description">the keypair</a> we previously created. If you forget this, you won't be able to SSH.</p>
<div class="set-up-web emr-conf-keypair"></div>
</div>
<div id="set-up-web-emr-part-10" class="step" data-x="4350" data-y="1206" data-scale="0.10">
<p>Add to master additional <a href="#set-up-web-security-group-description">the security group</a> we previously created, then click "Create Cluster".</p>
<div class="set-up-web emr-conf-security-groups"></div>
</div>
<div id="set-up-web-emr-startup" class="step" data-x="5000" data-y="1000">
<p><i>That's it.</i> You've created the cluster. Don't worry, it's natural to have to wait about 10 minutes for everything to provision.</p>
<br />
<p>Here's what you should see happen:</p>
<br />
<br />
</div>
<div id="set-up-web-emr-startup-part-1" class="step" data-x="4650" data-y="1250" data-scale="0.25">
<p>Scheduling EC2 instances in</p>
<div class="set-up-web emr-startup-starting"></div>
</div>
<div id="set-up-web-emr-startup-part-2" class="step" data-x="4900" data-y="1250" data-scale="0.25">
<p>Master instance provisioned & loading</p>
<div class="set-up-web emr-startup-master-started"></div>
</div>
<div id="set-up-web-emr-startup-part-3" class="step" data-x="5150" data-y="1250" data-scale="0.25">
<p>Core nodes provisioned & loading</p>
<div class="set-up-web emr-startup-bootstrap"></div>
</div>
<div id="set-up-web-emr-startup-part-4" class="step" data-x="5400" data-y="1250" data-scale="0.25">
<p>All setup finished, waiting for you</p>
<div class="set-up-web emr-startup-started"></div>
</div>
<div id="set-up-web-emr-shutdown" class="step" data-x="6000" data-y="1000">
<h1>Word to the wise:</h1>
<p>Terminate your cluster when you're done. <b>You're spending money right now</b>.</p>
</div>
<div id="set-up-shell-1" class="step" data-x="1000" data-y="2000">
AWS CLI setup - TODO. <br />
<small>Please <a href="#whodunnit">get in contact</a> if you think you can fill this part in.</small>
</div>
<div id="use-zeppelin" class="step" data-x="0" data-y="4000">
<p>If you have a running cluster, <a href="#use-waiting-state">Let's use it ⏩</a></p>
<p>If you've set up, but it's off, <a href="#use-clone">Lets clone one ▶️</a></p>
<p>Otherwise, <a href="#set-up-choice">Set up a Zeppelin cluster 🔼</a></p>
</div>
<div id="use-clone" class="step" data-x="1000" data-y="4000">
<p>Cloning a cluster copies its configuration to a new cluster. Clone a known good configuration.</p>
<div class="use clone"></div>
</div>
<div id="use-waiting-state" class="step" data-x="2000" data-y="4000">
<p>Make sure you have a cluster in the <span class="waiting-state">Waiting</span> state. It'll take about 10 minutes to get there from startup.</p>
<div class="use emr-startup-started"></div>
</div>
<div id="use-address" class="step" data-x="3000" data-y="4000">
<p>Copy the "Master public DNS". Paste it into your browser bar, and add <span class="preformat">:8890</span></p>
<p class="smaller">This is the port we <a href="#set-up-web-security-group-description">opened on the security group</a> that we <a href="#set-up-web-emr-part-10">added to the cluster</a>.</p>
<p class="smaller">Should look like <span class="preformat">ec2-54-69-18-73.us-west-2.compute.amazonaws.com:8890</span>.</p>
<div class="use address"></div>
</div>
<div id="use-zeppelin-splash" class="step" data-x="4000" data-y="4000">
<p>That's cooking with hydrogen.</p>
<p>Import a notebook from any of <a href="https://github.com/sbchapin/how-to-aws-emr-zeppelin/tree/master/notebooks" class="external" target="_blank">these example notebooks</a>.</p>
<i>or</i>
<p>Check out zeppelin's default notebook.</p>
<div class="use zeppelin-splash"></div>
</div>
<div id="use-zeppelin-default-notebook" class="step" data-x="5000" data-y="4000">
<div class="use zeppelin-default-notebook"></div>
</div>
<div id="whodunnit" class="step" data-x="-5000" data-y="2000" data-scale="10">
<ul>
<li>Created by <a href="https://github.com/sbchapin" class="external" target="_blank">@sbchapin</a> (with much ❤️).</li>
<li>Built with <a href="https://github.com/impress/impress.js/" class="external" target="_blank">impress.js</a>.</li>
<li>Hosted on <a href="https://pages.github.com/" class="external" target="_blank">Github Pages</a>.</li>
<li>Versioned on <a href="https://github.com/sbchapin/how-to-aws-emr-zeppelin" class="external" target="_blank">Github</a>.</li>
</ul>
<span class="footnote">Get your name on here. Present this to people that want to learn, or <a href="https://github.com/sbchapin/how-to-aws-emr-zeppelin" class="external" target="_blank">update these slides to make them better</a>.</span>
</div>
<div id="overview" class="step" data-x="3000" data-y="1500" data-scale="10">
</div>
</div>
<!-- This is bad practice, but at least we're supporting em. -->
<div class="hint">
<p>Use a spacebar or arrow keys to navigate</p>
</div>
<script>
if ("ontouchstart" in document.documentElement) {
document.querySelector(".hint").innerHTML = "<p>Tap on the left or right to navigate</p>";
}
</script>
<!-- Start the impress pres -->
<script src="js/impress.js"></script>
<script>impress().init();</script>
</body>
</html>