H2O and R: cannot open the connection

1,432 views
Skip to first unread message

lukas.schwa...@gmail.com

unread,
Feb 29, 2016, 5:52:36 AM2/29/16
to H2O Open Source Scalable Machine Learning - h2ostream
Hi,

I am trying to run h2o on R on a virtual machine which is running on a server. The OS is Windows Server 2012 R2 Standard (64bit).

I am working with RStudio.

I have the latest version of h2o installed (3.8.0.6) and loading of the h2o library works just fine.

But when I want to initialize it (localH2O = h2o.init()), I get the following error:

> localH2O = h2o.init()

H2O is not running yet, starting it now...

Note:  In case of errors look at the following log files:
    C:\Users\MKRLSC\AppData\Local\Temp\3\RtmpGq09fE/h2o_MKRLSC_started_from_r.out
    C:\Users\MKRLSC\AppData\Local\Temp\3\RtmpGq09fE/h2o_MKRLSC_started_from_r.err

java version "1.8.0_66"
Java(TM) SE Runtime Environment (build 1.8.0_66-b18)
Java HotSpot(TM) 64-Bit Server VM (build 25.66-b18, mixed mode)

Starting H2O JVM and connecting: ............................................................
Error in file(con, "r") : cannot open the connection
In addition: Warning message:
In file(con, "r") :
  cannot open file 'C:\Users\MKRLSC\AppData\Local\Temp\3\RtmpGq09fE/h2o_MKRLSC_started_from_r.out': Permission denied


Still I can open the connection in the browser (http://localhost:54321).

Anybody an idea, where the problem is or how to fix this?

Best regards,
Lukas




Spencer Aiello

unread,
Feb 29, 2016, 2:02:26 PM2/29/16
to lukas.schwa...@gmail.com, H2O Open Source Scalable Machine Learning - h2ostream
Hi,

Can you verify the permissions on AppData\Local\Temp ?

If you cannot make forward progress from the R interface, shut down all instances of H2O (it's a java application), and try starting H2O from outside of the R package (java -jar h2o.jar).


lukas.schwa...@gmail.com

unread,
Mar 1, 2016, 3:35:36 AM3/1/16
to H2O Open Source Scalable Machine Learning - h2ostream, lukas.schwa...@gmail.com
Hi,

by verifying the permissions on AppData\Local\Temp you mean, if I can access that directory? -> Yes I can.

Starting h2o.jar outside from R also works fine. But I think also from within R h2o.jar has been started, since I could open 'http://localhost:54321' even after the error message.

R just gives me that error message saying "cannot open the conection".

One thing: my home directory is not C:, but U: (but that should no be an issue?!)

Spencer Aiello

unread,
Mar 1, 2016, 12:12:09 PM3/1/16
to lukas.schwa...@gmail.com, H2O Open Source Scalable Machine Learning - h2ostream
Asking to verify write perms to that directory by your user.

the problem is where logs get written -- if you start from outside the R environment you can control where the stdout gets written.

--
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.

schwarze...@gmail.com

unread,
Mar 2, 2016, 9:11:48 AM3/2/16
to H2O Open Source Scalable Machine Learning - h2ostream, lukas.schwa...@gmail.com
I do have writing permissions, e.g. "h2o_MKRLSC_started_from_r.out" is also being created.
Just after I run "localH2O = h2o.init()" and I get the error, I cannot open the file, since it is used by another application. Apparently, when I close java it is possible to open, so i assume it is the h2o.jar...

lukas.schwa...@gmail.com

unread,
Mar 14, 2016, 8:13:01 AM3/14/16
to H2O Open Source Scalable Machine Learning - h2ostream, lukas.schwa...@gmail.com, schwarze...@gmail.com
Anybody an idea, where the problem might be?

dipanza...@gmail.com

unread,
Mar 28, 2016, 12:50:54 AM3/28/16
to H2O Open Source Scalable Machine Learning - h2ostream, lukas.schwa...@gmail.com, schwarze...@gmail.com
Facing the same issue, any fix for this please?

lukas.schwa...@gmail.com

unread,
Mar 29, 2016, 4:18:42 AM3/29/16
to H2O Open Source Scalable Machine Learning - h2ostream, lukas.schwa...@gmail.com, schwarze...@gmail.com, dipanza...@gmail.com
Well, I do not have a fix, but I got it working by uninstall all related software:
- Java jdk
- r
- r studio
- h2o package

Installed all again and it worked. Don't ask me why, but it did... Hope it helps.
Message has been deleted

Darren Cook

unread,
Jun 2, 2016, 4:03:53 PM6/2/16
to h2os...@googlegroups.com
> I run H2O from outside of R and I am having the same problem when trying to send
> objects to H2O. ...
> ...
> "a", "w")) :cannot open file 'F:\temp\Rtmp7Simmp\file384477833572.csv': No such
> file or directory

Was h2o started as a different user to the one you run R with?

I.e. is the problem to do with access control for F: and/or F:\temp
and/or F:\temp\Rtmp7Simmp\ ?

Darren

Reply all
Reply to author
Forward
0 new messages