mirror of
https://github.com/balkian/slides-intro-spark.git
synced 2024-12-04 18:12:28 +00:00
Fix overflows, typos. Update spark activity
This commit is contained in:
parent
2e3656c401
commit
945456a9ce
4
Makefile
4
Makefile
@ -22,8 +22,8 @@ test: compile
|
|||||||
|
|
||||||
pdf:
|
pdf:
|
||||||
@mkdir -p $(TEMP_DIR)
|
@mkdir -p $(TEMP_DIR)
|
||||||
xelatex -output-directory ./$(TEMP_DIR) spark1.tex
|
pdflatex -output-directory ./$(TEMP_DIR) spark1.tex
|
||||||
xelatex -output-directory ./$(TEMP_DIR) spark2.tex
|
pdflatex -output-directory ./$(TEMP_DIR) spark2.tex
|
||||||
cp $(TEMP_DIR)/*.pdf .
|
cp $(TEMP_DIR)/*.pdf .
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
|
Binary file not shown.
Before Width: | Height: | Size: 49 KiB After Width: | Height: | Size: 58 KiB |
BIN
spark1.pdf
BIN
spark1.pdf
Binary file not shown.
16
spark1.tex
16
spark1.tex
@ -386,6 +386,7 @@ On top of that:
|
|||||||
|
|
||||||
\begin{frame}[fragile]
|
\begin{frame}[fragile]
|
||||||
\frametitle{Language support}
|
\frametitle{Language support}
|
||||||
|
\vspace{-2em}
|
||||||
\begin{lstlisting}[title=Scala]
|
\begin{lstlisting}[title=Scala]
|
||||||
val lines = sc.textFile(...)
|
val lines = sc.textFile(...)
|
||||||
lines.filter(x => x.contains("ERROR")).count()
|
lines.filter(x => x.contains("ERROR")).count()
|
||||||
@ -612,6 +613,7 @@ cont: List(("a", 1), ("a", 1), ("b", 3))
|
|||||||
|
|
||||||
\pause
|
\pause
|
||||||
|
|
||||||
|
\vspace{-2em} % Avoid overlapping with footer
|
||||||
\begin{lstlisting}[basicstyle=\ttfamily\Large]
|
\begin{lstlisting}[basicstyle=\ttfamily\Large]
|
||||||
val fn = (x:Int)) => x > 1
|
val fn = (x:Int)) => x > 1
|
||||||
cont.filter(fn)
|
cont.filter(fn)
|
||||||
@ -639,6 +641,8 @@ cont.filter(x => x>1)
|
|||||||
|
|
||||||
{\Large Furthermore, we could use underscores to replace arguments:}
|
{\Large Furthermore, we could use underscores to replace arguments:}
|
||||||
|
|
||||||
|
\vspace{-2em}
|
||||||
|
|
||||||
\begin{lstlisting}[basicstyle=\ttfamily\huge]
|
\begin{lstlisting}[basicstyle=\ttfamily\huge]
|
||||||
cont.filter(_>1)
|
cont.filter(_>1)
|
||||||
\end{lstlisting}
|
\end{lstlisting}
|
||||||
@ -683,7 +687,7 @@ nums.filter(_>1)
|
|||||||
\vfill
|
\vfill
|
||||||
|
|
||||||
\begin{lstlisting}[basicstyle=\ttfamily\Large,linebackgroundcolor={\btLstHL<1>{1}}]
|
\begin{lstlisting}[basicstyle=\ttfamily\Large,linebackgroundcolor={\btLstHL<1>{1}}]
|
||||||
nums.filter(_._1 == "a" && _._1 == 1)
|
cont.filter(_._1 == "a" && _._1 == 1)
|
||||||
> ???
|
> ???
|
||||||
\end{lstlisting}
|
\end{lstlisting}
|
||||||
|
|
||||||
@ -716,7 +720,7 @@ one-argument function accepting a 2-Tuple.
|
|||||||
Remember, each new underscore represents a new argument. So that expression expands to:
|
Remember, each new underscore represents a new argument. So that expression expands to:
|
||||||
|
|
||||||
\begin{lstlisting}[language=TeX,basicstyle=\ttfamily\Large]
|
\begin{lstlisting}[language=TeX,basicstyle=\ttfamily\Large]
|
||||||
nums.filter((x, y) => x._1 == "a" &&
|
cont.filter((x, y) => x._1 == "a" &&
|
||||||
y._2 == 1)
|
y._2 == 1)
|
||||||
\end{lstlisting}
|
\end{lstlisting}
|
||||||
\end{frame}
|
\end{frame}
|
||||||
@ -727,7 +731,7 @@ nums.filter((x, y) => x._1 == "a" &&
|
|||||||
The right expression is:
|
The right expression is:
|
||||||
|
|
||||||
\begin{lstlisting}[basicstyle=\ttfamily\Large,linebackgroundcolor={\btLstHL<1>{1,2}}]
|
\begin{lstlisting}[basicstyle=\ttfamily\Large,linebackgroundcolor={\btLstHL<1>{1,2}}]
|
||||||
nums.filter(x => x._1 == "a" &&
|
cont.filter(x => x._1 == "a" &&
|
||||||
x._2 == 1)
|
x._2 == 1)
|
||||||
> List((a, 1), (a, 1))
|
> List((a, 1), (a, 1))
|
||||||
\end{lstlisting}
|
\end{lstlisting}
|
||||||
@ -949,6 +953,7 @@ docker exec -it dockerspark_master_1 bin/spark-shell
|
|||||||
|
|
||||||
\end{frame}
|
\end{frame}
|
||||||
\begin{frame}[fragile]{Compose.yml Master}
|
\begin{frame}[fragile]{Compose.yml Master}
|
||||||
|
\vspace{-2em} % Avoid overlapping with footer
|
||||||
\begin{lstlisting}[basicstyle=\ttfamily,language={},linebackgroundcolor={
|
\begin{lstlisting}[basicstyle=\ttfamily,language={},linebackgroundcolor={
|
||||||
\btLstHL<1>{2}%
|
\btLstHL<1>{2}%
|
||||||
\btLstHL<2>{3}%
|
\btLstHL<2>{3}%
|
||||||
@ -970,6 +975,7 @@ master:
|
|||||||
\end{lstlisting}
|
\end{lstlisting}
|
||||||
\end{frame}
|
\end{frame}
|
||||||
\begin{frame}[fragile]{Compose.yml Worker}
|
\begin{frame}[fragile]{Compose.yml Worker}
|
||||||
|
\vspace{-2em} % Avoid overlapping with footer
|
||||||
\begin{lstlisting}[language={},basicstyle=\ttfamily,linebackgroundcolor={
|
\begin{lstlisting}[language={},basicstyle=\ttfamily,linebackgroundcolor={
|
||||||
\btLstHL<1>{2}%
|
\btLstHL<1>{2}%
|
||||||
\btLstHL<2>{3}%
|
\btLstHL<2>{3}%
|
||||||
@ -1141,9 +1147,9 @@ $
|
|||||||
\includegraphics[width=\textwidth]{images/example.png}
|
\includegraphics[width=\textwidth]{images/example.png}
|
||||||
\end{frame}
|
\end{frame}
|
||||||
|
|
||||||
\section*{Next week on SIBD}
|
\section*{Next week}
|
||||||
|
|
||||||
\begin{frame}{Next week on SIBD}
|
\begin{frame}{Next week}
|
||||||
\begin{itemize}
|
\begin{itemize}
|
||||||
\item Advanced Spark configuration
|
\item Advanced Spark configuration
|
||||||
\item Multiple hosts
|
\item Multiple hosts
|
||||||
|
BIN
spark2.pdf
BIN
spark2.pdf
Binary file not shown.
@ -235,7 +235,7 @@ In other words, lines have this format:
|
|||||||
|
|
||||||
\begin{frame}
|
\begin{frame}
|
||||||
\frametitle{Spark architecture}
|
\frametitle{Spark architecture}
|
||||||
\includegraphics[height=.9\textheight]{images/mesos-spark.png}
|
\includegraphics[height=.85\textheight]{images/mesos-spark.png}
|
||||||
\end{frame}
|
\end{frame}
|
||||||
|
|
||||||
\begin{frame}
|
\begin{frame}
|
||||||
|
Loading…
Reference in New Issue
Block a user