Skip to content

Running H2O on a Rackspace VM

tomkraljevic edited this page Dec 4, 2013 · 2 revisions

THIS PAGE IS OBSOLETE

First you want to SSH into Rackspace.#

Once you get into Rackspace via SSH you will need your Rackspace IP address and password so make sure you have that handy. If your a windows user you need to install SSH on Cygwin or you can download Putty.

If you are on a Mac, skip this step. You can use the built in Terminal or iTerm2 (a more feature-rich replacement for Terminal) to connect/ssh to the Rackspace VM, so you don’t need PuTTY.

#If you’re on Windows# You can install PuTTY for a quick use, a free telnet/SSH client. With PuTTY, you can connect to the Cloudera VM from a lightweight client in Windows and open multiple cmdline sessions to the VM. Or you can install SSH in your Cygwin.

Download PuTTY from: http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html Look for the file named putty.exe under “Windows on Intel x86”

There is no installation for PuTTY. You can just run it from the downloaded .exe file. After starting PuTTY, enter the IP address of the Rackspace VM into PuTTY. The connection type will be SSH and the port will be 22.

Login as: root cloudera@'s password:

or Through Cygwin SSH ssh -l root

#If you’re on a Mac# Connecting to the VM via Terminal/iTerm2 (Mac only): Open up your terminal app of choice and type in: ssh root@

#Check to see if you have Java installed# H2O and all Hadoop daemons require Java JVMs to run. Check if Java’s installed: [root@cdh4-cm-vm1 ~]# java -version -bash: java: command not found

Goto this link to find the download URL for Java JRE that fits your OS specifications http://www.oracle.com/technetwork/java/javase/downloads/jre7-downloads-1880261.html

Then run this script (for example see Windows 64bit download URL below) wget http://download.oracle.com/otn-pub/java/jdk/7u17-b02/jre-7u17-windows-x64.exe

Once that is done, verify that Java got installed: [root@cdh4-cm-vm1 ~]# java -version

#Install H2O# Goto the H2O github page below to identify the latest version of the H2O Jar file http://0xdata.github.com/h2o/

Then run the following script to download the H2O Jar (replace the URL with the most recent H2O*.jar file) wget http://test.0xdata.com/job/h2o.nightly/320/artifact/target/h2o-12.01.27-032813.jar

#Run H2O# run Java -jar with the h2o.jar file you downloaded Example: java -jar h2o-12.01.27-032813.jar

Then you should get an output that looks similar to... Using / [h2o] Internal communication uses port: 54322 [h2o] Listening for HTTP and REST traffic on [h2o] http://:54321/ [h2o] (v0.3) 'root' on /166.78.60.210:54321, discovery address /225.53.128.226:57653 [h2o] Cloud of size 1 formed: [/166.78.60.210:54321] [hdfs] Using HDFS version cdh4

Once H2O runs it will give you a URL that you can copy and paste in your browser Example: http://166.78.60.210:54321/

Once you paste that URL in your browser H2O should be up and running. Then all you have to do is upload your data and start playing with H2O.

Clone this wiki locally