Spark is a big data framework. It contains libraries for data analysis, machine learning, graph analysis and streaming live data. Spark is generally faster than Hadoop, the reason is because, hadoop writes intermediate results to disk whereas spark tries to keep intermediate results in memory whenever possible.
The first component of a spark program is the "Spark Context". The spark context is the main entry point for spark functionality and it helps to connect a cluster of nodes or servers with the application.