29
edits
(Scheduled Jobs) |
(name change) |
||
Line 74: | Line 74: | ||
import numpy as np | import numpy as np | ||
#no computation is performed on the following line! | #no computation is performed on the following line! | ||
sin_values = numsRdd.map(lambda x : np.float(x) / 10).map(lambda x : (x, np.sin(x))) | |||
#now the entire computation graph is evaluated | #now the entire computation graph is evaluated | ||
sin_values.takeOrdered(5, lambda x : -x[1]) | |||
For jumping into working with Spark RDD's, we recommend reading the [https://spark.apache.org/docs/latest/programming-guide.html Spark Programming Guide]. | For jumping into working with Spark RDD's, we recommend reading the [https://spark.apache.org/docs/latest/programming-guide.html Spark Programming Guide]. |
edits