R包h2o 3.13.0.356版本

时间:2017-10-04 15:59:58

标签: r docker h2o

我正在使用具有h2o_3.13.0.356版本的docker镜像运行h2o。我想从R命令它,但我有一个不同的版本。我可以连接群集,但许多功能不起作用。 例如h2o.importFile抛出错误:

ERROR: Unexpected HTTP Status code: 412 Precondition Failed (url = http://localhost:54321/3/Parse)

water.exceptions.H2OIllegalArgumentException
[1] "water.exceptions.H2OIllegalArgumentException: Unknown parameter: decrypt_tool"                               
[2] "    water.api.Schema.fillFromParms(Schema.java:286)"                                                         
[3] "    water.api.Handler.handle(Handler.java:46)"                                                               
[4] "    water.api.RequestServer.serve(RequestServer.java:448)"                                                   
[5] "    water.api.RequestServer.doGeneric(RequestServer.java:297)"                                               
[6] "    water.api.RequestServer.doPost(RequestServer.java:223)"                                                  
[7] "    javax.servlet.http.HttpServlet.service(HttpServlet.java:755)"                                            
[8] "    javax.servlet.http.HttpServlet.service(HttpServlet.java:848)"                                            
[9] "    org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:684)"                                  
[10] "    org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:503)"                              
[11] "    org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1086)"                      
[12] "    org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:429)"                               
[13] "    org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1020)"                       
[14] "    org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)"                           
[15] "    org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:154)"                   
[16] "    org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)"                         
[17] "    water.JettyHTTPD$LoginHandler.handle(JettyHTTPD.java:183)"                                               
[18] "    org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:154)"                   
[19] "    org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)"                         
[20] "    org.eclipse.jetty.server.Server.handle(Server.java:370)"                                                 
[21] "    org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:494)"          
[22] "    org.eclipse.jetty.server.BlockingHttpConnection.handleRequest(BlockingHttpConnection.java:53)"           
[23] "    org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpConnection.java:982)"                
[24] "    org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:1043)"
[25] "    org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:865)"                                        
[26] "    org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:240)"                                   
[27] "    org.eclipse.jetty.server.BlockingHttpConnection.handle(BlockingHttpConnection.java:72)"                  
[28] "    org.eclipse.jetty.server.bio.SocketConnector$ConnectorEndPoint.run(SocketConnector.java:264)"            
[29] "    org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)"                        
[30] "    org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)"                         
[31] "    java.lang.Thread.run(Thread.java:748)"                                                                   

Error in .h2o.doSafeREST(h2oRestApiVersion = h2oRestApiVersion, urlSuffix = page,  : 


ERROR MESSAGE:

Unknown parameter: decrypt_tool

是否有可能在与docker镜像相同的版本中安装R h2o软件包?

1 个答案:

答案 0 :(得分:0)

问题在于,当我们使用importFile函数处理企业功能以支持加密数据时,您正在使用代码的最新版本(以及更旧版本),因此您可能遇到了这个问题。我们现在已完成此功能的开发。因此,您只需要在后端和R API上将H2O更新为最新版本。

最新的STABLE版本3.14.0.3可以从这里下载,请确保您安装最新的H2O R包:

https://h2o-release.s3.amazonaws.com/h2o/rel-weierstrass/3/index.html

最新出血也没有这个问题,所以你也可以试试。

http://h2o-release.s3.amazonaws.com/h2o/master/4052/index.html

[H2O 3.14.0.3文件导入示例]

> h2o.init()
Reading in config file: ./.h2oconfig

H2O is not running yet, starting it now...
java version "1.8.0_101"
Java(TM) SE Runtime Environment (build 1.8.0_101-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.101-b13, mixed mode)

Starting H2O JVM and connecting: .. Connection successful!

R is connected to the H2O cluster: 
H2O cluster uptime:         1 seconds 944 milliseconds 
H2O cluster version:        3.14.0.3 
H2O cluster version age:    12 days  
H2O cluster name:           H2O_started_from_R_avkashchauhan_hwc594 
H2O cluster total nodes:    1 
H2O cluster total memory:   3.56 GB 
H2O cluster total cores:    8 
H2O cluster allowed cores:  8 
H2O cluster healthy:        TRUE 
H2O Connection ip:          localhost 
H2O Connection port:        54321 
H2O Connection proxy:       NA 
H2O Internal Security:      FALSE 
H2O API Extensions:         XGBoost, Algos, AutoML, Core V3, Core V4 
R Version:                  R version 3.4.1 (2017-06-30) 

> df = h2o.importFile('https://raw.githubusercontent.com/h2oai/sparkling-water/master/examples/smalldata/prostate.csv')
  |========================================================| 100%
> df
  ID CAPSULE AGE RACE DPROS DCAPS  PSA  VOL GLEASON
    1  1       0  65    1     2     1  1.4  0.0       6
    2  2       0  72    1     3     2  6.7  0.0       7
    3  3       0  70    1     1     2  4.9  0.0       6
    4  4       0  76    2     2     1 51.2 20.0       7
    5  5       0  69    1     1     1 12.3 55.9       6
    6  6       1  71    1     3     2  3.3  0.0       8

    [380 rows x 9 columns]