Essentially, Apache Hadoop can store and process the data (parallel) whereas Apache Spark is more of a processing framework. However, the key difference lies in the approach to process data. Spark provides in-memory computing (using RDDS), which is way faster than the traditional Apache Hadoop. Go through this immersive Apache Spark tutorial to understand the difference in a better way. Moreover, you can read this Hadoop vs. Spark blog that depicts the fundamental differences between the two.
Do you want to learn about big data? Enroll in Intellipaat's Big Data Hadoop Course and learn from the professionals.