在MacOSX上的RStudio中启动h2o; Java问题

时间:2019-04-27 16:57:18

标签: java jvm rstudio h2o macos-high-sierra

我不知道为什么这看起来如此具有挑战性,但这不是总是将我们分为两堆的原因。

这就是我所拥有的;

    - Today April 27th 2019
    - MacOSX - High Sierra version 10.13.6
    -- older MacBook Air 2010 build
    - RStudio - Version 1.1.453
    - h2o downloaded from within RStudio
    -- from http://h2o-release.s3.amazonaws.com/h2o/latest_stable_R/src/contrib/h2o_3.24.0.2.tar.gz
    -- installed in RStudio and library active

尝试运行

h2o.init()

H2O is not running yet, starting it now...
Error in .h2o.startJar(ip = ip, port = port, name = name, nthreads = nthreads,  : 
  Your java is not supported: java version "1.6.0_65"
Please download the latest Java SE JDK 8 from the following URL:
http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

稍加精巧的版本将提供完全相同的结果

h2o.init(ip = "localhost", port = 54321, name = NA_character_,
         startH2O = TRUE, forceDL = FALSE, enable_assertions = TRUE,
         license = NULL, nthreads = -1, max_mem_size = NULL,
         min_mem_size = NULL, ice_root = tempdir(), log_dir = NA_character_,
         log_level = NA_character_, strict_version_check = TRUE,
         proxy = NA_character_, https = FALSE, insecure = FALSE,
         username = NA_character_, password = NA_character_,
         cookies = NA_character_, context_path = NA_character_,
         ignore_config = FALSE, extra_classpath = NULL,
         jvm_custom_args = NULL, bind_to_localhost = TRUE)

从终端

java -version
openjdk version "1.8.0_212"
OpenJDK Runtime Environment (Zulu 8.38.0.13-CA-macosx) (build 1.8.0_212-b04)
OpenJDK 64-Bit Server VM (Zulu 8.38.0.13-CA-macosx) (build 25.212-b04, mixed mode)

从表面上看,h2o和终端正在考虑Java的两个不同版本是当前版本。

在终端中使用SDKMAN

sdk list java
================================================================================
Available Java Versions
================================================================================
     13.ea.18-open       10.0.2-zulu         1.0.0-rc-15-grl                    
     12.0.1-sapmchn      10.0.2-open         1.0.0-rc-14-grl                    
     12.0.1-zulu         9.0.7-zulu                                             
     12.0.1-open         9.0.4-open                                             
     12.0.1.j9-adpt  > * 8.0.212-zulu                                           
     12.0.1.hs-adpt      8.0.212-amzn                                           
     12.0.1-librca       8.0.212.j9-adpt                                        
     11.0.3-sapmchn      8.0.212.hs-adpt                                        
     11.0.3-zulu         8.0.212-librca                                         
     11.0.3-amzn         8.0.202-zulu                                           
     11.0.3.j9-adpt      8.0.202-amzn                                           
     11.0.3.hs-adpt      8.0.202-zulufx                                         
     11.0.3-librca       7.0.222-zulu                                           
     11.0.2-open         7.0.181-zulu                                           
     11.0.2-zulufx       1.0.0-rc-16-grl                                        

================================================================================
+ - local version
* - installed
> - currently in use
================================================================================

可悲的是,我已经从各种线程中尝试了很多东西,甚至可能都不值得一试。基本上,经过无数次更改,下载,重新启动等。。。在尝试在RStudio中启动h2o时,它们都没有改变最终结果。

有什么想法吗?

0 个答案:

没有答案