---
title: "Common Spark Actions"
source: https://www.jemoka.com/posts/kbhcommon_spark_actions/
---

collect(): get all of your data count(): get a count of the elements in the RDD countByValue(): list the times each value appears reduce(func): the reduce part of MapReduce first(), take(n): return some number of elements top(n): return the highest n values in the list
