unable to convert using as.h2o after updating macbook

479 views
Skip to first unread message

dhil...@googlemail.com

unread,
Jun 4, 2016, 10:12:09 PM6/4/16
to H2O Open Source Scalable Machine Learning - h2ostream
Hi,

Earlier i was able to do all things using h2o RStudio, After updating macbook to OS X El Capitan 10.11.5 & re-installing java, i am getting error while converting R object to h2o object using
library(h2o)
localH2O <- h2o.init(nthreads = -1)
h2o.init()
trainM.h2o <- as.h2o(trainModel)

Below error on last command
ERROR: Unexpected HTTP Status code: 500 Server Error (url = http://localhost:54321/3/PostFile?destination_frame=%2Fprivate%2Fvar%2Ffolders%2Fcj%2Fz9hjhlgs0vxbmxv2khxl_7680000gp%2FT%2FRtmpkCwgtt%2Ffile729381d82a7.csv_sid_8233_14)

Error: lexical error: invalid char in json text.
<html> <head> <meta http-equiv=
(right here) ------^

I have tried as mentioned below by some of the user to try as below, which gives me same error pasted below commands.

library(h2o)
h2o.init()
irisPath = system.file("extdata", "iris.csv", package="h2o")
iris_data <- h2o.uploadFile(irisPath, destination_frame = "",parse = T,header = T, sep = ",", na.strings = c("unknown"),progressBar = FALSE, parse_type = "CSV")

ERROR: Unexpected HTTP Status code: 500 Server Error (url = http://localhost:54321/3/PostFile?destination_frame=%2FUsers%2Fparindsheel%2FLibrary%2FR%2F3.3%2Flibrary%2Fh2o%2Fextdata%2Firis.csv_sid_8233_15)

Error: lexical error: invalid char in json text.
<html> <head> <meta http-equiv=
(right here) ------^


Please help me to figure out the solution to this problem.
Cheers!
Parind

dhil...@googlemail.com

unread,
Jun 4, 2016, 10:15:41 PM6/4/16
to H2O Open Source Scalable Machine Learning - h2ostream, dhil...@googlemail.com
Sorry forgot mentioning
H2o version 3.8.2.6
R verison 3.3.0
Rstudio- 0.99.902

Tom Kraljevic

unread,
Jun 4, 2016, 10:23:49 PM6/4/16
to dhil...@googlemail.com, peter. schrott89 via H2O Open Source Scalable Machine Learning - h2ostream

hi, can you try this:

1. start over

2. call h2o.startLogging()
this will print the name of a log file.

3. try your failing sequence again.

4. look at the log file created by startLogging.

thanks,
tom

Sent from my iPad
> --
> 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.

parindsh...@mail.jugnoo.in

unread,
Jun 5, 2016, 2:31:11 AM6/5/16
to H2O Open Source Scalable Machine Learning - h2ostream, dhil...@googlemail.com
Thanks for pointing out Tom,
i have done as you suggested & got following logs saying server error, wheras when i check using
h2o.init()

connection successful , what i got. What might be the issue in such case

Time: 2016-06-05 11:56:37.291

POST http://localhost:54321/3/PostFile?destination_frame=%2FUsers%2Fparindsheel%2FLibrary%2FR%2F3.3%2Flibrary%2Fh2o%2Fextdata%2Firis.csv_sid_84a6_17
postBody:

curlError: FALSE
curlErrorMessage:
httpStatusCode: 500
httpStatusMessage: Server Error
millis: 9002

<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1"/>
<title>Error 500 Server Error</title>
</head>
<body>
<h2>HTTP ERROR: 500</h2>
<p>Problem accessing /3/PostFile. Reason:
<pre> Server Error</pre></p>
<hr /><i><small>Powered by Jetty://</small></i>

Tom Kraljevic

unread,
Jun 5, 2016, 8:19:15 AM6/5/16
to parindsh...@mail.jugnoo.in, H2O Open Source Scalable Machine Learning - h2ostream, dhil...@googlemail.com

ok, and now what does the actual h2o log file itself say?

not what shows up in the R window, but the log file.

if you are starting h2o from within R, you will see the path of the stdout and stderr log files printed when the h2o process is started.

Sent from my iPhone

parindsh...@mail.jugnoo.in

unread,
Jun 6, 2016, 8:48:48 AM6/6/16
to H2O Open Source Scalable Machine Learning - h2ostream, parindsh...@mail.jugnoo.in, dhil...@googlemail.com
it is the same error message from my log file mentioned in earlier message,
Still clueless as it says server error

Tom Kraljevic

unread,
Jun 6, 2016, 10:59:55 AM6/6/16
to parindsh...@mail.jugnoo.in, H2O Open Source Scalable Machine Learning - h2ostream, dhil...@googlemail.com

Hi,


At this point, you need to look at the h2o logs written by the H2O java process to the disk.
You can do this in various ways.

Start with way #1 if that works.

You are looking for some kind of Java level stack trace that’s causing the back-end to error out.


Tom


1.  If you start H2O directly from R or Python, then you will find a .out and .err file

> h2o.init()

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

Note:  In case of errors look at the following log files:
    /var/folders/tt/g5d7cr8d3fg84jmb5jr9dlrc0000gn/T//Rtmp0WY2DV/h2o_tomk_started_from_r.out
    /var/folders/tt/g5d7cr8d3fg84jmb5jr9dlrc0000gn/T//Rtmp0WY2DV/h2o_tomk_started_from_r.err

java version "1.7.0_80"
Java(TM) SE Runtime Environment (build 1.7.0_80-b15)
Java HotSpot(TM) 64-Bit Server VM (build 24.80-b11, mixed mode)


2.  If you start H2O some other way, then you can look here

/tmp/h2o-<username>/h2ologs


3.  If you use the Flow web UI, you can go to Admin->View Log or Download Logs.


4.  You can call a function from R to download the logs.  h2o.downloadAllLogs().


On Jun 6, 2016, at 5:48 AM, parindsh...@mail.jugnoo.in wrote:

it is the same error message from my log file mentioned in earlier message,
Still clueless as it says server error

Reply all
Reply to author
Forward
0 new messages