h2osteam.clients

h2osteam.clients.admin

admin_client

class h2osteam.clients.admin.admin_client.AdminClient
static delete_user_resources(username)

Delete driverless instances and h2o kubernetes clusters of given user.

Parameters

username – Name of the user.

Examples

>>> import h2osteam
>>> from h2osteam.clients import AdminClient
>>> url = "https://steam.example.com:9555"
>>> username = "AzureDiamond"
>>> password = "hunter2"
>>> h2osteam.login(url=url, username=username, password=password, verify_ssl=True)
>>> AdminClient.delete_user_resources(username="adam")
static import_h2o_engine(path)

Import H2O engine to Steam.

Imports H2O engine from Steam server and makes it available to users.

Parameters

path – Full path to the H2O engine on disk of the Steam server.

Examples

>>> import h2osteam
>>> from h2osteam.clients import AdminClient
>>> url = "https://steam.example.com:9555"
>>> username = "AzureDiamond"
>>> password = "hunter2"
>>> h2osteam.login(url=url, username=username, password=password, verify_ssl=True)
>>> AdminClient.import_h2o_engine("/tmp/h2o-3.26.0.6-cdh6.3.zip")
static import_python_environment(name, path)

Import an existing Python environment using the Python Pyspark Path.

Imports an existing Python environment to Steam using the path to the Python executable.

Parameters
  • name – Name of the new Python environment.

  • path – Full path to the python executable of the new Python environment.

Examples

>>> import h2osteam
>>> from h2osteam.clients import AdminClient
>>> url = "https://steam.example.com:9555"
>>> username = "AzureDiamond"
>>> password = "hunter2"
>>> h2osteam.login(url=url, username=username, password=password, verify_ssl=True)
>>> AdminClient.create_pyspark_python_path_environment("python3", "/tmp/virtual-env/python3/bin/python")
static import_sparkling_engine(path)

Import Sparkling Water engine to Steam.

Imports Sparkling Water engine from Steam server and makes it available to users.

Parameters

path – Full path to the Sparkling Water engine on disk of the Steam server.

Examples

>>> import h2osteam
>>> from h2osteam.clients import AdminClient
>>> url = "https://steam.example.com:9555"
>>> username = "AzureDiamond"
>>> password = "hunter2"
>>> h2osteam.login(url=url, username=username, password=password, verify_ssl=True)
>>> AdminClient.import_sparkling_engine("/tmp/sparkling-water-3.28.0.1-1-2.4.zip")
static upload_conda_environment(name, path)

Upload Conda Python environment.

Uploads and imports an existing Python environment using a path to a conda-packed Conda Python environment.

Parameters
  • name – Name of the new Python environment.

  • path – Full path to the conda-packed Conda Python environment.

Examples

>>> import h2osteam
>>> from h2osteam.clients import AdminClient
>>> url = "https://steam.example.com:9555"
>>> username = "AzureDiamond"
>>> password = "hunter2"
>>> h2osteam.login(url=url, username=username, password=password, verify_ssl=True)
>>> AdminClient.upload_conda_environment("python3-conda", "/tmp/conda-python3.tar.gz")
static upload_h2o_engine(path)

Upload H2O engine to Steam.

Uploads H2O engine from local machine to the Steam server where it is imported and made available to users.

Parameters

path – Full path to the H2O engine on disk of the local machine.

Examples

>>> import h2osteam
>>> from h2osteam.clients import AdminClient
>>> url = "https://steam.example.com:9555"
>>> username = "AzureDiamond"
>>> password = "hunter2"
>>> h2osteam.login(url=url, username=username, password=password, verify_ssl=True)
>>> AdminClient.upload_h2o_engine("/tmp/h2o-3.26.0.6-cdh6.3.zip")
static upload_sparkling_engine(path)

Upload Sparkling Water engine to Steam.

Uploads Sparkling Water engine from local machine to the Steam server where it is imported and made available to users.

Parameters

path – Full path to the Sparkling Water engine on disk of the local machine.

Examples

>>> import h2osteam
>>> from h2osteam.clients import AdminClient
>>> url = "https://steam.example.com:9555"
>>> username = "AzureDiamond"
>>> password = "hunter2"
>>> h2osteam.login(url=url, username=username, password=password, verify_ssl=True)
>>> AdminClient.upload_sparkling_engine("/tmp/sparkling-water-3.28.0.1-1-2.4.zip")

h2osteam.clients.admink8s

admin_kubernetes_client

h2osteam.clients.driverless

driverless_client

driverless_instance

multinode_client

h2osteam.clients.h2o

h2o_client

h2o_cluster

h2osteam.clients.h2ok8s

h2osteam.clients.sparkling

sparkling_client

sparkling_cluster