| Take a look at RDD.pipe(). You could also accomplish the same thing using RDD.mapPartitions, which you pass a function that processes the iterator for each partition rather than processing each element individually. This lets you only start up as many processes as there are partitions, pipe the contents of each iterator to them, then collect the output. This might be useful if, e.g., your external process doesn't use line-oriented input/output. -Ewen
|
- Hadoop streaming like feature for Spark Jaonary Rabarisoa
- Re: Hadoop streaming like feature for Spark Ewen Cheslack-Postava
- Re: Hadoop streaming like feature for Spark Jaonary Rabarisoa

