在ubuntu 16.04上,h2o构建失败

时间:2017-04-08 07:49:27

标签: ubuntu h2o

我正在尝试为ubuntu 16.04构建h2o源代码。
这是输出:

:h2o-r:classes UP-TO-DATE
:h2o-r:jar UP-TO-DATE
:h2o-r:assemble UP-TO-DATE
:h2o-r:getRVersion
:h2o-r:gitbranch
:h2o-r:pdflatex
:h2o-r:setProperties
    Git Branch: master
    R Version: 3.3.3
    PDF LATEX: /usr/bin/pdflatex
:h2o-r:cpH2OAppJar
:h2o-r:setDevPackageFiles
:h2o-r:setPackageFiles
:h2o-r:buildPackageDocumentation FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':h2o-r:buildPackageDocumentation'.
> Process 'command 'R'' finished with non-zero exit value 1

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 33.713 secs

Task timings:
  14.641 secs  :h2o-assemblies:main:shadowJar
   8.099 secs  :h2o-bindings:runGenerateRESTAPIBindingsSrc
   4.404 secs  :h2o-py:buildDist
   1.360 secs  :h2o-web:installNpmPackages
   0.780 secs  :h2o-py:verifyDependencies
   0.771 secs  :h2o-bindings:compileJava
   0.596 secs  :h2o-assemblies:main:copyJar
   1.585 secs  All others

我已经安装了所有先决条件。它能够构建所有包装和打破文件。我该如何解决这个问题?

3 个答案:

答案 0 :(得分:3)

在repo中,Docker中实现了一个完整的H2o2开发环境 基于16.04。在同一个文件夹中有一个Ubuntu 16.04安装脚本。

http://github.com/h2oai/h2o-3/docker/setup-h2o-dev.sh

答案 1 :(得分:1)

我遇到了同样的问题。解决它我 重命名了我的~/.Rprofile文件(即使它是默认文件)

我的机器上有两个R版本,R 3.2.2和R 3.3.3,这使构建脚本混乱。

因此,为了使构建脚本更简单 ,我用一个修改过的PATH变量运行它,成功了!

(令人费解的是它仍然使用R 3.2.2,虽然在/ usr / bin中是R 3.3.3!但是,安装仍在继续)

export PATH=/home/knut/.virtualenvs/h2oai/bin:/home/knut/.nvm/versions/node/v6.9.4/bin:/usr/sbin:/usr/bin:/sbin:/bin  && ./gradlew build -x test

我已经排除了(-x测试)测试,因为它们在我的机器上启动多节点集群时失败了(java内存不足)

