Generally speaking, lighting a spark is never a good idea, but in the case of Apache Spark, there seems to be a real need to shed light on it in order to understand how it interacts with other technologies and how to integrate it in your existing IT environment.
Apache Spark – is it really the Swiss Army Knife for analytics? Or does that sound too good to be true?
Well, positioning Spark as the solution for everything does indeed sound great, but it’s just not the case. We all know that data processing and analytics is not that simple. And yet, people do like to hear about simple solutions to complex problems.
That might be the reason why I seem to have conversations that go something like this:
How would you compare EXASOL to Spark?
Spark is general purpose platform. It is based on a modern, in-memory concept for distributed processing. From our perspective at EXASOL, it’s a superb add-on and partial replacement for the Hadoop file system processing platform. We integrate very seamlessly with Spark, but I wouldn’t say EXASOL is like Spark as the concepts and application scenarios vary too much.
But it’s also an in-memory database, right? Just like EXASOL?
Well, there is a database module called Spark SQL that you can run on top of the general purpose processing platform.
(panicked) So, why aren’t you worried? Surely you should be, after all there is now another in-memory database that’s free. Who will buy an EXASOL license when you can run Spark for free?
(serene) Calm down. Take a seat. Before we get carried away, let’s look at the facts:
|EXASOL Analytic Database||Apache Spark|
|What is it?||A system designed from the ground up as in-memory analytic database system for big data||Multi-purpose computing platform for big data processing|
|What is the technology that it’s based on?||EXASOL is implemented in C++ based on low-latency high-performance algorithms and specialized sub-systems||Spark & Spark SQL are implemented on JVM basis (to be more precise: in Scala). The usage of Scala permits fast development cycles but is not well suited for near-realtime applications.|
|Optimization||Optimized for fast query execution, high query throughput, and high concurrency||As Spark SQL uses the general purpose Spark framework, optimization for database purposes is limited.|
|Performance||Fastest relational database available (1)||Pretty fast but not even the fastest database on Hadoop (2) and much slower than EXASOL|
|Maturity||Founded in 2000. First customer in production: 2006. A large number of customers use it in business critical environments||Development of Spark SQL started in 2013. First release in 2014.|
|Ease of use||Simple to install & simple to administrate. Focus on low TCO||Very technical platform and a shared platform- therefore careful resource management is crucial|
|Enterprise readiness||Comprehensive backup functionalities, remote administration interfaces, remote datacenter replication and and many more enterprise features.
More than 100 customers run their analytics and their businesses on EXASOL.
|No specific enterprise database functionalities.|
(1) According to TPC-H: www.exasol.com/en/in-memory-database/tpc-h/
OK, so that means Spark is not an alternative to EXASOL when maximum query performance and enterprise functionality are required. So why are you nervous because of Spark?
I never said we were worried. We know that EXASOL is much better-suited to large scale analytics, not Spark. Period.
OK, but do you think that Spark is a good data processing platform?
Yes, Spark translates the old sluggish Hadoop MapReduce-based concept into our fast agile world very well. It is a great solution
for data solutions to use with streaming data and polystructured data.
So now I can have two solutions that are isolated? EXASOL for my high performance relational back-end for
business-critical applications, and Spark as my data processing workbench?
Well, they don’t have to be isolated at all. Let’s have a look at this illustration:
We integrate with Spark and Hadoop on different levels.
- Import data – typically you analyze your raw data stored in different formats in Spark/Hadoop first. Afterwards you would like to make the data available for further interactive analysis or operational system. To do so, just import the data in parallel into EXASOL at high speeds (several GB per minute) from HDFS using our high-speed parallel importer or import from Hive, Impala or Spark SQL via JDBC.
- Sometimes you don’t want to replicate the data. You want to access exactly the data set that has been generated just seconds ago on your Spark platform. Here our data virtualization framework comes into play: just connect Spark SQL to EXASOL through “virtual schemas” and the Spark SQL schemas are instantly visible in EXASOL.
From a client’s perspective it is fully transparent whether data is stored in EXASOL or in the remote SPARK system. The client just sees one single data source: EXASOL. As soon as you access the virtually connected schema the (sub-)query is pushed down to Spark SQL, the query is being executed and the result is returned to EXASOL. You want to access the data more quickly ? No problem: Just materialize the data returned by the Spark SQL query in EXASOL and use for lightning fast in-database analytics in EXASOL.
For more information on EXASOL and how to get started for free, simply go to www.exasol.com/download-exasol