For modern Spark ML feature engineering, prefer DataFrames/Spark ML because:
Select an answer to reveal the explanation.
Short Explanation
Modern path: DataFrames + Spark ML + Catalyst — not raw RDD heroics by default.
Full Explanation
API generation guidance.