Compare Hadoop MapReduce and Apache Spark. Analyze the differences in performance, memory usage, and use cases to choose the right processing engine.