h2osteam.Rmd
This section describes how to download and install the Enterprise Steam R client and then create and connect to an H2O cluster.
R CMD INSTALL h2osteam_1.7.0.tar.gz
To log in to Enterprise Steam you will need the URL and your username and password (or access token).
library(h2osteam) conn <- h2osteam.login(url = "https://steam.example.com:9555", username = "my-username", password = "enter-password-or-access-token-here")
The conn
object represents your session, pass it to other methods as a first argument.
When you create H2O cluster from the Enterprise Steam Web Client, you can connect to it from R using h2osteam.get_h2o_cluster
. You will need the name of the H2O cluster:
cluster_config <- h2osteam.get_h2o_cluster(conn, "my-h2o-cluster")
The cluster_config
object is the H2O cluster handle and you can immediately connect to that cluster and begin using H2O:
library(h2o) h2o.connect(config = cluster_config)
You can create a new H2O cluster using the R client:
cluster_config <- h2osteam.start_h2o_cluster(conn = conn, name = "first-cluster-from-R", profile_name = "default-h2o", nodes = 2, node_memory_gb = 30, version = "3.30.0.1")
After you create a cluster, you can immediately connect to that cluster and begin using H2O:
library(h2o) h2o.connect(config = cluster_config)