Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
spark:using-scala [2017/10/16 21:24] ufal [Using Scala] |
spark:using-scala [2022/12/14 13:02] straka [Usage Examples] |
||
---|---|---|---|
Line 13: | Line 13: | ||
Consider the following simple script computing 10 most frequent words of Czech Wikipedia: | Consider the following simple script computing 10 most frequent words of Czech Wikipedia: | ||
<file scala> | <file scala> | ||
- | (sc.textFile("/ | + | (sc.textFile("/ |
| | ||
| | ||
Line 20: | Line 20: | ||
</ | </ | ||
- | * run interactive shell using existing Spark cluster (i.e., inside '' | + | * run interactive shell using existing Spark cluster (i.e., inside '' |
< | < | ||
* run interactive shell with local Spark cluster using one thread: | * run interactive shell with local Spark cluster using one thread: | ||
< | < | ||
- | * start Spark cluster (10 machines, | + | * start Spark cluster (10 machines, |
- | < | + | < |
Line 72: | Line 72: | ||
version := " | version := " | ||
- | scalaVersion := "2.11.8" | + | scalaVersion := "2.11.12" |
- | libraryDependencies += " | + | libraryDependencies += " |
</ | </ | ||