Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
spark:recipes:using-perl-via-pipes [2014/11/07 14:20] straka |
spark:recipes:using-perl-via-pipes [2024/09/27 09:25] (current) straka [Complete Example using Simple Perl Tokenizer and Scala] |
||
---|---|---|---|
Line 84: | Line 84: | ||
sc = SparkContext() | sc = SparkContext() | ||
(sc.textFile(input) | (sc.textFile(input) | ||
- | | + | |
| | ||
| | ||
Line 114: | Line 114: | ||
// let rdd be an RDD we want to process, creating '' | // let rdd be an RDD we want to process, creating '' | ||
- | rdd.map(encodeJson).pipe(" | + | rdd.map(encodeJson).pipe(" |
</ | </ | ||
Line 155: | Line 155: | ||
After compiling '' | After compiling '' | ||
- | spark-submit | + | spark-submit --files tokenize.pl target/ |