每个job被划分为多个stage.划分stage的一个主要依据是当前计算因子的输入是否是确定的,如果是则将其分在同一个stage,从而避免多个stage之间的消息传递开销. http://spark.apache.org/docs/latest/rdd-programming-guide.html [Spark actions are executed through a set of stages, separated by distributed “shuffle” operations. …