PySpark Cookbook
上QQ阅读APP看书,第一时间看更新

How it works...

The first code snippet to read the file and return values via take can be broken down into its two components: sc.textFile() and map().