Spark源代码该怎么看,那就是看SparkContext类,只要你看懂了SparkContext,就懂得了Spark,因为这个是Spark程序的入口,也是最基础的。 1 sparkContext的主要构造器参数为SparkConf,实现如下 class SparkContext(config: SparkConf) extends Logging { // The call site where this SparkContext was constructed.