未加星标

Why Spark on YARN and not standalone?

字体大小 | |
[数据库(综合) 所属分类 数据库(综合) | 发布者 店小二04 | 时间 2017 | 作者 红领巾 ] 0人收藏点击收藏

At Altiscale, we run Spark on YARN, our recommended configuration to our users for running Spark. While it is possible to run Spark standalone and some vendors who provide only Spark solutions advocate for this, there are a number of reasons that running Spark on YARN provides a more robust, efficient, and resilient experience:

Support multiple versions of Spark simultaneously Spark has been evolving rapidly, with multiple versions becoming available in rapid succession. Unfortunately, there hasn’t been a lot of attention paid to backward compatibility, so analytics or applications built on prior versions may not be supported by the later version. At Altiscale, we help our customers get around this issue by supporting multiple versions of Spark simultaneously. This allows you to continue getting value from a prior version, while also using a newer version if you need to utilize more recent capabilities. You can access multiple versions of Spark by simply pointing SPARK_HOME and SPARK_CONF_DIR to different installation for /opt/alti-spark-x.y.z (version number). The versions of Spark that Altiscale currently supports are Spark 1.6.1, 1.6.2, 1.6.3, 2.0.2, and 2.1.0.

Easily upgrade Spark Since you can run multiple version of Spark on YARN, engineers can easily transition and upgrade to the newer version of Spark, since the data can be available on HDFS without moving and duplicating data in a test environment.

More effective resource utilization YARN provides capacity queues and a light version of containers. Altiscale provides compute-bursting on top of Hadoop on both aspects: HDFS storage and Task-Hours (Memory). This means you can run different framework on top of YARN with their own resources and share the same input data (avoiding redundant data), while the cluster scales transparently.

Better resource management visibility YARN (RM) provides the UI and schedulers to carve out resources per application. A Spark standalone cluster cannot provide that level of granularity nor visibility since it is not focusing on cluster management UI nor this type of features, and it may not be its priority.

Greater resilience Spark on YARN forces users to write data onto HDFS or another service. It provides visibility and awareness regarding where the logs/data should go onto HDFS and avoids writing to local files that may fill up local disk, causing operational complexities or incidents. YARN also provides resource isolation and cap that utilize and protect the machines to suffer from memory shortage that may lead to kernel panic.

Simplify operational complexity Spark on YARN isolates the Spark libraries from the underlying filesystems. When supporting multiple versions of the Spark framework, users can focus on the Spark JARs that are pre-deployed or deployed on-demand at runtime without having to know the underlying machines’ file and directory layout.

For more information on YARN and how YARN works, see these two blog posts:

“Untangling Apache Hadoop YARN, Part 1”

“Apache Hadoop YARN Background and an Overview”

本文数据库(综合)相关术语:系统安全软件

主题: SparkHDFSHadoop
分页:12
转载请注明
本文标题:Why Spark on YARN and not standalone?
本站链接:http://www.codesec.net/view/532083.html
分享请点击:


1.凡CodeSecTeam转载的文章,均出自其它媒体或其他官网介绍,目的在于传递更多的信息,并不代表本站赞同其观点和其真实性负责;
2.转载的文章仅代表原创作者观点,与本站无关。其原创性以及文中陈述文字和内容未经本站证实,本站对该文以及其中全部或者部分内容、文字的真实性、完整性、及时性,不作出任何保证或承若;
3.如本站转载稿涉及版权等问题,请作者及时联系本站,我们会及时处理。
登录后可拥有收藏文章、关注作者等权限...
技术大类 技术大类 | 数据库(综合) | 评论(0) | 阅读(89)