结果:

    :buildSrc:compileJava UP-TO-DATE
    ... many many UP-to-DATEs ....
    :h2o-r:compileJava UP-TO-DATE
    :h2o-r:compileGroovy UP-TO-DATE
    :h2o-r:processResources UP-TO-DATE
    :h2o-r:classes UP-TO-DATE
    :h2o-r:jar UP-TO-DATE
    :h2o-r:assemble UP-TO-DATE
    :h2o-r:getRVersion
    :h2o-r:gitbranch
    :h2o-r:pdflatex
    :h2o-r:setProperties
        Git Branch: master
        R Version: 3.2.2
        PDF LATEX: /usr/bin/pdflatex
    :h2o-r:cpH2OAppJar
    :h2o-r:setDevPackageFiles
    :h2o-r:setPackageFiles
    :h2o-r:buildPackageDocumentation     ####### here it exited previously, now continues
    :h2o-r:buildPackageDocumentation took 3.828 secs
    :h2o-r:genPDF
    :h2o-r:genPDF took 4.432 secs
    :h2o-r:cpPDF
    :h2o-r:buildPKG

    :h2o-r:buildPKG took 3.454 secs
    :h2o-r:cpToR
    :h2o-r:publishPKG
    :h2o-r:untar
    :h2o-r:cleaner
    :h2o-r:build_rh2o
    :h2o-r:check
    :h2o-r:build
    :h2o-scala_2.10:compileJava UP-TO-DATE
    :h2o-scala_2.10:compileScala UP-TO-DATE
    :h2o-scala_2.10:processResources UP-TO-DATE
    :h2o-scala_2.10:classes UP-TO-DATE
    :h2o-scala_2.10:jar UP-TO-DATE
    :h2o-scala_2.10:assemble UP-TO-DATE
    :h2o-scala_2.10:check
    :h2o-scala_2.10:build
    :h2o-scala_2.11:compileJava UP-TO-DATE
    :h2o-scala_2.11:compileScala UP-TO-DATE
    :h2o-scala_2.11:processResources UP-TO-DATE
    :h2o-scala_2.11:classes UP-TO-DATE
    :h2o-scala_2.11:jar UP-TO-DATE
    :h2o-scala_2.11:assemble UP-TO-DATE
    :h2o-scala_2.11:check
    :h2o-scala_2.11:build
    :h2o-test-accuracy:compileJava UP-TO-DATE
    :h2o-test-accuracy:processResources UP-TO-DATE
    :h2o-test-accuracy:classes UP-TO-DATE
    :h2o-test-accuracy:jar UP-TO-DATE
    :h2o-test-accuracy:assemble UP-TO-DATE
    :h2o-test-accuracy:check
    :h2o-test-accuracy:build
    :h2o-test-integ:compileJava UP-TO-DATE
    :h2o-test-integ:processResources UP-TO-DATE
    :h2o-test-integ:classes UP-TO-DATE
    :h2o-test-integ:jar UP-TO-DATE
    :h2o-test-integ:assemble UP-TO-DATE
    :h2o-test-integ:check
    :h2o-test-integ:build
    :h2o-web:assemble UP-TO-DATE
    :h2o-web:check
    :h2o-web:compileAndInstallDocFiles
    :h2o-web:build
    :h2o-assemblies:main:assemble
    :h2o-assemblies:main:check
    :h2o-assemblies:main:build
    :h2o-hadoop:h2o-mapreduce-generic:compileJava UP-TO-DATE
    :h2o-hadoop:h2o-mapreduce-generic:processResources UP-TO-DATE
    :h2o-hadoop:h2o-mapreduce-generic:classes UP-TO-DATE
    :h2o-hadoop:h2o-mapreduce-generic:jar UP-TO-DATE
    :h2o-hadoop:h2o-mapreduce-generic:assemble UP-TO-DATE
    :h2o-hadoop:h2o-mapreduce-generic:check
    :h2o-hadoop:h2o-mapreduce-generic:build
    :h2o-hadoop:h2o-yarn-generic:compileJava UP-TO-DATE
    :h2o-hadoop:h2o-yarn-generic:processResources UP-TO-DATE
    :h2o-hadoop:h2o-yarn-generic:classes UP-TO-DATE
    :h2o-hadoop:h2o-yarn-generic:jar UP-TO-DATE
    :h2o-hadoop:h2o-yarn-generic:assemble UP-TO-DATE
    :h2o-hadoop:h2o-yarn-generic:check
    :h2o-hadoop:h2o-yarn-generic:build

    BUILD SUCCESSFUL

    Total time: 31.37 secs

    Task timings:
       9.241 secs  :h2o-assemblies:main:shadowJar
       4.432 secs  :h2o-r:genPDF
       3.828 secs  :h2o-r:buildPackageDocumentation
       3.598 secs  :h2o-bindings:runGenerateRESTAPIBindingsSrc
       3.454 secs  :h2o-r:buildPKG
       2.083 secs  :h2o-py:buildDist
       0.922 secs  :h2o-web:installNpmPackages
       3.073 secs  All others

然后我用R CMD INSTALL h2o-r/R/src/contrib/h2o_3.11.0.99999.tar.gz将其安装到R 3.3

如果仍然没有成功,请运行

./gradlew build -x test --info

并使用相关输出更新您的问题

答案 2 :(得分:1)

您需要同步R packags:

git clone https://github.com/h2oai/h2o-3.git
cd h2o-3
./gradlew syncSmalldata
./gradlew syncRPackages
./gradlew build

参考: https://github.com/h2oai/h2o-3