SnappyData - The Spark Database. Stream, Transact, Analyze, Predict in one cluster
Scala Java Shell SQLPL Python PHP Other
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
.github * Renaming gemfirexd* jars to snappydata-store* jars. (#283) Jun 24, 2016
cluster Code changes for SNAP-2478: (#1127) Aug 18, 2018
compatibilityTests fixes for SNAP-2307 (#1116) Aug 3, 2018
core [SNAP-2477] Adding an API to get table type for SnappyData tables. (#… Aug 18, 2018
docs * Link to the latest spark submodule commit. Aug 17, 2018
dtests Changes for concurrent putinto in cdc streaming app. Aug 18, 2018
dunit Minor automation in build script (#1091) Aug 3, 2018
examples Update tests and docs to use power of 2 buckets Jan 12, 2018
gradle/wrapper Build fixes/changes for 1.0 release (#846) Oct 24, 2017
launcher [SNAP-2215] split out argument value for log-file (#964) Feb 15, 2018
python [SNAP-2044] Integrate Snappy python tests to precheckin (#879) Oct 23, 2017
release Update copyright header template files for 2018 Jan 4, 2018
spark @ b796e8b Linking latest spark submodule. Aug 18, 2018
spark-jobserver @ 202de89 * Version 1.0.2-RC1 Aug 8, 2018
store @ 635fcb0 synching store with snappydata master Aug 17, 2018
tests added tests for big view bug issue Aug 4, 2018
.gitignore Added some more directories to git ignore and vm_* directories as well. Apr 27, 2018
.gitmodules Updated .gitmodules with 2.1 branch Jul 8, 2017
LICENSE Updating copyright year to 2017 in few remaining files Aug 30, 2017
NOTICE [SNAP-338] new quick launcher and background jobserver start by defau… Jan 3, 2018 Docv1.0.1 (#1001) Apr 18, 2018
ReleaseNotes.txt * Link to the latest spark submodule commit. Aug 17, 2018
build.gradle * Link to the latest spark submodule commit. Aug 17, 2018
codeStyleSettings.xml [SNAP-1743] Compress column batches when storing to disk or sending o… Dec 15, 2017 Build fixes/changes for 1.0 release (#846) Oct 24, 2017
gradlew Build fixes/changes for 1.0 release (#846) Oct 24, 2017
gradlew.bat Build fixes/changes for 1.0 release (#846) Oct 24, 2017
mkdocs.yml Updates to Pulse, Install on Premise sections. (#1082) Aug 8, 2018 Updates to Pulse, Install on Premise sections. (#1082) Aug 8, 2018
scalastyle-config.xml * Updated the year in the Snappydata copyright header. Aug 30, 2017
settings.gradle Spark compatibility (#994) Jul 3, 2018

SnappyData fuses Apache Spark with an in-memory database to deliver a data engine capable of processing streams, transactions and interactive analytics in a single cluster.

The Challenge with Spark and Remote Data Sources

Apache Spark is a general purpose parallel computational engine for analytics at scale. At its core, it has a batch design center and is capable of working with disparate data sources. While this provides rich unified access to data, this can also be quite inefficient and expensive. Analytic processing requires massive data sets to be repeatedly copied and data to be reformatted to suit Spark. In many cases, it ultimately fails to deliver the promise of interactive analytic performance. For instance, each time an aggregation is run on a large Cassandra table, it necessitates streaming the entire table into Spark to do the aggregation. Caching within Spark is immutable and results in stale insight.

The SnappyData Approach

At SnappyData, we take a very different approach. SnappyData fuses a low latency, highly available in-memory transactional database (GemFireXD) into Spark with shared memory management and optimizations. Data in the highly available in-memory store is laid out using the same columnar format as Spark (Tungsten). All query engine operators are significantly more optimized through better vectorization and code generation.
The net effect is, an order of magnitude performance improvement when compared to native Spark caching, and more than two orders of magnitude better Spark performance when working with external data sources.

Essentially, we turn Spark into an in-memory operational database capable of transactions, point reads, writes, working with Streams (Spark) and running analytic SQL queries. Or, it is an in-memory scale out Hybrid Database that can execute Spark code, SQL or even Objects.

If you are already using Spark, experience 20x speed up for your query performance. Try out this test.

Snappy Architecture

SnappyData Architecture

Getting Started

We provide multiple options to get going with SnappyData. The easiest option is, if you are already using Spark 2.1.1. You can simply get started by adding SnappyData as a package dependency. You can find more information on options for running SnappyData here.

Downloading and Installing SnappyData

You can download and install the latest version of SnappyData from the SnappyData Download Page. Refer to the documentation for installation steps.

If you would like to build SnappyData from source, refer to the documentation on building from source.

SnappyData in 5 Minutes!

Refer to the 5 minutes guide which is intended for both first time and experienced SnappyData users. It provides you with references and common examples to help you get started quickly!


To understand SnappyData and its features refer to the documentation.

Community Support

We monitor channels listed below for comments/questions.

Stackoverflow Stackoverflow SlackSlack Gitter Gitter Mailing List Mailing List Reddit Reddit JIRA JIRA

Link with SnappyData Distribution

Using Maven Dependency

SnappyData artifacts are hosted in Maven Central. You can add a Maven dependency with the following coordinates:

groupId: io.snappydata
artifactId: snappydata-core_2.11
version: 1.0.1

groupId: io.snappydata
artifactId: snappydata-cluster_2.11
version: 1.0.1

Using SBT Dependency

If you are using SBT, add this line to your build.sbt for core SnappyData artifacts:

libraryDependencies += "io.snappydata" % "snappydata-core_2.11" % "1.0.1"

For additions related to SnappyData cluster, use:

libraryDependencies += "io.snappydata" % "snappydata-cluster_2.11" % "1.0.1"

You can find more specific SnappyData artifacts here

Note: If your project fails when resolving the above dependency (that is, it fails to download;2.1), it may be due an issue with its pom file.
As a workaround, you can add the below code to your build.sbt:

val workaround = {
  sys.props += "packaging.type" -> "jar"

For more details, refer

Ad Analytics using SnappyData

Here is a stream + Transactions + Analytics use case example to illustrate the SQL as well as the Spark programming approaches in SnappyData - Ad Analytics code example. Here is a screencast that showcases many useful features of SnappyData. The example also goes through a benchmark comparing SnappyData to a Hybrid in-memory database and Cassandra.

Contributing to SnappyData

If you are interested in contributing, please visit the community page for ways in which you can help.