问题描述
当我阅读类中,receiveAndReply方法似乎未在使用Akka。 [cf. 。]
When I read spark-1.6 source code of the Master class, the receiveAndReply method seems not to be using Akka. [Cf. here.]
为什么不使用Akka?他们用什么代替了Akka?
Why is it not using Akka ? And What did they replace Akka with ?
推荐答案
使Spark独立于Akka的动机在,这是Akka相关问题的保护伞。
The motivation behind making Spark independent from Akka are well described in SPARK-5293 which is an umbrella task for Akka related issues.
引用原始描述:
我们对Akka的使用受到限制(主要用于RPC和单线程事件循环),我们可以将其替换为其他RPC实现和Spark中的常见事件循环。
Since our usage of Akka is limited (mainly for RPC and single-threaded event loop), we can replace it with alternative RPC implementations and a common event loop in Spark.
如您所见,主要原因很简单-为用户提供了更大的灵活性来创建自己的应用程序。
As you can see, the main reason is simple - to give users more flexibility in creating their own applications.
还删除了像Akka这样的复杂依赖项,但Spark尚未广泛使用它,这意味着较低的维护成本。
Also removing complex dependency like Akka, which hasn't been used extensively by Spark anyway, which means lower cost of maintenance.
这篇关于为什么Spark 1.6不使用Akka?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!