[ Skip to the content ]

Institute of Formal and Applied Linguistics Wiki


[ Back to the navigation ]

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
spark:recipes:using-perl-via-pipes [2014/11/07 11:12]
straka
spark:recipes:using-perl-via-pipes [2014/11/07 13:17]
straka
Line 90: Line 90:
 </file> </file>
  
-It can be executed using ''spark-submit perl_integration.py input output''.+It can be executed using ''spark-submit --files tokenize.pl perl_integration.py input output''.
  
 ===== Using Scala and JSON ===== ===== Using Scala and JSON =====
Line 111: Line 111:
  
 // let rdd be an RDD we want to process, creating ''RDD[ProcessedType]'' // let rdd be an RDD we want to process, creating ''RDD[ProcessedType]''
-rdd.map(encodeJson).pipe("perl script").map(decodeJson[ProcessedType])+rdd.map(encodeJson).pipe("perl script.pl").map(decodeJson[ProcessedType])
 </file> </file>

[ Back to the navigation ] [ Back to the content ]