Last chance! 50% off unlimited learning
Sale ends in
Connect to a running H2O instance.
h2o.connect(ip = "localhost", port = 54321, strict_version_check = TRUE,
proxy = NA_character_, https = FALSE, insecure = FALSE,
username = NA_character_, password = NA_character_,
cookies = NA_character_, context_path = NA_character_, config = NULL)
Object of class character
representing the IP address of the server where H2O is running.
Object of class numeric
representing the port number of the H2O server.
(Optional) Setting this to FALSE is unsupported and should only be done when advised by technical support.
(Optional) A character
string specifying the proxy path.
(Optional) Set this to TRUE to use https instead of http.
(Optional) Set this to TRUE to disable SSL certificate checking.
(Optional) Username to login with.
(Optional) Password to login with.
(Optional) Vector(or list) of cookies to add to request.
(Optional) The last part of connection URL: http://<ip>:<port>/<context_path>
(Optional) A list
describing connection parameters.
an instance of H2OConnection
object representing a connection to the running H2O instance.
library(h2o)
# Try to connect to a H2O instance running at http://localhost:54321/cluster_X
# If not found, start a local H2O instance from R with the default settings.
#h2o.connect(ip = "localhost", port = 54321, context_path = "cluster_X")
# Or
#config = list(ip = "localhost", port = 54321, context_path = "cluster_X")
#h2o.connect(config = config)
# Skip strict version check during connecting to the instance
#h2o.connect(config = c(strict_version_check = FALSE, config))
Run the code above in your browser using DataLab