Saturday, January 21, 2017

R H2O initiate problem, java and versions (errors)


# 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("", getOption("repos"))))
localH2O = h2o.init()
# I was reminded to update Java JDK to 64 bit. 
#  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: 

step 2:  from R, connect to the already-running h2o server: 

h2o.init(startH2O = FALSE) 

Download H2O

H2O version mimatch? 
#error in h2o.init() : 
#  Version mismatch! H2O is running version but h2o-R package is #version
#         Install the matching h2o-R version from - http://h2o-#


No comments:

Post a Comment