Spark | 2 Workbook Answers
## 5. Tips for Maximising Marks
sc = SparkContext(appName="DistinctWordCount") spark 2 workbook answers
1. Pick a workbook question. 2. Follow the **Context → Code → Commentary** template above. 3. Run the code locally to verify it works. 4. Polish the write‑up, add the performance notes, and you’ll have a solid, original answer. add the performance notes
val df = spark.read .option("header","true") .option("inferSchema","true") .csv("hdfs:///data/employees.csv") and you’ll have a solid
If the workbook includes a **mini‑project** (e.g., “process a log dataset and produce a daily report”), you can outline the full pipeline:
### 🎯 Your Next Step