Skip to main content

Downloading and installing H2O-3 Secure

To download H2O-3 Secure, contact enterprise@h2o.ai for the download link. The overview describes what H2O-3 Secure adds.

Choose your desired method of use below. Most users will want to use H2O-3 Secure from either R or Python.

Prerequisites​

Before you install, make sure you meet the requirements to download and use H2O-3 Secure. You need Java to start H2O-3 Secure, even from the R or Python packages.

Install in R​

Perform the following steps in R to install H2O-3 Secure. Copy and paste these commands one line at a time.

note

By default, this setup is open. Follow security guidelines if you want to secure your installation.

  1. The following two commands remove any previously installed H2O-3 Secure packages for R.
if ("package:h2o" %in% search()) { detach("package:h2o", unload=TRUE) }
if ("h2o" %in% rownames(installed.packages())) { remove.packages("h2o") }
  1. Next, install the packages that H2O-3 Secure depends on.
pkgs <- c("RCurl","jsonlite")
for (pkg in pkgs) {
if (! (pkg %in% rownames(installed.packages()))) { install.packages(pkg) }
}
  1. Contact enterprise@h2o.ai for the download link, then install the H2O-3 Secure package for R.

  2. Optionally initialize H2O-3 Secure and run a demo to see H2O-3 Secure at work.

library(h2o)
localH2O = h2o.init()
demo(h2o.kmeans)

Install in Python​

note

By default, this setup is open. Follow security guidelines if you want to secure your installation.

Run the following commands in a Terminal window to install H2O-3 Secure for Python.

  1. Install dependencies (prepending with sudo if needed):
pip install requests
pip install tabulate
pip install future

# Required for plotting:
pip install matplotlib
note

These are the dependencies required to run H2O-3 Secure. matplotlib is optional and only required to plot in H2O-3 Secure. See our complete list of dependencies.

  1. Run the following command to remove any existing H2O-3 Secure module for Python.
pip uninstall h2o
  1. Contact enterprise@h2o.ai for the download link, then use pip to install the H2O-3 Secure Python module.

  2. Optionally initialize H2O-3 Secure in Python and run a demo to see H2O-3 Secure at work.

import h2o
h2o.init()
h2o.demo("glm")

Install on Anaconda Cloud​

To run H2O-3 Secure in an Anaconda Cloud environment, contact enterprise@h2o.ai for the download link.

After H2O-3 Secure is installed, see the Starting H2O-3 Secure from Anaconda section for information on how to start H2O-3 Secure and to view a GBM example run in Jupyter Notebook.

Install on Hadoop​

  1. To download H2O-3 Secure for your version of Hadoop, contact enterprise@h2o.ai for the download link. This is a ZIP file that contains everything you need to get started.

  2. Unpack the ZIP file and launch a 6g instance of H2O-3 Secure. For example:

    unzip h2o-<version>-*.zip
    cd h2o-<version>-*
    hadoop jar h2odriver.jar -nodes 1 -mapperXmx 6g
  3. Note the H2O-3 Secure node address in the driver output. For example:

    Determining driver host interface for mapper->driver callback...
    [Possible callback IP address: 172.16.2.181]
    [Possible callback IP address: 127.0.0.1]
    ...
    Waiting for H2O cluster to come up...
    H2O node 172.16.2.188:54321 is joining the cluster
    Sending flatfiles to nodes...
    [Sending flatfile to node 172.16.2.188:54321]
    H2O node 172.16.2.188:54321 reports H2O cluster size 1 [leader is 172.16.2.188:54321]
    H2O cluster (1 nodes) is up
    (Note: Use the -disown option to exit the driver after cluster formation)

    (Press Ctrl-C to kill the cluster)
    Blocking until the H2O cluster shuts down...

Feedback