Q1:Master和Driver的是同一个东西吗?

两者不是同一个东西,在Standalone模式下Master是用于集群资源管理和调度的,而Driver适用于指挥Worker上的Executor通过多线的方式处理任务的;

Master位于集群的管理节点,一般和 NameNode在同一个节点上;

Driver一般都位于客户机上,客户机一般都不属于集群,但是和集群在同一个网络环境下,因为客户机中的Driver要和集群中的Executor频繁的交互;

Q2:Standalone和Yarn之间如何选择

Standalone和Yarn都是用于资源管理的系统,Standalone是专门为Spark打造的资源管理和分配方式,是轻量级的,而Yarn是大数据通用的资源管理框架,不仅可以用于管理Spark顶点资源分配,也可以用于管理实现了Yarn的其它计算平台的资源管理和分配;

如果在生产系统中有多套计算框架 ,例如Spark、MapReduce、Mahout并存,建议使用Yarn或者Mesos进行资源统一的管理和调度;如果只使用Spark的话,建议使用Standalone就足够了,Yarn比较消耗资源;

Q3:Spark 的HA怎么处理的?

对于Master的HA,在Standalone模式下,Worker节点自动是HA的,对于Master的HA,一般采用Zookeeper;

Utilizing ZooKeeper to provide leader election and some state storage, you can launch multiple Masters in your cluster connected to the same ZooKeeper instance. One will be elected “leader” and the others will remain in standby mode. If the current leader dies, another Master will be elected, recover the old Master’s state, and then resume scheduling. The entire recovery process (from the time the the first leader goes down) should take between 1 and 2 minutes. Note that this delay only affects scheduling new applications – applications that were already running during Master failover are unaffected;

对于Yarn和Mesos模式,ResourceManager一般也会采用ZooKeeper进行HA;

最新文章

  1. 将Excel数据导入数据库
  2. git忽略某些文件
  3. python生成数据库中所有表的DESC描述
  4. win7下折腾filezilla_client
  5. C# ACM poj1003
  6. git对象存储
  7. 关于appcompat v7出现的问题
  8. Two Pointers - leetcode [两指针问题]
  9. memcached+狀態模式+工廠方法使用
  10. 云存储的未来:Scale Up还是Scale Out?
  11. async、await在ASP.NET[ MVC]中之线程死锁的故事
  12. 公钥与私钥,HTTPS详解 转载
  13. C#自定义控件:如果定义控件的事件
  14. svn 更新lib库时,报错
  15. AngularJS实战之ng-repeat的详细用法
  16. shell 脚本实战笔记(5)--搭建资源的镜像服务器
  17. 不开vip会员照样看vip电影(亲测有效)
  18. HBase第一章 安装 HMaster 主备
  19. WebLogic中WLS 组件漏洞(CVE-2017-10271)专项检测工具
  20. hadoop安装 伪分布

热门文章

  1. To Chromium之浏览器外框UI(2)
  2. android中常见的命名及其特点详解
  3. ASP.NET页面之间传值Cookie(3)
  4. 【题解】HAOI2008木棍分割
  5. [POI2008] Poc (原名 Trians) Treap+Hash
  6. string 类型转换
  7. 如何用JavaScript做一个可拖动的div层
  8. poj2814-拨钟问题-C语言-枚举算法
  9. 小K的农场
  10. [洛谷P1032] 字串变换