Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revision Both sides next revision | ||
spark:using-scala [2018/11/24 22:42] straka [Usage Examples] |
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, |
- | < | + | < |