Sparkling Water integrates H2O's fast scalable machine learning engine with Spark. It provides:
- Utilities to publish Spark data structures (RDDs, DataFrames, Datasets) as H2O's frames and vice versa.
- DSL to use Spark data structures as input for H2O's algorithms.
- Basic building blocks to create ML applications utilizing Spark and H2O APIs.
- Python interface enabling use of Sparkling Water directly from PySpark.
The documentation contains also documentation for our clients, PySparkling and RSparkling.
- Sparkling Water For Spark 3.1
- Sparkling Water For Spark 3.0
- Sparkling Water For Spark 2.4
- Sparkling Water For Spark 2.3
- Sparkling Water For Spark 2.2
- Sparkling Water For Spark 2.1
- Latest version for Spark 3.1
- Latest version for Spark 3.0
- Latest version for Spark 2.4
- Latest version for Spark 2.3
- Latest version for Spark 2.2
- Latest version for Spark 2.1
Each Sparkling Water release is published into Maven central with following coordinates:
ai.h2o:sparkling-water-core_{{scala_version}}:{{version}}
- Includes core of Sparkling Waterai.h2o:sparkling-water-examples_{{scala_version}}:{{version}}
- Includes example applicationsai.h2o:sparkling-water-repl_{{scala_version}}:{{version}}
- Spark REPL integration into H2O Flow UIai.h2o:sparkling-water-ml_{{scala_version}}:{{version}}
- Extends Spark ML package by H2O-based transformationsai.h2o:sparkling-water-scoring_{{scala_version}}:{{version}}
- A library containing scoring logic and definition of Sparkling Water MOJO models.ai.h2o:sparkling-water-scoring-package_{{scala_version}}:{{version}}
- Lightweight Sparkling Water package including all dependencies required just for scoring with H2O-3 and DAI MOJO models.ai.h2o:sparkling-water-package_{{scala_version}}:{{version}}
- Sparkling Water package containing all dependencies required for model training and scoring. This is designed to use as Spark package via--packages
option.Note: The
{{version}}
references to a release version of Sparkling Water, the{{scala_version}}
references to Scala base version.
The full list of published packages is available here.
- Linux/OS X/Windows
- Java 8+
- Python 2.7+ for Python version of Sparkling Water (PySparkling) build for Apache Spark 2.1 - 3.0
- Python 3.6+ for Python version of Sparkling Water (PySparkling) build for Apache Spark 3.1
- Apache Spark 2.1+ and
SPARK_HOME
shell variable must point to your local Spark installation
Sparkling Water is distributed as a Spark application library which can be used by any Spark application. Furthermore, we provide also zip distribution which bundles the library and shell scripts.
There are several ways of using Sparkling Water:
- Sparkling Shell
- Sparkling Water driver
- Spark Shell and include Sparkling Water library via
--jars
or--packages
option - Spark Submit and include Sparkling Water library via
--jars
or--packages
option - PySpark with PySparkling
The Sparkling shell encapsulates a regular Spark shell and append Sparkling Water library on the classpath via --jars
option.
The Sparkling Shell supports creation of an H2O cloud and execution of H2O algorithms.
Either download or build Sparkling Water
Configure the location of Spark cluster:
export SPARK_HOME="/path/to/spark/installation" export MASTER="local[*]"
In this case,
local[*]
points to an embedded single node cluster.Run Sparkling Shell:
bin/sparkling-shell
Sparkling Shell accepts common Spark Shell arguments. For example, to increase memory allocated by each executor, use the
spark.executor.memory
parameter:bin/sparkling-shell --conf "spark.executor.memory=4g"
Initialize H2OContext
import ai.h2o.sparkling._ val hc = H2OContext.getOrCreate()
H2OContext
starts H2O services on top of Spark cluster and provides primitives for transformations between H2O and Spark data structures.
Sparkling Water can be also used directly from PySpark and the integration is called PySparkling.
See PySparkling README to learn about PySparkling.
To see how Sparkling Water can be used as Spark package, please see Use as Spark Package.
See Windows Tutorial to learn how to use Sparkling Water in Windows environments.
To see how to run examples for Sparkling Water, please see Running Examples.
Sparkling water supports two backend/deployment modes - internal and
external. Sparkling Water applications are independent on the selected
backend. The backend can be specified before creation of the
H2OContext
.
For more details regarding the internal or external backend, please see Backends.
List of all Frequently Asked Questions is available at FAQ.
Complete development documentation is available at Development Documentation.
To see how to build Sparkling Water, please see Build Sparkling Water.
An application using Sparkling Water is regular Spark application which bundling Sparkling Water library. See Sparkling Water Droplet providing an example application here.
Look at our list of JIRA tasks or send your idea to support@h2o.ai.
You can file a bug report of feature request directly in the Sparkling Water JIRA page at http://jira.h2o.ai/.
Log in to the Sparkling Water JIRA tracking system. (Create an account if necessary.)
Once inside the home page, click the Create button.
A form will display allowing you to enter information about the bug or feature request.
Enter the following on the form:
- Select the Project that you want to file the issue under. For example, if this is an open source public bug, you should file it under SW (SW).
- Specify the Issue Type. For example, if you believe you've found a bug, then select Bug, or if you want to request a new feature, then select New Feature.
- Provide a short but concise summary about the issue. The summary will be shown when engineers organize, filter, and search for Jira tickets.
- Specify the urgency of the issue using the Priority dropdown menu.
- If there is a due date specify it with the Due Date.
- The Components drop down refers to the API or language that the issue relates to. (See the drop down menu for available options.)
- You can leave Affects Version/s, Fix Versions, and Assignee fields blank. Our engineering team will fill this in.
- Add a detailed description of your bug in the Description section. Best practice for descriptions include:
- A summary of what the issue is
- What you think is causing the issue
- Reproducible code that can be run end to end without requiring an engineer to edit your code. Use {code} {code} around your code to make it appear in code format.
- Any scripts or necessary documents. Add by dragging and dropping your files into the create issue dialogue box.
You can be able to leave the rest of the ticket blank.
When you are done with your ticket, simply click on the Create button at the bottom of the page.
After you click Create, a pop up will appear on the right side of your screen with a link to your Jira ticket. It will have the form https://0xdata.atlassian.net/browse/SW-####. You can use this link to later edit your ticket.
Please note that your Jira ticket number along with its summary will appear in one of the Jira ticket slack channels, and anytime you update the ticket anyone associated with that ticket, whether as the assignee or a watcher will receive an email with your changes.
We also respond to questions tagged with sparkling-water and h2o tags on the Stack Overflow.
Change logs are available at Change Logs.