Tag Archives: spark map function

Advanced RDD Actions

Advanced RDD Actions   reduce() action reduce(func) action is used for aggregating the elements of a regular RDD. The fucntion should be commutative (changing the order of the operands does …

Read More »

PySpark RDD Example

PySpark RDD Example Hello, in this post we will do 2 short examples, we will use reducebykey and sortbykey. Rdd = sc.parallelize([(1,2), (3,4), (3,6), (4,5)]) # Apply reduceByKey() operation on …

Read More »

Introduction to PySpark RDD

Introduction to PySpark RDD In this chapter, we will start with RDDs which are Spark’s core abstraction for working with data.   What is RDD RDD = Resilient Distributed Datasets …

Read More »