Creating RDDsTransformations on normal RDDsThe filter operationThe distinct operationThe intersection operationThe union operationThe map operationThe flatMap operationThe keys operationThe cartesian operationTransformations on pair RDDsThe groupByKey operationThe join operationThe reduceByKey operationThe aggregate operationActionsThe collect() functionThe count() functionThe take(n) functionThe first() functionThe takeSample() functionThe countByKey() function