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