[HDP] java64_home not pointing at default-installed JDK for plugin

Bug #1453165 reported by Elise Gafford
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Sahara
Fix Released
High
Elise Gafford
Kilo
Fix Released
High
Elise Gafford

Bug Description

At this time HDP's java64_home property defaults to /opt/jdk1.6.0_31. However, the now-default openjdk element installs to /usr/lib/jvm/java-openjdk. If nodes are connected to the internet at cluster spinup time, this does not cause an overt error, but querying for JDK location will return error code 2, resulting in no -j argument being passed to 'ambari-server setup -s', which in turn will result in a download of Oracle's JDK and successful installation. In the case that the nodes cannot connect to the internet (which should be a success case with a pre-installed VM image,) cluster creation fails at this stage.

Elise Gafford (egafford)
Changed in sahara:
assignee: nobody → Ethan Gafford (egafford)
status: New → In Progress
Elise Gafford (egafford)
summary: - HDP java64_home not pointing at default-installed JDK for plugin
+ [HDP] java64_home not pointing at default-installed JDK for plugin
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to sahara (master)

Fix proposed to branch: master
Review: https://review.openstack.org/181410

Changed in sahara:
status: In Progress → Confirmed
status: Confirmed → In Progress
importance: Undecided → High
milestone: none → liberty-1
tags: added: kilo
tags: added: plugin.hdp
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to sahara (master)

Reviewed: https://review.openstack.org/181410
Committed: https://git.openstack.org/cgit/openstack/sahara/commit/?id=23cb825c0d0b28d043edbef8924dd10fb7a63a67
Submitter: Jenkins
Branch: master

commit 23cb825c0d0b28d043edbef8924dd10fb7a63a67
Author: Ethan Gafford <email address hidden>
Date: Fri May 8 10:30:30 2015 -0400

    [HDP] java64_home not pointing at default-installed JDK for plugin

    At this time HDP's java64_home property defaults to /opt/jdk1.6.0_31.
    However, the now-default openjdk element installs to /usr/lib/jvm/java-openjdk.
    If nodes are connected to the internet at cluster spinup time, this does not
    cause an overt error, but querying for JDK location will return error code 2,
    resulting in no -j argument being passed to 'ambari-server setup -s', which in
    turn will result in a download of Oracle's JDK and successful installation. In
    the case that the nodes cannot connect to the internet (which should be a
    success case with a pre-installed VM image,) cluster creation fails at this
    stage.

    This patch updates java64_home to the default JAVA_HOME from the openjdk
    element.

    Change-Id: I1d53db67341626190e7240f0ae4165f91d364a2c
    Closes-bug: 1453165

Changed in sahara:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to sahara (stable/kilo)

Fix proposed to branch: stable/kilo
Review: https://review.openstack.org/184327

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to sahara (stable/kilo)

Reviewed: https://review.openstack.org/184327
Committed: https://git.openstack.org/cgit/openstack/sahara/commit/?id=c0db817d0ec3c21e98ff416280289eddaa0ce3bd
Submitter: Jenkins
Branch: stable/kilo

commit c0db817d0ec3c21e98ff416280289eddaa0ce3bd
Author: Ethan Gafford <email address hidden>
Date: Fri May 8 10:30:30 2015 -0400

    [HDP] java64_home not pointing at default-installed JDK for plugin

    At this time HDP's java64_home property defaults to /opt/jdk1.6.0_31.
    However, the now-default openjdk element installs to /usr/lib/jvm/java-openjdk.
    If nodes are connected to the internet at cluster spinup time, this does not
    cause an overt error, but querying for JDK location will return error code 2,
    resulting in no -j argument being passed to 'ambari-server setup -s', which in
    turn will result in a download of Oracle's JDK and successful installation. In
    the case that the nodes cannot connect to the internet (which should be a
    success case with a pre-installed VM image,) cluster creation fails at this
    stage.

    This patch updates java64_home to the default JAVA_HOME from the openjdk
    element.

    Change-Id: I1d53db67341626190e7240f0ae4165f91d364a2c
    Closes-bug: 1453165

Thierry Carrez (ttx)
Changed in sahara:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in sahara:
milestone: liberty-1 → 3.0.0
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.