# Byte:java hqin$ pwd
# cd /Users/hqin/Library/R/3.3/library/h2o/java
# java -jar h2o.jar
library(h2o)
localH2O = h2o.init(startH2O = FALSE)
demo(h2o.glm)
#it worked
This site is to serve as my note-book and to effectively communicate with my students and collaborators. Every now and then, a blog may be of interest to other researchers or teachers. Views in this blog are my own. All rights of research results and findings on this blog are reserved. See also http://youtube.com/c/hongqin @hongqin
# The following two commands remove any previously installed H2O packages for R. if ("package:h2o" %in% search()) { detach("package:h2o", unload=TRUE) } if ("h2o" %in% rownames(installed.packages())) { remove.packages("h2o") } # Next, we download, install and initialize the H2O package for R. install.packages("h2o", repos=(c("http://s3.amazonaws.com/h2o-release/h2o/rel-kahan/5/R", getOption("repos")))) library(h2o) localH2O = h2o.init()
# I was reminded to update Java JDK to 64 bit.
# http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html download and install.
# however, h2o still does not detect the newest java.
step 1: from a command line prompt, try to start the h2o server manually: java -jar h2o.jar You can give the full path to java if you want to. H2O works with both Java 7 and Java 8. If needed, you can download a standalone H2O from here: http://h2o.ai/download/ step 2: from R, connect to the already-running h2o server: h2o.init(startH2O = FALSE)
Download H2O
http://s3.amazonaws.com/h2o-release/h2o/master/3751/index.html
H2O version mimatch?
#error in h2o.init() :
# Version mismatch! H2O is running version 3.11.0.3751 but h2o-R package is #version 3.10.2.2.
# Install the matching h2o-R version from - http://h2o-# release.s3.amazonaws.com/h2o/master/3751/index.html
Try:
http://s3.amazonaws.com/h2o-release/h2o/master/3751/index.html?aliId=2451206