Ecole d'ingénieur et centre de recherche en Sciences du numérique

Stocator: An object store aware connector for Apache Spark

Vernik, Gil; Factor, Michael; Kolodner, Elliot K.; Ofer, Effi; Michiardi, Pietro; Pace, Francesco

SOCC 2017, ACM Symposium on Cloud Computing, September 25-27, 2017, Santa Clara, California, USA

Data is the natural resource of the 21st century. It is being produced at dizzying rates, e.g., for genomics, for media and entertainment, and for Internet of Things. Object storage systems such as Amazon S3, Azure Blob storage, and IBM Cloud Object Storage, are highly scalable distributed storage systems that offer high capacity, cost effective storage. But it is not enough just to store data; we also need to derive value from it. Apache Spark is the leading big data analytics processing engine combining MapReduce, SQL, streaming, and complex analytics. We present Stocator, a high performance storage connector, enabling Spark to work directly on data stored in object storage systems, while providing the same correctness guarantees as Hadoop's original storage system, HDFS. Current object storage connectors from the Hadoop community, e.g., for the S3 and Swift APIs, do not deal well with eventual consistency, which can lead to failure. These connectors assume file system semantics, which is natural given that their model of operation is based on interaction with HDFS. In particular, Spark and Hadoop achieve fault tolerance and enable speculative execution by creating temporary files, listing directories to identify these files, and then renaming them. This paradigm avoids interference between tasks doing the same work and thus writing output with the same name. However, with eventually consistent object storage, a container listing may not yet include a recently created object, and thus an object may not be renamed, leading to incomplete or incorrect results. Solutions such as EMRFS [1] from Amazon, S3mper [4] from Netflix, and S3Guard [2], attempt to overcome eventual consistency by requiring additional strongly consistent data storage. These solutions require multiple storage systems, are costly, and can introduce issues of consistency between the stores. Current object storage connectors from the Hadoop community are also notorious for their poor performance for write workloads. This, too, stems from their use of the rename operation, which is not a native object storage operation; not only is it not atomic, but it must be implemented using a costly copy operation, followed by delete. Others have tried to improve the performance of object storage connectors by eliminating rename, e.g., the Direct-ParquetOutputCommitter [5] for S3a introduced by Databricks, but have failed to preserve fault tolerance and speculation. Stocator takes advantage of object storage semantics to achieve both high performance and fault tolerance. It eliminates the rename paradigm by writing each output object to its final name. The name includes both the part number and the attempt number, so that multiple attempts to write the same part use different objects. Stocator proposes to extend an already existing success indicator object written at the end of a Spark job, to include a manifest with the names of all the objects that compose the final output; this ensures that a subsequent job will correctly read the output, without resorting to a list operation whose results may not be consistent. By leveraging the inherent atomicity of object creation and using a manifest we obtain fault tolerance and enable speculative execution; by avoiding the rename paradigm we greatly decrease the complexity of the connector and the number of operations on the object storage. We have implemented our connector and shared it in open source [3]. We have compared its performance with the S3a and Hadoop Swift connectors over a range of workloads and found that it executes many fewer operations on the object storage, in some cases as few as one thirtieth. Since the price for an object storage service typically includes charges based on the number of operations executed, this reduction in operations lowers the costs for clients in addition to reducing the load on client software. It also reduces costs and load for the object storage provider since it can serve more clients with the same amount of processing power. Stocator also substantially increases performance for Spark workloads running over object storage, especially for write intensive workloads, where it is as much as 18 times faster.

Document Doi Bibtex

Titre:Stocator: An object store aware connector for Apache Spark
Mots Clés:Information systems; MapReduce-based systems; Cloud based storage
Type:Poster / Demo
Langue:English
Ville:Santa Clara
Pays:ÉTATS-UNIS
Date:
Département:Data Science
Eurecom ref:5339
Copyright: © ACM, 2017. This is the author's version of the work. It is posted here by permission of ACM for your personal use. Not for redistribution. The definitive version was published in SOCC 2017, ACM Symposium on Cloud Computing, September 25-27, 2017, Santa Clara, California, USA http://dx.doi.org/10.1145/3127479.3134761
Bibtex: @poster / demo{EURECOM+5339, year = {2017}, title = {{S}tocator: {A}n object store aware connector for {A}pache {S}park}, author = {{V}ernik, {G}il and {F}actor, {M}ichael and {K}olodner, {E}lliot {K}. and {O}fer, {E}ffi and {M}ichiardi, {P}ietro and {P}ace, {F}rancesco}, number = {EURECOM+5339}, month = {09}, institution = {Eurecom} address = {{S}anta {C}lara, {\'{E}}{TATS}-{UNIS}}, url = {http://www.eurecom.fr/publication/5339} }
Voir aussi: