Spark | 2 Workbook Answers
Add a short paragraph for each stage, explaining why you chose that API.
val spark = SparkSession.builder() .appName("DeptSalary") .getOrCreate()
## 6. Quick Reference Cheatsheet (Spark 2.4) spark 2 workbook answers
# 1️⃣ Load the file as an RDD lines = sc.textFile("hdfs:///data/input.txt")
## 5. Tips for Maximising Marks
## 8. Final Checklist Before Submitting
- [ ] All code compiles/run on Spark 2.x (no 3.x‑only APIs). - [ ] Comments are present for every non‑obvious line. - [ ] You’ve referenced at least **one** Spark concept (lazy eval, shuffle, broadcast, etc.). - [ ] Edge cases are discussed. - [ ] The answer is written **in your own words** (no copy‑pasting from the internet). Add a short paragraph for each stage, explaining
import requests