Description
sparkle is a Haskell library for writing resilient analytics applications that run on Apache Spark, and it is designed to scale to thousands of nodes. It uses Spark and the rest of the Apache ecosystem under the hood, so you write the application logic in Haskell. sparkle creates self-contained Spark applications, which Spark usually distributes as JAR files. It embeds native object code compiled by GHC, along with any shared libraries that code needs, into the JAR. Spark loads that code at runtime and calls it through the Java Native Interface. To use it, you create an application in an apps folder, build it, and submit it to a local or cluster Spark deployment. On Linux, the build uses Bazel, which produces a deploy JAR for the app. Running the hello example on your own machine needs Nix. Building on Mac OS X is possible, but running it requires Spark and sometimes Hadoop binaries, and the project suggests Docker on other platforms. The README has a troubleshooting section, and the design is explained in a Tweag blog post. It suits Haskell developers who want to run Spark jobs.…
Highlights
- Haskell applications that run on Apache Spark
- Self-contained Spark JARs with GHC native code
- Bazel build that produces a deploy JAR
- Runs on local or cluster Spark deployments
- Hello example for a quick start
Ratings & Reviews
No ratings yet
Be the first to rate Sparkle.
People also visit
Spark
.NET for Apache Spark makes Apache Spark easily accessible to .NET developers
Sparkle FAQ
What is sparkle?
A Haskell library for writing analytics applications that run on Apache Spark.
How does a Haskell app run inside Spark?
sparkle packages the compiled Haskell code into a Spark JAR, and Spark loads it at runtime through the Java Native Interface.
How do I try it?
Start with the hello app as an example. The README says the quick start needs Nix.
Does it run on macOS?
It builds on Mac OS X, but running it needs Spark and possibly Hadoop binaries. Docker is suggested for other non-Linux platforms.
What builds it?
Bazel. You add a BUILD.bazel file next to your source and ask Bazel for a deploy JAR.
What are the best Sparkle alternatives?
Popular alternatives to Sparkle include Spark, Weld and Pathling. See all Sparkle alternatives



