Spark Officially Graduates From Apache Incubator
Recently, Spark graduated from the Apache incubator. Spark claims up to 100x speed improvements over Apache Hadoop over in-memory datasets and gracefully falling back to 10x speed improvement for on-disk performance. Since it was open sourced in 2010, Spark has been one of the most active projects in the community.
Its fast growth can be attributed to a number of reasons. It can combine its own DSL with SQL for leveraging of the well known SQL language. Spark’s primary API is a Scala DSL, built around a distributed collection of items called a Resilient Distributed Dataset (RDD). An RDD can support bulk and aggregate operations like filter, map and reduceByKey, leveraging distributed execution. Shark can provide the same speed native Scala API using Hive SQL. Reusing Hive’s frontend and backend means that it can be used alongside Hive, sharing data, queries and UDFs.
Machine Learning algorithms come out of the box with MLlib providing a range of algorithms in classification, regression, clustering and recommendation fields. MLlib is just a component of MLBase. MLBase is a distributed Machine Learning system aiming to make Machine Learning tasks more accessible to both end-users and ML researchers. It’s the first system freeing users from algorithm choices and automatically optimizing for distributing execution. Algorithm choices are made based on best ML practices and a cost-based model. Distributed execution is similar to Apache Mahout and is optimized for the data-access patterns of Machine Learning.
Graph algorithms can be implemented using GraphX that combines data-parallel and graph-parallel system semantics. GraphX offers comparable or better performance than Apache Giraph, the established Graph processing system used at Facebook.
SparkR exposes the Spark API to R, allowing statisticians to submit jobs directly from an R function into an Apache Spark cluster. R is the most popular tool for data scientists, other than RDBMS. Its main problem is that it is single threaded and inherently not designed for large data sets. SparkR overcomes these problems but comes with the caveat that it only works well for inherently parallelizable algorithms like gradient descent.
Spark can be deployed on Apache YARN, providing easy integration and co-existence with heterogeneous systems. It also comes as part of Cloudera Enterprise data hub edition, backed by Cloudera and Databricks, the company behind Spark’s commercialization. Finally, Streaming can help with quick prototyping and applying useful distributed systems semantics. Spark’s code is available on GitHub.
Shane Hastie on Distributed Agile Teams, Product Ownership and the Agile Manifesto Translation Program
Shane Hastie Apr 17, 2015