Skip to content

Terraform module to deploy H2O Driverless AI on Oracle Cloud Infrastructure (OCI)

License

Notifications You must be signed in to change notification settings

oci-portfolio/oci-quickstart-h2o

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

oci-quickstart-h2o

This is a Terraform module that deploys H2O.ai Driverless AI on Oracle Cloud Infrastructure (OCI). It is developed jointly by Oracle and H2O.ai.

Instructions on how to use it are below. In addition, here's a video walkthrough:

IMAGE ALT TEXT HERE

Prerequisites

First off you'll need to do some pre deploy setup. That's all detailed here.

Clone the Module

Now, you'll want a local copy of this repo. You can make that with the commands:

git clone https://github.com/oracle/oci-quickstart-h2o.git
cd oci-quickstart-h2o/terraform
ls

That should give you this:

We now need to initialize the directory with the module in it. This makes the module aware of the OCI provider. You can do this by running:

terraform init

This gives the following output:

Deploy

Now for the main attraction. Let's make sure the plan looks good:

terraform plan

That gives:

The next command will deploy H2O DAI using the values in the variables.tf file. If that's good, we can go ahead and apply the deploy:

terraform apply

You'll need to enter yes when prompted. The apply should take about seven minutes to run. Once complete, you'll see something like this:

When the apply is complete, the infrastructure will be deployed, but the cloud-init scripts will still be running. Those will wrap up asynchronously. So, it'll be a few more minutes before your cluster is accessible. Now is a good time to get a coffee.

Connect to the Cluster

The apply prints the URL of H2O Driverless AI when it completes. The deployment creates a self-signed certificate, so you'll need to confirm the exception.

Logging into that we see:

After accepting the agreement, we can see the login screen. Use the login defined in the variables.tf file:

The documentation here provides a walkthrough and some good next steps. There are a bunch of public data sets to get you started. Here's an example of an experiment I set up on one using that walkthrough.

SSH to a Node

These machines are using Oracle Enterprise Linux (OEL). The default login is opc. You can SSH into the machine with a command like this:

ssh -i ~/.ssh/oci opc@<Public IP Address>

H2O is installed under /opt/h2o. Logs from the install are under /var/log/messages and viewable with root privileges.

View the Cluster in the Console

You can also login to the web console here to view the IaaS that is running the cluster.

Destroy the Deployment

When you no longer need the deployment, you can run this command to destroy it:

terraform destroy

You'll need to enter yes when prompted. Once complete, you'll see something like this:

About

Terraform module to deploy H2O Driverless AI on Oracle Cloud Infrastructure (OCI)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HCL 73.6%
  • Shell 26.4%