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