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-python [2019/11/12 13:37] straka |
spark:using-python [2022/12/14 13:00] straka [Usage Examples] |
||
---|---|---|---|
Line 16: | Line 16: | ||
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 python> | <file python> | ||
- | (sc.textFile("/ | + | (sc.textFile("/ |
| | ||
| | ||
- | | + | |
| | ||
| | ||
</ | </ | ||
- | * 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: | ||
Line 31: | Line 31: | ||
< | < | ||
- | Note that '' | + | Note that '' |