已使用
R版本:3.4.4(2018-03-15)
jdk版本“ 1.8.0_181”
H2O集群版本:3.20.0.10
按照H2O文档
cpu1$Average = as.numeric(as.character(cpu1$Average))
network1$Average = as.numeric(as.character(network1$Average))
cpu = cpu1$Average
network = network1$Average
cpu = as.h2o(as.data.frame(cpu))
network = as.h2o(as.data.frame(network))
输入数据:
cpu
1 28.7341993
2 0.7342352
3 0.3874931
4 0.3959669
5 0.3862666
6 0.5541219
网络
1 444796.4000
2 29544.5167
3 193.9333
4 359.2667
5 881.7833
6 648985.3667
data = h2o.cbind(cpu,network)
# class(data) "H2OFrame"
h2o.parseSetup(data)
错误:意外的HTTP状态代码:400错误的请求(url = {http://localhost:54321/3/ParseSetup)
java.lang.IllegalArgumentException
[1]“ java.lang.IllegalArgumentException:密钥未加载:密钥/tmp/Rtmpq3doob/file3ff4261bfad.csv_sid_82a4_1”
[2]“ water.api.ParseSetupHandler.guessSetup(ParseSetupHandler.java:31)”
[3]“ sun.reflect.NativeMethodAccessorImpl.invoke0(本机方法)”
[4]“ sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)”
[5]“ sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)”
[6]“ java.lang.reflect.Method.invoke(Method.java:498)”
[7]“ water.api.Handler.handle(Handler.java:63)”
[8]“ water.api.RequestServer.serve(RequestServer.java:451)”
[9]“ water.api.RequestServer.doGeneric(RequestServer.java:296)”
[10]“ water.api.RequestServer.doPost(RequestServer.java:222)”
[11]“ javax.servlet.http.HttpServlet.service(HttpServlet.java:755)”
[12]“ javax.servlet.http.HttpServlet.service(HttpServlet.java:848)”
[13]“ org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:684)”
[14]“ org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:503)”
[15]“ org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1086)”
[16]“ org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:429)”
[17]“ org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1020)”
[18]“ org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)”
[19]“ org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:154)”
[20]“ org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)”
[21]“ water.JettyHTTPD $ LoginHandler.handle(JettyHTTPD.java:197)”
[22]“ org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:154)”
[23]“ org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)”
[24]“ org.eclipse.jetty.server.Server.handle(Server.java:370)”
[25]“ org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:494)”
[26]“ org.eclipse.jetty.server.BlockingHttpConnection.handleRequest(BlockingHttpConnection.java:53)”
[27]“ org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpConnection.java:982)”
[28]“ org.eclipse.jetty.server.AbstractHttpConnection $ RequestHandler.content(AbstractHttpConnection.java:1043)”
[29]“ org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:865)”
[30]“ org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:240)”
[31]“ org.eclipse.jetty.server.BlockingHttpConnection.handle(BlockingHttpConnection.java:72)”
[32]“ org.eclipse.jetty.server.bio.SocketConnector $ ConnectorEndPoint.run(SocketConnector.java:264)”
[33]“ org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)”
[34]“ org.eclipse.jetty.util.thread.QueuedThreadPool $ 3.run(QueuedThreadPool.java:543)”
[35]“ java.lang.Thread.run(Thread.java:748)”
.h2o.doSafeREST(h2oRestApiVersion = h2oRestApiVersion,urlSuffix =页面,:
错误消息: 未加载密钥:密钥/tmp/Rtmpq3doob/file3ff4261bfad.csv_sid_82a4_1 调用:as.h2o ... h2o.parseSetup-> .h2o .__ remoteSend-> .h2o.doSafeREST 执行停止
答案 0 :(得分:0)
对parseSetup的调用不属于此处。
as.h2o()已经为您提供了功能全面的h2o框架。
然后绑定两个h2o帧,您得到了第三个h2o帧。您可以使用它。