erors installing h2o on R - windows 8.1

921 views
Skip to first unread message

nikhi...@gmail.com

unread,
Mar 7, 2016, 5:07:39 PM3/7/16
to H2O Open Source Scalable Machine Learning - h2ostream
My Java version is 64 bit.
C:\windows\system32>java -version
Picked up _JAVA_OPTIONS: -Djava.net.preferIPv4Stack=true
java version "1.8.0_65"
Java(TM) SE Runtime Environment (build 1.8.0_65-b17)
Java HotSpot(TM) 64-Bit Server VM (build 25.65-b01, mixed mode)


[Workspace loaded from ~/.RData]

>
> # 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 packages that H2O depends on.
> pkgs <- c("methods","statmod","stats","graphics","RCurl","jsonlite","tools","utils")
> for (pkg in pkgs) {
+ if (! (pkg %in% rownames(installed.packages()))) { install.packages(pkg) }
+ }
>
> # Now we download, install and initialize the H2O package for R.
> install.packages("h2o", type="source", repos=(c("http://h2o-release.s3.amazonaws.com/h2o/rel-turan/3/R")))
Installing package into ‘C:/Users/njog/Documents/R/win-library/3.2’
(as ‘lib’ is unspecified)
trying URL 'http://h2o-release.s3.amazonaws.com/h2o/rel-turan/3/R/src/contrib/h2o_3.8.1.3.tar.gz'
Content type 'application/x-tar; charset=binary' length 53035784 bytes (50.6 MB)
downloaded 50.6 MB

* installing *source* package 'h2o' ...
** R
** demo
** inst
** preparing package for lazy loading
Creating a generic function for 'summary' from package 'base' in package 'h2o'
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded
*** arch - i386
*** arch - x64
* DONE (h2o)

The downloaded source packages are in
‘C:\Users\njog\AppData\Local\Temp\RtmpeWYmah\downloaded_packages’
> library(h2o)
Loading required package: statmod

----------------------------------------------------------------------

Your next step is to start H2O:
> h2o.init()

For H2O package documentation, ask for help:
> ??h2o

After starting H2O, you can use the Web UI at http://localhost:54321
For more information visit http://docs.h2o.ai

----------------------------------------------------------------------


Attaching package: ‘h2o’

The following objects are masked from ‘package:stats’:

sd, var

The following objects are masked from ‘package:base’:

%*%, %in%, &&, ||, apply, as.factor, as.numeric, colnames, colnames<-, ifelse, is.character, is.factor, is.numeric, log, log10,
log1p, log2, round, signif, trunc

> localH2O = h2o.init(nthreads=-1)

H2O is not running yet, starting it now...
<simpleError in system2(command, "-version", stdout = TRUE, stderr = TRUE): '""' not found>
Error in value[[3L]](cond) :
You have a 32-bit version of Java. H2O works best with 64-bit Java.
Please download the latest Java SE JDK 7 from the following URL:
http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html
>
> # Finally, let's run a demo to see H2O at work.
> demo(h2o.kmeans)


demo(h2o.kmeans)
---- ~~~~~~~~~~

Type <Return> to start :

> # This is a demo of H2O's K-Means function
> # It imports a data set, parses it, and prints a summary
> # Then, it runs K-Means with k = 5 centers on a subset of characteristics
> # Note: This demo runs H2O on localhost:54321
> library(h2o)

> h2o.init()

H2O is not running yet, starting it now...
<simpleError in system2(command, "-version", stdout = TRUE, stderr = TRUE): '""' not found>
Error in value[[3L]](cond) :
You have a 32-bit version of Java. H2O works best with 64-bit Java.
Please download the latest Java SE JDK 7 from the following URL:
http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html

Spencer Aiello

unread,
Mar 7, 2016, 5:09:21 PM3/7/16
to nikhi...@gmail.com, H2O Open Source Scalable Machine Learning - h2ostream
start the h2o jvm outside of the R environment

Erin LeDell

unread,
Mar 7, 2016, 8:07:04 PM3/7/16
to Spencer Aiello, nikhi...@gmail.com, H2O Open Source Scalable Machine Learning - h2ostream
To start the jvm outside of R, you can do the following at the command line (example with 48 nodes and 30GB memory):

java -Xmx30g -jar h2o.jar -nthreads 48

Then when you start R, type:  h2o.init() and it will connect to the existing H2O cluster.

-Erin


On 3/7/16 2:09 PM, Spencer Aiello wrote:
start the h2o jvm outside of the R environment
--
You received this message because you are subscribed to the Google Groups "H2O Open Source Scalable Machine Learning - h2ostream" group.
To unsubscribe from this group and stop receiving emails from it, send an email to h2ostream+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

-- 
Erin LeDell Ph.D.
Statistician & Machine Learning Scientist | H2O.ai

Javier Fadul

unread,
Jul 2, 2016, 1:28:39 PM7/2/16
to H2O Open Source Scalable Machine Learning - h2ostream, nikhi...@gmail.com
Had a similar experience recently with one of my computers.

After some time trouble shooting, I found a workaround that may point to where the bug is. Seems obvious now, but the path that h2o is expecting for 64bit windows seems to be to version _21 of the 1.7.0 JDK, and the latest on their website (as of this posting) is version _79.

By renaming the java install directory to _21, and I was able to continue with the training of the model. Below are the log of the bug I was seeing, and I was testing this on a windows 10 machine with the latest jdk recommended by the page linked on the error.

Error in value[[3L]](cond) :
You have a 32-bit version of Java. H2O works best with 64-bit Java.
Please download the latest Java SE JDK 7 from the following URL:
http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html
In addition: Warning message:
In normalizePath(path.expand(path), winslash, mustWork) :
path[1]="C:\Program Files\Java\jdk1.7.0_21\/bin/java.exe": The system cannot find the path specified

TLDR: the JDK version number _21 is already outdated (should be _79) So I took the latest JDK and renamed the install folder to _21 and it looks like things are back in operation.
Reply all
Reply to author
Forward
0 new messages