install h2o in R with no internet access

700 views
Skip to first unread message

vraman...@gmail.com

unread,
Jul 24, 2014, 4:14:16 PM7/24/14
to h2os...@googlegroups.com
Hi
I would like to know how to install h2o package for R on a box which has no internet access.
thanks
venkatesh

Amy Wang

unread,
Jul 24, 2014, 5:44:46 PM7/24/14
to vraman...@gmail.com, h2os...@googlegroups.com
Hi Venkatesh,

In which case I can only suggest downloading the package in another machine with internet access and then copying over to the box via a USB drive. You can run the install.packages command below replacing the path to tar gz file in your zipped file.

if ("package:h2o" %in% search()) { detach("package:h2o", unload=TRUE) }
if ("h2o" %in% rownames(installed.packages())) { remove.packages("h2o") }
install.packages("~/h2o/target/h2o-2.5.0.99999/R/h2o_2.5.0.99999.tar.gz", repos = NULL, type = "source")

Caveat: You might need to install some dependencies such as statmod, rjson, bitops, and RCurl as well so if you don't already have them please download the package onto a drive and install it in R before installing H2O.

Sincerely,
Amy Wang



--
You received this message because you are subscribed to the Google Groups "H2O Users - 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.



--
Sincerely,
Amy Wang

vraman...@gmail.com

unread,
Jul 24, 2014, 8:04:59 PM7/24/14
to h2os...@googlegroups.com, vraman...@gmail.com
Amy:
Thankyou..It's in a datacenter..but..I get the idea..Thanks

Vivek:
You are probably too young :) Kidding ..
Access is blocked probably more appropriate.

venkatesh

Manish Maheshwari

unread,
Jul 29, 2015, 4:13:14 AM7/29/15
to H2O Open Source Scalable Machine Learning - h2ostream, vraman...@gmail.com
Hi,

When I did this it gives the JAR Not found Error and Cannot Download Jar. Is there a folder in which that H2O Jar File needs to be kept?

[root@aa R]# R CMD INSTALL h2o_3.0.0.30.tar.gz
* installing to library â/usr/lib64/RRO-8.0.2/R-3.1.2/lib64/R/libraryâ
* installing *source* package âh2oâ ...
** package âh2oâ successfully unpacked and MD5 sums checked
** R
** demo
** inst
** preparing package for lazy loading
Creating a generic function for âsummaryâ from package âbaseâ in package âh2oâ
Creating a generic function for âmedianâ from package âstatsâ in package âh2oâ
Creating a generic function for âmatchâ from package âbaseâ in package âh2oâ
Creating a generic function for â%in%â from package âbaseâ in package âh2oâ
Creating a generic function for âcolnames<-â from package âbaseâ in package âh2oâ
Creating a generic function for ânrowâ from package âbaseâ in package âh2oâ
Creating a generic function for âncolâ from package âbaseâ in package âh2oâ
Creating a generic function for âcolnamesâ from package âbaseâ in package âh2oâ
Creating a generic function for âheadâ from package âutilsâ in package âh2oâ
Creating a generic function for âtailâ from package âutilsâ in package âh2oâ
Creating a generic function for âis.factorâ from package âbaseâ in package âh2oâ
Creating a generic function for âmeanâ from package âbaseâ in package âh2oâ
Creating a generic function for âvarâ from package âstatsâ in package âh2oâ
Creating a generic function for âsdâ from package âstatsâ in package âh2oâ
Creating a generic function for âas.factorâ from package âbaseâ in package âh2oâ
Creating a generic function for âifelseâ from package âbaseâ in package âh2oâ
Creating a generic function for âapplyâ from package âbaseâ in package âh2oâ
Creating a generic function for âsapplyâ from package âbaseâ in package âh2oâ
Creating a generic function for âtâ from package âbaseâ in package âh2oâ

Warning in download.file(md5_url, destfile = md5_file, mode = "w", cacheOK = FALSE,  :
  unable to connect to 's3.amazonaws.com' on port 80.
Error in download.file(md5_url, destfile = md5_file, mode = "w", cacheOK = FALSE,  :
Error : unable to load R code in package âh2oâ
ERROR: lazy loading failed for package âh2oâ
* removing â/usr/lib64/RRO-8.0.2/R-3.1.2/lib64/R/library/h2oâ

Thanks,
Manish

Tom Kraljevic

unread,
Jul 29, 2015, 11:38:45 AM7/29/15
to Manish Maheshwari, H2O Open Source Scalable Machine Learning - h2ostream, vraman...@gmail.com

Hi,


You can do this for h2o-3:

Go here:

Click Download H2O

unzip

R CMD INSTALL h2o-3.1.0.3/R/h2o_3.1.0.3.tar.gz

The tar gz file is approx 45 MB in size.
This has the jar file already embedded inside.

This assumes all the necessary dependencies have already been installed.

The one you were trying was probably a really small tar gz file that didn’t already have the jar embedded inside, and then went to try to download it, which won’t work if you’re inside a complete firewall.


Tom


--
You received this message because you are subscribed to the Google Groups "H2O Open Source Scalable Machine Learning - h2ostream" group.

Manish Maheshwari

unread,
Jul 29, 2015, 1:13:57 PM7/29/15
to to...@h2o.ai, H2O Open Source Scalable Machine Learning - h2ostream, vraman...@gmail.com

Thanks for the quick reply.

Manish

souravra...@gmail.com

unread,
Sep 8, 2015, 12:40:06 PM9/8/15
to H2O Open Source Scalable Machine Learning - h2ostream, mylo...@gmail.com, vraman...@gmail.com
Hi Tom,

the link you have mentioned above now redirect to the h2o zip file and it seems that file is for windows installation. it doesn't have the .gz.tar file, Can you please tell me where I can get the required file.

Thanks,
SR

Tom Kraljevic

unread,
Sep 8, 2015, 1:30:32 PM9/8/15
to souravra...@gmail.com, H2O Open Source Scalable Machine Learning - h2ostream, mylo...@gmail.com, vraman...@gmail.com

if you open the zip file, the R source .tar.gz is inside in the R directory.
Reply all
Reply to author
Forward
0 new messages