Saturday, January 21, 2017

R H2O initiate problem, java and versions (errors)


See
https://www.r-bloggers.com/diving-into-h2o/

# 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

No comments:

Post a Comment