You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@bigtop.apache.org by "Kengo Seki (JIRA)" <ji...@apache.org> on 2017/07/01 01:05:00 UTC

[jira] [Commented] (BIGTOP-2818) Ambari downloads jdk

    [ https://issues.apache.org/jira/browse/BIGTOP-2818?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16070917#comment-16070917 ] 

Kengo Seki commented on BIGTOP-2818:
------------------------------------

I confirmed manually that we can skip downloading jdk by specifying -j option. But I encountered another problem.
I tried to use bigtop-detect-javahome and pass $JAVA_HOME to -j option in puppet manifest, but the following code...

{code}
    exec {
        "server setup":
           command => '/usr/sbin/ambari-server setup -s -j $(/bin/bash -c "source /usr/lib/bigtop-utils/bigtop-detect-javahome ; echo \$JAVA_HOME")',
           require => [ Package["ambari-server"], Exec["mpack install"] ]
    }
{code}

... failed with the following error.

{code}
Notice: /Stage[main]/Ambari::Server/Exec[server setup]/returns: ambari-server.py: error: -j option requires an argument
Error: /usr/sbin/ambari-server setup -s -j $(/bin/bash -c "source /usr/lib/bigtop-utils/bigtop-detect-javahome ; echo \$JAVA_HOME") returned 2 instead of one of [0]
Error: /Stage[main]/Ambari::Server/Exec[server setup]/returns: change from notrun to 0 failed: /usr/sbin/ambari-server setup -s -j $(/bin/bash -c "source /usr/lib/bigtop-utils/bigtop-detect-javahome ; echo \$JAVA_HOME") returned 2 instead of one of [0]
{code}

Does anyone have any good ideas?

> Ambari downloads jdk 
> ---------------------
>
>                 Key: BIGTOP-2818
>                 URL: https://issues.apache.org/jira/browse/BIGTOP-2818
>             Project: Bigtop
>          Issue Type: Bug
>    Affects Versions: 1.2.0
>            Reporter: Olaf Flebbe
>            Priority: Blocker
>             Fix For: 1.2.1
>
>
> See https://ci.bigtop.apache.org/view/Provisioner/job/Bigtop-trunk-deployments/67/BUILD_SLAVE=docker-slave-02,COMPONENTS=ambari,OS=centos-6/consoleFull
> {code}
>  Notice: /Stage[main]/Ambari::Server/Exec[server setup]/returns: Downloading JDK from http://public-repo-1.hortonworks.com/ARTIFACTS/jdk-8u112-linux-x64.tar.gz to /var/lib/ambari-server/resources/jdk-8u112-linux-x64.tar.gz
> Notice: /Stage[main]/Ambari::Server/Exec[server setup]/returns: 
> {code}
> crap.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)