Analyze large datasets using Spark