-
Notifications
You must be signed in to change notification settings - Fork 147
/
Copy path00_agenda-5-days-graduate-scala-spark.html
345 lines (311 loc) · 17.2 KB
/
00_agenda-5-days-graduate-scala-spark.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
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
<!doctype html>
<!-- Inspired by view-source:https://brookewenig.github.io/SparkOverview.html -->
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<meta name="description" content="Workshop Agenda | Graduate Scala and Spark | 5 days">
<meta name="author" content="Jacek Laskowski">
<title>Workshop Agenda | Graduate Scala and Spark | 5 days</title>
<link rel="stylesheet" href="reveal.js/css/reveal.css">
<link rel="stylesheet" href="revealjs-css/jacek.css">
<link rel="stylesheet" href="reveal.js/css/theme/beige.css">
<!-- Theme used for syntax highlighting of code -->
<link rel="stylesheet" href="reveal.js/lib/css/zenburn.css">
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
<!-- Printing and PDF exports -->
<script>
var link = document.createElement( 'link' );
link.rel = 'stylesheet';
link.type = 'text/css';
link.href = window.location.search.match( /print-pdf/gi ) ? 'reveal.js/css/print/pdf.css' : 'reveal.js/css/print/paper.css';
document.getElementsByTagName( 'head' )[0].appendChild( link );
</script>
</head>
<body>
<div class="reveal">
<div class="slides">
<section class="intro" data-transition="zoom" id="home">
<span class="menu-title" style="display: none">Home</span>
<p>
<img width="5%" style="background:none; border:none; box-shadow:none;" data-src="images/scala-logo.png">
<img width="17%" style="background:none; border:none; box-shadow:none;" data-src="images/spark-logo.png">
<img width="8%" src="images/jacek_laskowski_20141201_512px.png" style="border: 0">
</p>
<h1><small>Graduate</small> Scala / Spark Workshop <small>5 Days</small></h1>
<h4><a href="https://twitter.com/jaceklaskowski">@jaceklaskowski</a> / <a href="http://stackoverflow.com/users/1305344/jacek-laskowski">StackOverflow</a> / <a href="https://github.com/jaceklaskowski">GitHub</a><br />
Books: <a href="http://bit.ly/mastering-apache-spark">Mastering Apache Spark</a> / <a href="http://bit.ly/spark-structured-streaming">Spark Structured Streaming</a></h4>
<footer style="font-size: small;">©<a href="https://medium.com/@jaceklaskowski">Jacek Laskowski</a> 2017 / @jaceklaskowski / [email protected]</footer>
</section>
<section>
<section id="speaker" data-markdown>
<script type="text/template">
<span class="menu-title" style="display: none">Introduction</span>
<p>
<img width="12%" src="images/jacek_laskowski_20141201_512px.png" style="border: 0">
</p>
<div style="text-align: left">
<p><i class="fa fa-arrow-circle-right success"></i> <b>Jacek Laskowski</b> is an independent consultant</p>
<p><i class="fa fa-arrow-circle-right success"></i> Specializing in <b>Spark</b>, Kafka, Scala, Mesos, DC/OS</p>
<p><i class="fa fa-arrow-circle-right success"></i> Development Services | Consulting | Training</p>
<p><i class="fa fa-arrow-circle-right success"></i> Among contributors to <a href="http://spark.apache.org/releases/spark-release-2-2-0.html#credits">Spark</a> (since <a href="http://spark.apache.org/releases/spark-release-1-6-0.html#credits">1.6.0</a>)</p>
<p><i class="fa fa-arrow-circle-right success"></i> Contact me at **[email protected]**</p> <p><i class="fa fa-arrow-circle-right success"></i> Follow [@JacekLaskowski](https://twitter.com/jaceklaskowski) on twitter to **#LearnSpark**</p>
</div>
<footer style="font-size: small;">©Jacek Laskowski 2017 / @jaceklaskowski / [email protected]</footer>
</script>
</section>
<section id="gitbook-spark">
<div style="text-align: center">
<span class="menu-title" style="display: none">Mastering Apache Spark 2</span>
<p>
<a href="https://bit.ly/mastering-apache-spark">https://bit.ly/mastering-apache-spark</a>
</p>
<p>
<img src="images/jaceklaskowski-gitbook-stats.png" style="border: 0">
</p>
</div>
<footer style="font-size: small;">©Jacek Laskowski 2017 / @jaceklaskowski / [email protected]</footer>
</section>
<section id="gitbook-structured-streaming">
<div style="text-align: center">
<span class="menu-title" style="display: none">Spark Structured Streaming</span>
<p>
<a href="https://bit.ly/spark-structured-streaming">https://bit.ly/spark-structured-streaming</a>
</p>
<p>
<img width="100%" src="images/jaceklaskowski-structured-streaming-gitbook-stats.png" style="border: 0">
</p>
</div>
<footer style="font-size: small;">©Jacek Laskowski 2017 / @jaceklaskowski / [email protected]</footer>
</section>
<section id="stackoverflow">
<div style="text-align: center">
<span class="menu-title" style="display: none">StackOverflow</span>
<p>
<a href="http://stackoverflow.com/users/1305344/jacek-laskowski">StackOverflow</a>
</p>
<p>
<img width="45%" src="images/jaceklaskowski-stackoverflow-stats.png" style="border: 0">
</p>
</div>
<footer style="font-size: small;">©Jacek Laskowski 2017 / @jaceklaskowski / [email protected]</footer>
</section>
</section>
<section id="goal" data-markdown>
<script type="text/template">
# Goal
<p>
Building practical and hands-on experience in<br />
<b><span style="font-size: 140%">Scala</span></b> and <b><span style="font-size: 140%">Apache Spark</span></b><br />
for graduates with some programming experience <br />
(mostly in Python and Java)
</p>
<footer style="font-size: small;">©<a href="https://medium.com/@jaceklaskowski">Jacek Laskowski</a> 2017 / @jaceklaskowski / [email protected]</footer>
</script>
</section>
<section>
<section id="agenda">
<div style="text-align: left">
<h2>Agenda</h2>
<hr>
<p><i class="fa fa-arrow-circle-right success"></i>
<a href="#/day1">Day 1</a> — Just Enough Scala and IntelliJ IDEA
</p>
<p><i class="fa fa-arrow-circle-right success"></i>
<a href="#/day2">Day 2</a> — sbt, Scala Collection API and Apache Spark
</p>
<p><i class="fa fa-arrow-circle-right success"></i>
<a href="#/day3">Day 3</a> — Half-day Scala and Spark
</p>
<p><i class="fa fa-arrow-circle-right success"></i>
<a href="#/day4">Day 4</a> — Option, Aggregations and Joins
</p>
<p><i class="fa fa-arrow-circle-right success"></i>
<a href="#/day5">Day 5</a> — Advanced Scala and Spark
</p>
</div>
<footer style="font-size: small;">©Jacek Laskowski 2017 / @jaceklaskowski / [email protected]</footer>
</section>
<section id="day1" data-markdown>
<script type="text/template">
<span class="menu-title" style="display: none">Day 1</span>
## Day 1 — Just Enough Scala and IntelliJ IDEA
1. [Scala — Just Enough to Develop Spark Applications](https://jaceklaskowski.github.io/spark-workshop/slides/02_scala.html) (with spark-shell)
* Getting familiar with the syntax and **Scala REPL**
* **sbt console**
1. My First Scala Standalone Application
* Using **IntelliJ IDEA**, **sbt package** and **spark-submit**
1. [More Scala Exercises](http://blog.jaceklaskowski.pl/scala-workshop/slides/)
</script>
</section>
<section id="day2" data-markdown>
<script type="text/template">
<span class="menu-title" style="display: none">Day 2</span>
## Day 2 — sbt, Scala Collection API and Apache Spark
1. [sbt — Interactive Build Tool for Apache Spark](https://jaceklaskowski.github.io/spark-workshop/slides/02_sbt.html)
1. [Scala Collection API](http://www.scala-lang.org/api/current/scala/collection/index.html)
* Reviewing **scala.collection** package
* Using "favourites" of [Seq](http://www.scala-lang.org/api/current/scala/collection/immutable/Seq.html)
1. Lunch Break
1. [Into Apache Spark 2 Using spark-shell (and Databricks)](https://jaceklaskowski.github.io/spark-workshop/slides/01_Spark-Intro-Using-Spark-Shell.html)
</script>
</section>
<section id="day3" data-markdown>
<script type="text/template">
<span class="menu-title" style="display: none">Day 3</span>
## Day 3 — Half-day Scala and Spark
1. [Scala Exercises](https://jaceklaskowski.github.io/spark-workshop/slides/02_scala-exercises.html)
1. Lunch Break
1. [Spark SQL](https://jaceklaskowski.github.io/spark-workshop/slides/spark-sql.html)
1. [Columns and Dataset Operators](https://jaceklaskowski.github.io/spark-workshop/slides/spark-sql-columns-and-dataset-operators.html)
1. [Standard and User-Defined Functions](https://jaceklaskowski.github.io/spark-workshop/slides/spark-sql-standard-functions-udfs.html)
</script>
</section>
<section id="day4" data-markdown>
<script type="text/template">
<span class="menu-title" style="display: none">Day 4</span>
## Day 4 — Option, Aggregations and Joins
1. (Scala) [Option](http://www.scala-lang.org/api/2.11.11/#scala.Option)
1. (Spark SQL) [Basic Aggregation](https://jaceklaskowski.github.io/spark-workshop/slides/spark-sql-basic-aggregation.html)
1. Lunch Break
1. (Spark SQL) [Joins](https://jaceklaskowski.github.io/spark-workshop/slides/spark-sql-joins.html)
</script>
</section>
<section id="day5" data-markdown>
<script type="text/template">
<span class="menu-title" style="display: none">Day 5</span>
## Day 5 — Advanced Scala and Spark
1. (Scala) [Seq](http://www.scala-lang.org/api/2.11.11/#scala.collection.Seq)
1. Lunch Break
1. (Scala) Recursive Methods and @tailrec
1. (Scala) [S-99: Ninety-Nine Scala Problems](http://aperiodic.net/phil/scala/s-99/)
1. (Spark SQL) [Windowed Aggregation](https://jaceklaskowski.github.io/spark-workshop/slides/spark-sql-windowed-aggregation.html)
</script>
</section>
</section>
<section>
<section id="prerequisities">
<h1>Prerequisities</h1>
<h4>Be prepared to get the most out of the workshop</h4>
<footer style="font-size: small;">©Jacek Laskowski 2017 / @jaceklaskowski / [email protected]</footer>
</section>
<section>
<div style="text-align: left">
<h2 style="font-size: 1.88em">Prerequisities / Programming Experience</h2>
<span class="menu-title" style="display: none">Programming Experience</span>
<hr>
<p><i class="fa fa-arrow-circle-right success"></i>
Some programming experience using modern programming language, e.g. Scala, Python, Java, F#
</p>
</div>
<footer style="font-size: small;">©Jacek Laskowski 2017 / @jaceklaskowski / [email protected]</footer>
</section>
<section>
<div style="text-align: left">
<h2>Prerequisities / To Be Installed</h2>
<span class="menu-title" style="display: none">To Be Installed</span>
<hr>
<p><i class="fa fa-arrow-circle-right success"></i>
<a href="http://www.oracle.com/technetwork/java/javase/downloads/index.html">Java Platform, Standard Edition (Java SE) 8</a>
</p>
<p><i class="fa fa-arrow-circle-right success"></i>
<a href="https://www.jetbrains.com/idea/download/">IntelliJ IDEA</a> Community Edition with <b>Scala plugin</b>
</p>
<p><i class="fa fa-arrow-circle-right success"></i>
<a href="http://www.scala-sbt.org/download.html">sbt</a>
</p>
</div>
<footer style="font-size: small;">©Jacek Laskowski 2017 / @jaceklaskowski / [email protected]</footer>
</section>
<section>
<div style="text-align: left">
<h2>Prerequisities / To Be Downloaded</h2>
<span class="menu-title" style="display: none">To Be Downloaded</span>
<hr>
<p><i class="fa fa-arrow-circle-right success"></i>
The latest version of <a href="https://spark.apache.org/downloads.html">Apache Spark</a>
</p>
</div>
<footer style="font-size: small;">©Jacek Laskowski 2017 / @jaceklaskowski / [email protected]</footer>
</section>
</section>
<section>
<section id="in-da-clazz">
<h1>In-Class Preparations</h1>
<h4>Make Instructor's Life Slightly Easier. Thanks!</h4>
<footer style="font-size: small;">©Jacek Laskowski 2017 / @jaceklaskowski / [email protected]</footer>
</section>
<section>
<div style="text-align: left">
<h2>Introduce Yourself</h2>
<span class="menu-title" style="display: none">Introduce Yourself</span>
<hr>
<p><i class="fa fa-arrow-circle-right success"></i>
First name
</p>
<p><i class="fa fa-arrow-circle-right success"></i>
What do you expect from the workshop?
</p>
<p><i class="fa fa-arrow-circle-right success"></i>
Where do you want to be with Scala and Spark after 5 days?
</p>
</div>
<footer style="font-size: small;">©Jacek Laskowski 2017 / @jaceklaskowski / [email protected]</footer>
</section>
<section>
<div style="text-align: left">
<h2>Addendum</h2>
<span class="menu-title" style="display: none">Addendum</span>
<hr>
<p><i class="fa fa-arrow-circle-right success"></i>
Write down your name on paper and put it in front of you
</p>
<p><i class="fa fa-arrow-circle-right success"></i>
What time do you prefer for lunch? 12pm or 1pm?
</p>
</div>
<footer style="font-size: small;">©Jacek Laskowski 2017 / @jaceklaskowski / [email protected]</footer>
</section>
</section>
<section style="text-align: left" data-markdown id="questions">
<script type="text/template">
# Questions?
* Read [Mastering Apache Spark 2](https://bit.ly/mastering-apache-spark)
* [https://bit.ly/mastering-apache-spark](https://bit.ly/mastering-apache-spark)
* Follow [@jaceklaskowski](https://twitter.com/jaceklaskowski) on twitter
* Upvote [my questions and answers on StackOverflow](http://stackoverflow.com/users/1305344/jacek-laskowski)
</script>
</section>
</div>
</div>
<script src="reveal.js/lib/js/head.min.js"></script>
<script src="reveal.js/js/reveal.js"></script>
<script>
// More info about config & dependencies:
// - https://github.com/hakimel/reveal.js#configuration
// - https://github.com/hakimel/reveal.js#dependencies
Reveal.initialize({
controls: true,
progress: true,
history: true,
center: true,
slideNumber: true,
transition: 'slide', // none/fade/slide/convex/concave/zoom
menu: {
markers: true,
openSlideNumber: true
},
dependencies: [
{ src: 'reveal.js/lib/js/classList.js', condition: function() { return !document.body.classList; } },
{ src: 'reveal.js/plugin/markdown/marked.js' },
{ src: 'reveal.js/plugin/markdown/markdown.js' },
{ src: 'reveal.js/plugin/zoom-js/zoom.js', async: true },
{ src: 'reveal.js/plugin/notes/notes.js', async: true },
{ src: 'revealjs-plugins/menu/menu.js', async: true },
{ src: 'reveal.js/plugin/highlight/highlight.js', async: true, callback: function() { hljs.initHighlightingOnLoad(); } }
]
});
</script>
</body>
</html>